random warning fixes
[fceu.git] / Makefile.sdl
index 2cb118d..792ed5d 100644 (file)
@@ -1,7 +1,8 @@
 #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/
@@ -43,6 +44,11 @@ include Makefile.base
 ${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 $@_ $@