SIG_IGN->SIG_DFL, fixes usb storage mode
[fceu.git] / Makefile.gp2x_test
1 CROSS   = 
2 CC      = $(CROSS)gcc
3 STRIP   = $(CROSS)strip
4 TFLAGS  = -Winline -Izlib -DLSB_FIRST -DUNIX -DPSS_STYLE=1 -DHAVE_ASPRINTF -DZLIB -DFRAMESKIP -D_REENTRANT `sdl-config --cflags`
5 RM      = rm -f
6 B       = drivers/gp2x/
7
8 DEBUG   = 1
9
10 ifdef DEBUG
11 TFLAGS  += -ggdb
12 LDRIVER += -ggdb
13 NOSTRIP = 1
14 else
15 TFLAGS  += -ftracer -fstrength-reduce -funroll-loops -fomit-frame-pointer -fstrict-aliasing -ffast-math
16 TFLAGS  += -O3 #-pg -fno-omit-frame-pointer
17 LDRIVER += -O3 #-pg -fno-omit-frame-pointer
18 endif
19
20 #NOSTRIP = 1
21
22
23 all:            fceu
24
25 gpfce.gpe: fceu
26         cp fceu $@
27
28 include zlib/Makefile
29
30 OBJDRIVER        = drivers/gp2x_test/minimal.o drivers/gp2x_test/throttle.o ${B}gp2x.o ${B}main.o \
31                 ${B}unix-netplay.o ${B}gp2x-sound.o ${B}gp2x-video.o ${B}usbjoy.o ${B}menu.o ${B}fonts.o ${B}readpng.o \
32                 drivers/common/cheat.o drivers/common/config.o drivers/common/args.o drivers/common/vidblit.o ${UNZIPOBJS} ppu.o movie.o
33 LDRIVER         += -lm -lz -lpng `sdl-config --libs`
34
35 OBJDRIVER += x6502.o
36
37 x6502.o: x6502.c x6502.h ops.h fce.h sound.h dprintf.h
38
39 include Makefile.base
40
41 ${B}main.o:             ${B}main.c ${B}main.h ${B}usage.h ${B}input.c
42 ${B}gp2x.o:             ${B}gp2x.c ${B}gp2x.h ${B}rev.h
43 ${B}throttle.o:         ${B}throttle.c ${B}main.h ${B}throttle.h
44 ppu.o:                  ppu.c ppu.h
45
46 ${B}rev.h: FORCE
47         @if [ -f $@ ]; then prevrev=`cat $@`; else prevrev="00"; fi; \
48         if [ "`which svn`" != "" ]; then \
49                 rev=`svn update|tail -n 1|sed 's/.*\ \(.*\)\./\1/g'|sed "s/'//g"`; \
50         fi; \
51         if [ "$$rev"  = "" ]; then rev="0"; fi; \
52         if [ "$$rev" != "$$prevrev" ]; then \
53                 echo "$$rev" > $@; \
54         fi
55
56 .PHONY: FORCE
57
58 include Makefile.common
59