2 # Gilead Kutnick - Exophase
7 CC = $(CROSS_COMPILE)gcc
9 OBJS = main.o cpu.o memory.u video.o input.o sound.o gp2x.o gui.o \
10 cheats.o zip.o cpu_threaded.z arm_stub.o video_blend.o \
11 warm.o upscale_aspect.o
14 OBJS += pollux_dpc_set.o
19 OBJS += pollux_dpc_set.o
26 -include Makefile.local
28 # Platform specific definitions
31 CFLAGS += -DARM_ARCH -DGP2X_BUILD
36 CFLAGS += -DPOLLUX_BUILD
38 CFLAGS += -std=c99 -msoft-float -funsigned-char -Wall -ggdb
43 INCLUDES = `sdl-config --cflags`
44 LIBS = `sdl-config --libs` \
45 -lm -ldl -lpthread -lz
46 ifeq ($(WIZ)$(CAANOO),)
56 cpu.o cpu_threaded.z: CFLAGS += -Wno-unused-variable -Wno-unused-label
59 $(CC) $(CFLAGS) $(INCLUDES) -c -o $@ $<
62 $(CC) $(CFLAGS) $(INCLUDES) -c -o $@ $<
65 $(CC) $(CFLAGS) $(INCLUDES) -c -o $@ $<
68 $(CC) $(ASFLAGS) $(INCLUDES) -c -o $@ $<
71 $(CC) $(ASFLAGS) $(INCLUDES) -c -o $@ $<
74 $(CC) $(OBJS) $(LIBS) -o $(BIN)
77 rm -f *.o *.u *.z $(BIN)
79 rel: gpsp_caanoo gpsp_caanoo.ini gpsp_caanoo.gpe warm_2.6.24.ko \
80 ../COPYING.DOC ../readme.txt readme_gp2x.txt ../game_config.txt
82 mkdir -p out/gpsp_caanoo
83 cp $^ out/gpsp_caanoo/
84 mv out/gpsp_caanoo/gpsp_caanoo.ini out/
85 mv out/gpsp_caanoo/readme_gp2x.txt out/gpsp_caanoo/readme_caanoo.txt
86 echo -n '/mnt/sd' > out/gpsp_caanoo/romdir.txt
87 cd out && zip -9 -r ../gpsp_caanoo.zip *