2007-06-28 10:47:08 -07:00
|
|
|
.SUFFIXES: .o
|
|
|
|
|
|
|
|
ifeq ($(EMUL), yes)
|
|
|
|
CFLAGS=-m32
|
|
|
|
LDFLAGS=-m32
|
|
|
|
SDLCONFIG=/emul/linux/x86/usr/bin/sdl-config
|
|
|
|
else
|
|
|
|
SDLCONFIG=sdl-config
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(OSTYPE), msys)
|
2005-12-01 12:22:35 -08:00
|
|
|
OPENGL_LIB=glu32 opengl32
|
2007-06-28 10:47:08 -07:00
|
|
|
OPENAL_LIB=openal32
|
|
|
|
else
|
|
|
|
OPENGL_LIB=GLU GL
|
|
|
|
OPENAL_LIB=openal
|
|
|
|
endif
|
|
|
|
|
2006-02-28 22:12:28 -08:00
|
|
|
#CC=gcc
|
|
|
|
CC=g++ -fpermissive
|
2006-02-11 01:00:20 -08:00
|
|
|
CFLAGS+=-gstabs -DYY_STATIC -DVERSION="2.0"
|
2007-06-28 10:47:08 -07:00
|
|
|
|
|
|
|
ifeq ($(MODE), prod)
|
|
|
|
CFLAGS+=-Wall -fno-strict-aliasing -O2
|
|
|
|
else
|
|
|
|
CFLAGS+=-Wall -g
|
|
|
|
endif
|
|
|
|
|
|
|
|
OBJ_FILES=$(SRC_FILES:%.c=%.o)
|
|
|
|
|
|
|
|
%.o: %.c
|
|
|
|
$(CC) $(CFLAGS) -c -o $@ $(<)
|