X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?p=fceu.git;a=blobdiff_plain;f=Makefile.gp2x;h=6b82e4728226c34a645fdc6b77998af4462af62e;hp=a86f8c5eaa616069ee2a49829c51847ea713d826;hb=ec4d13a31d4416f0f794f8530d03b820cfa55417;hpb=b2b95d2e0d1fd5e52d03c2152605b09b024c1d0e diff --git a/Makefile.gp2x b/Makefile.gp2x index a86f8c5..6b82e47 100644 --- a/Makefile.gp2x +++ b/Makefile.gp2x @@ -54,12 +54,22 @@ include Makefile.base ${B}main.o: ${B}main.c ${B}main.h ${B}usage.h ${B}input.c ${B}gp2x.o: ${B}gp2x.c ${B}gp2x.h ${B}throttle.o: ${B}throttle.c ${B}main.h ${B}throttle.h +${B}menu.o: ${B}rev.h ppu.o: ppu.c ppu.h -include Makefile.common +${B}rev.h: FORCE + @if [ -f $@ ]; then prevrev=`cat $@`; else prevrev="00"; fi; \ + if [ "`which svn`" != "" ]; then \ + rev=`svn update|tail -n 1|sed 's/.*\ \(.*\)\./\1/g'|sed "s/'//g"`; \ + fi; \ + if [ "$$rev" = "" ]; then rev="0"; fi; \ + if [ "$$rev" != "$$prevrev" ]; then \ + echo "$$rev" > $@; \ + fi + +.PHONY: FORCE -#x6502.o: x6502.c x6502.h ops.h fce.h sound.h -# $(CC) $(CFLAGS) -finline-limit=60000 -c $< -o $@ +include Makefile.common up: fceu cp -v fceu /mnt/gp2x/mnt/sd/emus/Gpfce_v02/gpfce