X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?p=fceu.git;a=blobdiff_plain;f=Makefile.sdl;h=792ed5de6ac20d3f9d1b18c966e0b10376c60f91;hp=2cb118ddbfdc7e07df586e4d503c7bd1a0f5d0b5;hb=0d6a66c2a80f50ae51327cd406f9df14d99ad02e;hpb=e4434f79e73411f4d069831cb813f7db1b1f933b diff --git a/Makefile.sdl b/Makefile.sdl index 2cb118d..792ed5d 100644 --- a/Makefile.sdl +++ b/Makefile.sdl @@ -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 $@_ $@