19 -include Makefile.local
\r
21 ifeq "$(debug_cyclone)" "1"
\r
25 ifeq "$(use_musashi)" "1"
\r
26 # due to CPU stop flag acces
\r
32 DEFINES += ARM __GP2X__ IN_GP2X IN_EVDEV # BENCHMARK
\r
33 CFLAGS += -Wall -Winline -I../.. -I.
\r
35 CFLAGS += -O3 -fomit-frame-pointer -fstrict-aliasing -ffast-math
\r
37 CFLAGS += -mcpu=arm920t -mtune=arm920t
\r
38 ASFLAGS = -mcpu=arm920t -mfloat-abi=soft
\r
39 LDFLAGS += -lm -lpng
\r
42 STRIP = $(CROSS)strip
\r
45 OBJCOPY = $(CROSS)objcopy
\r
48 OBJS += plat.o warm.o pollux_set.o soc.o soc_mmsp2.o soc_pollux.o soc_dummy.o emu.o in_gp2x.o
\r
53 OBJS += pico/carthw/svp/compiler.o pico/carthw/svp/stub_arm.o
\r
54 OBJS += pico/sound/mix_arm.o
\r
57 OBJS += platform/common/emu.o platform/common/menu.o platform/common/fonts.o platform/common/config.o \
\r
58 platform/common/arm_utils.o platform/common/arm_linux.o platform/common/readpng.o \
\r
59 platform/common/mp3_helix.o platform/common/input.o platform/common/main.o \
\r
60 platform/linux/sndout_oss.o platform/linux/plat.o platform/linux/in_evdev.o
\r
63 OBJS += unzip/unzip.o unzip/unzip_stream.o
\r
65 OBJS += zlib/gzio.o zlib/inffast.o zlib/inflate.o zlib/inftrees.o zlib/trees.o \
\r
66 zlib/deflate.o zlib/crc32.o zlib/adler32.o zlib/zutil.o zlib/compress.o
\r
72 DIRS += platform/gp2x platform/linux zlib unzip
\r
75 all: mkdirs PicoDrive
\r
77 include ../common/common.mak
\r
78 include ../common/common_arm.mak
\r
79 include ../common/revision.mak
\r
81 CFLAGS += $(addprefix -D,$(DEFINES))
\r
83 # partial linking helps profiled builds due to section merging
\r
84 PicoDrive.o : $(OBJS) ../common/helix/$(CROSS)helix-mp3.a
\r
87 # still using static, dynamic linking slows Wiz 1-10%
\r
88 # also libm on F100 is not compatible
\r
89 PicoDrive : PicoDrive.o
\r
91 $(CC) -static -o $@ $(CFLAGS) $^ $(LDFLAGS) -Wl,-Map=$@.map
\r
97 @cp -v PicoDrive /mnt/gp2x/mnt/sd/emus/PicoDrive/
\r
104 readme.txt: ../../tools/textfilter ../base_readme.txt
\r
105 ../../tools/textfilter ../base_readme.txt $@ GP2X
\r
107 # ----------- release -----------
\r
108 ifneq ($(findstring rel,$(MAKECMDGOALS)),)
\r
113 CODE940 = code940/pico940_v3.bin
\r
115 rel: PicoDrive PicoDrive.gpe $(CODE940) readme.txt PicoDrive.png ../game_def.cfg \
\r
116 warm_2.4.25.o warm_2.4.26-open2x.o warm_2.6.24.ko
\r
117 zip -9 -j ../../PicoDrive_$(VER).zip $^
\r
118 zip -9 -r ../../PicoDrive_$(VER).zip skin -i \*.png -i \*.txt
\r
119 mkdir bin_to_cso_mp3
\r
120 cp ../../tools/bin_to_cso_mp3/* bin_to_cso_mp3/
\r
121 zip -9 -r ../../PicoDrive_$(VER).zip bin_to_cso_mp3
\r
122 rm -rf bin_to_cso_mp3
\r