#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/
${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 $@_ $@