
ifeq ($(debug), true)
OPTIMIZE = -fPIC -g
else
OPTIMIZE = -fPIC -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)))

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

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

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