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

# Sun's ANSI compiler doesn't compile SDL.
CC = gcc

# 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)))

# Set the virtual path so that sunos sources are grabbed first, then linux
ARCH_VPATH = src/$(target):src/linux

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