#CROSS_COMPILE =
CC = $(CROSS_COMPILE)gcc
STRIP = $(CROSS_COMPILE)strip
-TFLAGS = -Winline -Izlib -DLSB_FIRST -DUNIX -DPSS_STYLE=1 -DHAVE_ASPRINTF -DZLIB -DFRAMESKIP -D_REENTRANT `sdl-config --cflags`
+TFLAGS += -Winline -Izlib -DLSB_FIRST -DUNIX -DPSS_STYLE=1 -DHAVE_ASPRINTF -DZLIB -DFRAMESKIP -D_REENTRANT `sdl-config --cflags`
+TFLAGS += -Wno-pointer-sign -Wno-parentheses
RM = rm -f
C = drivers/common/
L = drivers/libpicofe/
include zlib/Makefile
OBJDRIVER = drivers/sdl/sdl.o drivers/sdl/throttle.o \
- ${L}fonts.o ${L}readpng.o ${L}input.o ${L}in_sdl.o ${L}linux/plat.o \
- ${L}linux/sndout_oss.o \
+ ${L}fonts.o ${L}readpng.o ${L}input.o ${L}config_file.o ${L}in_sdl.o \
+ ${L}linux/plat.o ${L}linux/sndout_oss.o \
${C}main.o ${C}menu.o ${C}sound-oss.o \
${C}cheat.o ${C}config.o ${C}args.o ${C}vidblit.o ${C}unix-netplay.o \
${UNZIPOBJS} \
${C}menu.o: ${C}revision.h
ppu.o: ppu.c ppu.h
+drivers/sdl/sdl.o: ${L}menu.h
+${L}menu.h:
+ @echo "please run: git submodule init; git submodule update"
+ @false
+
${C}revision.h: FORCE
@(git describe || echo) | sed -e 's/.*/#define REV "\0"/' > $@_
@diff -q $@_ $@ > /dev/null 2>&1 || cp $@_ $@