
ifeq ($(debug), true)
OPTIMIZE = -g
else
OPTIMIZE = -O2 -funroll-loops -fomit-frame-pointer
endif

# The version of ranlib to use
RANLIB = ranlib

# Objects for building the X11 library
X11_OBJS = $(patsubst %.c,obj/%.o,$(notdir $(wildcard src/linux/*.c))) \
           $(patsubst %.c,obj/x11/%.o,$(notdir $(wildcard src/linux/x11/*.c)))

# Allow sources in the freebsd directory to override Linux sources
ARCH_VPATH = src/freebsd:src/linux

# When building a static library, use X11 files (for now)
STATIC_ARCH_OBJS = $(X11_OBJS)
