\r
# you may or may not need to change this\r
#devkit_path = x:/stuff/dev/devkitgp2x/\r
-CROSS = arm-linux-\r
+export CROSS = arm-linux-\r
#CROSS = $(devkit_path)bin/arm-linux-\r
\r
# settings\r
OBJS += 940ctl.o\r
\r
# common\r
-OBJS += ../common/menu.o ../common/fonts.o ../common/arm_utils.o ../common/readpng.o\r
+OBJS += ../common/emu.o ../common/menu.o ../common/fonts.o ../common/arm_utils.o \\r
+ ../common/readpng.o ../common/mp3_helix.o\r
\r
# Pico\r
ifeq "$(amalgamate)" "1"\r
../../zlib/deflate.o ../../zlib/crc32.o ../../zlib/adler32.o ../../zlib/zutil.o ../../zlib/compress.o\r
# unzip\r
OBJS += ../../unzip/unzip.o ../../unzip/unzip_stream.o\r
-# mp3\r
-OBJS += mp3.o\r
# debug\r
ifeq "$(debug_cyclone)" "1"\r
OBJS += ../../Pico/_cyclone_debug.o ../../cpu/musashi/m68kdasm.o\r
\r
all: PicoDrive.gpe\r
\r
-PicoDrive.gpe : $(OBJS) helix/helix_mp3.a\r
+PicoDrive.gpe : $(OBJS) ../common/helix/helix_mp3.a\r
@echo $@\r
@$(GCC) -o $@ $(COPT) $^ -lm -lpng -Wl,-Map=PicoDrive.map\r
ifeq ($(DEBUG),)\r
../../Pico/sound/mix_asm.o : ../../Pico/sound/mix.s\r
@echo $<\r
@$(AS) $(ASOPT) $< -o $@\r
-../../Pico/misc_asm.o : ../../Pico/misc.s\r
+../../Pico/misc_asm.o : ../../Pico/Misc.s\r
@echo $<\r
@$(AS) $(ASOPT) $< -o $@\r
../../Pico/cd/pico_asm.o : ../../Pico/cd/Pico.s\r
../../Pico/cd/memory_asm.o : ../../Pico/cd/Memory.s\r
@echo $<\r
@$(AS) $(ASOPT) $< -o $@\r
-../../Pico/cd/misc_asm.o : ../../Pico/cd/misc.s\r
+../../Pico/cd/misc_asm.o : ../../Pico/cd/Misc.s\r
@echo $<\r
@$(AS) $(ASOPT) $< -o $@\r
\r
\r
\r
# build helix libs\r
-helix/helix_mp3.a:\r
- make -C helix\r
+../common/helix/helix_mp3.a:\r
+ make -C ../common/helix\r
+\r
+readme.txt: ../../tools/textfilter ../base_readme.txt\r
+ ../../tools/textfilter ../base_readme.txt $@ GP2X\r
+\r
+../../tools/textfilter: ../../tools/textfilter.c\r
+ make -C ../../tools/ textfilter\r
\r
\r
# cleanup\r
endif\r
endif\r
\r
-rel: PicoDrive.gpe code940/pico940.bin ../readme.txt config.txt PicoDrive.man.txt PicoDrive.png\r
+rel: PicoDrive.gpe code940/pico940.bin readme.txt PicoDrive.man.txt PicoDrive.png\r
zip -9 -j ../../PicoDrive_$(VER).zip $^ mmuhack.o\r
zip -9 -r ../../PicoDrive_$(VER).zip skin -i \*.png -i \*.txt\r
\r