20 -include Makefile.local
\r
22 ifeq "$(debug_cyclone)" "1"
\r
26 ifeq "$(use_musashi)" "1"
\r
27 # due to CPU stop flag acces
\r
33 DEFINES += ARM __GP2X__ IN_GP2X IN_EVDEV # BENCHMARK
\r
34 CFLAGS += -Wall -Winline -I../.. -I.
\r
36 CFLAGS += -O3 -fomit-frame-pointer -fstrict-aliasing -ffast-math
\r
38 CFLAGS += -mcpu=arm920t -mtune=arm920t
\r
39 ASFLAGS = -mcpu=arm920t -mfloat-abi=soft
\r
40 LDFLAGS += -lm -lpng
\r
43 STRIP = $(CROSS)strip
\r
46 OBJCOPY = $(CROSS)objcopy
\r
49 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
54 OBJS += pico/carthw/svp/compiler.o pico/carthw/svp/stub_arm.o
\r
55 OBJS += pico/sound/mix_arm.o
\r
58 OBJS += platform/common/emu.o platform/common/menu_pico.o platform/common/fonts.o platform/common/config.o \
\r
59 platform/common/arm_utils.o platform/common/arm_linux.o platform/common/readpng.o \
\r
60 platform/common/mp3_helix.o platform/common/input.o platform/common/main.o platform/common/mp3.o \
\r
61 platform/linux/sndout_oss.o platform/linux/plat.o platform/linux/in_evdev.o
\r
64 OBJS += unzip/unzip.o unzip/unzip_stream.o
\r
66 OBJS += zlib/gzio.o zlib/inffast.o zlib/inflate.o zlib/inftrees.o zlib/trees.o \
\r
67 zlib/deflate.o zlib/crc32.o zlib/adler32.o zlib/zutil.o zlib/compress.o
\r
73 DIRS += platform/gp2x platform/linux zlib unzip
\r
76 all: mkdirs PicoDrive
\r
78 include ../common/common.mak
\r
79 include ../common/common_arm.mak
\r
80 include ../common/revision.mak
\r
82 CFLAGS += $(addprefix -D,$(DEFINES))
\r
84 # partial linking helps profiled builds due to section merging
\r
85 PicoDrive.o : $(OBJS) ../common/helix/$(CROSS)helix-mp3.a
\r
88 # still using static, dynamic linking slows Wiz 1-10%
\r
89 # also libm on F100 is not compatible
\r
90 PicoDrive : PicoDrive.o
\r
92 $(CC) -static -o $@ $(CFLAGS) $^ $(LDFLAGS) -Wl,-Map=$@.map
\r
98 @cp -v PicoDrive /mnt/gp2x/mnt/sd/emus/PicoDrive/
\r
105 readme.txt: ../../tools/textfilter ../base_readme.txt
\r
106 ../../tools/textfilter ../base_readme.txt $@ GP2X
\r
108 # ----------- release -----------
\r
109 VER ?= $(shell head -n 1 version.h | sed 's/.*"\(.*\)\.\(.*\)".*/\1\2/g')
\r
110 CODE940 = code940/pico940_v3.bin
\r
112 rel: PicoDrive PicoDrive.gpe $(CODE940) readme.txt ../game_def.cfg \
\r
113 PicoDrive.png PicoDrive_s.png PicoDrive_t.png \
\r
114 warm_2.4.25.o warm_2.4.26-open2x.o warm_2.6.24.ko \
\r
115 ../../pico/carthw.cfg
\r
116 mkdir -p out/PicoDrive/skin/
\r
117 cp $^ out/PicoDrive/
\r
118 cp PicoDrive.ini out/
\r
119 cp skin/*.png out/PicoDrive/skin/
\r
120 cp skin/*.txt out/PicoDrive/skin/
\r
121 mkdir out/bin_to_cso_mp3
\r
122 cp ../../tools/bin_to_cso_mp3/* out/bin_to_cso_mp3/
\r
123 cd out && zip -9 -r ../../../PicoDrive_$(VER).zip *
\r