frameskip, cleanups
[fceu.git] / Makefile.gp2x
1 CC      = arm-linux-gcc
2 STRIP   = arm-linux-strip
3 TFLAGS  = -mcpu=arm920t -Izlib -DGP2X=1 -DLSB_FIRST -DSDL -DUNIX -DPSS_STYLE=1 -DZLIB -DFRAMESKIP -D_REENTRANT
4 RM      = rm -f
5 B       = drivers/pc/
6 ifdef DEBUG
7 TFLAGS  += -ggdb
8 else
9 TFLAGS  += -O3
10 endif
11
12 all:            fceu
13
14 gpfce: fceu
15         cp fceu gpfce
16
17 include zlib/Makefile
18
19 OBJDRIVER       = ${B}minimal.o ${B}sdl.o ${B}main.o ${B}throttle.o ${B}unix-netplay.o ${B}sdl-sound.o ${B}sdl-video.o ${B}sdl-joystick.o drivers/common/cheat.o drivers/common/config.o drivers/common/args.o drivers/common/vidblit.o ${UNZIPOBJS} ppu.o
20 LDRIVER         = -L /mnt/sd/lib  -L/mnt/sd/gp2x/usr/lib  -lm  -lpthread -lz -static
21 #                    `arm-linux-sdl-config --libs`
22
23 include Makefile.base
24
25 ${B}sdl-joystick.o:     ${B}sdl-joystick.c
26 ${B}main.o:             ${B}main.c ${B}main.h ${B}usage.h ${B}input.c ${B}keyscan.h
27 ${B}sdl.o:              ${B}sdl.c ${B}sdl.h
28 ${B}sdl-video.o:        ${B}sdl-video.c
29 ${B}sdl-video.o:        ${B}minimal.c
30 ${B}sdl-sound.o:        ${B}sdl-sound.c
31 #${B}sdl-netplay.o:     ${B}sdl-netplay.c
32 ${B}unix-netplay.o:     ${B}unix-netplay.c
33 ${B}throttle.o:         ${B}throttle.c ${B}main.h ${B}throttle.h
34 ppu.o:                  ppu.c ppu.h
35
36 include Makefile.common
37
38 up: fceu
39         cp -v fceu /mnt/gp2x/mnt/sd/emus/Gpfce_v02/gpfce
40