1 # makefile for uiq3_patcher_0_2.tar.gz setup, modified
\r
2 export CROSS = arm-none-symbianelf-
\r
8 EPOCROOT = /opt/uiq3/
\r
9 EPOCLIBS = qikdlg.lib etext.lib bafl.lib efsrv.lib eikctl.lib ws32.lib \
\r
10 eikdlg.lib gdi.lib estor.lib hal.lib mediaclient.lib mediaclientaudiostream.lib
\r
12 HEAP = 0x10,0x1000000
\r
30 OBJS += App.o Engine.o Dialogs.o CSimpleTextParser.o emu.o
\r
32 OBJS += engine/main.o engine/vid.o engine/polledas.o engine/audio_mediaserver.o engine/debug.o
\r
33 ifeq "$(asm_blit)" "1"
\r
34 OBJS += engine/blit_asm.o
\r
36 OBJS += engine/blit.o
\r
39 OBJS += ../common/emu.o ../common/config.o ../common/menu.o ../common/mp3_helix.o
\r
41 OBJS += pico/area.o pico/cart.o pico/memory.o pico/misc.o pico/pico.o pico/sek.o \
\r
42 pico/videoport.o pico/draw2.o pico/draw.o pico/patch.o pico/debug.o
\r
44 OBJS += pico/cd/pico.o pico/cd/memory.o pico/cd/sek.o pico/cd/LC89510.o \
\r
45 pico/cd/cd_sys.o pico/cd/cd_file.o pico/cd/cue.o pico/cd/gfx_cd.o \
\r
46 pico/cd/area.o pico/cd/misc.o pico/cd/pcm.o pico/cd/buffering.o
\r
48 OBJS += pico/pico/pico.o pico/pico/memory.o pico/pico/xpcm.o
\r
50 OBJS += pico/carthw/carthw.o pico/carthw/svp/svp.o pico/carthw/svp/memory.o \
\r
51 pico/carthw/svp/ssp16.o pico/carthw/svp/compiler.o pico/carthw/svp/stub_arm.o
\r
54 OBJS += pico/sound/sound.o
\r
55 OBJS += pico/sound/mix_arm.o
\r
56 OBJS += pico/sound/sn76496.o pico/sound/ym2612.o
\r
58 OBJS += zlib/gzio.o zlib/inffast.o zlib/inflate.o zlib/inftrees.o zlib/trees.o \
\r
59 zlib/deflate.o zlib/crc32.o zlib/adler32.o zlib/zutil.o zlib/compress.o
\r
61 OBJS += unzip/unzip.o unzip/unzip_stream.o
\r
63 ifeq "$(use_musashi)" "1"
\r
64 CFLAGS += -DEMU_M68K
\r
65 OBJS += cpu/musashi/m68kops.o cpu/musashi/m68kcpu.o
\r
67 ifeq "$(use_cyclone)" "1"
\r
68 CFLAGS += -DEMU_C68K
\r
69 OBJS += cpu/Cyclone/proj/Cyclone.o cpu/Cyclone/tools/idle.o
\r
72 CFLAGS += -D_USE_DRZ80
\r
73 OBJS += cpu/DrZ80/drz80.o
\r
75 OBJS += ../common/helix/$(CROSS)helix-mp3.a
\r
81 DIRS = platform platform/common pico pico/cd pico/pico pico/sound pico/carthw/svp \
\r
82 zlib unzip cpu cpu/musashi cpu/Cyclone/proj cpu/Cyclone/tools cpu/mz80 cpu/DrZ80
\r
84 ICONS := $(shell echo rsc/*.bmp)
\r
85 APPICON = $(NAME).mbm
\r
88 CFLAGS += -I./ -I../../
\r
89 CFLAGS += -DUIQ3 -DARM -DNO_SYNC
\r
90 CFLAGS += -D__DEBUG_PRINT
\r
91 CFLAGS += -mcpu=arm926ej-s -mtune=arm926ej-s -O3 -ftracer \
\r
92 -fstrength-reduce -fomit-frame-pointer -fstrict-aliasing -ffast-math
\r
93 SFLAGS = -march=armv5t -msoft-float -nostdinc
\r
94 ASFLAGS = -mcpu=arm926ej-s -mfloat-abi=soft
\r
96 SRCRES := $(shell echo rsc/*.rss)
\r
101 include ../common/common_arm.mak
\r
105 $(NAME).mbg $(NAME).mbm : $(ICONS)
\r
106 @echo "Creating multibitmap file..."
\r
107 $(BMCONV) /h$(NAME).mbg $(NAME).mbm \
\r
108 /c24rsc/pico18x18.bmp /8rsc/pico18x18m.bmp \
\r
109 /c24rsc/pico40x40.bmp /8rsc/pico40x40m.bmp \
\r
110 /c24rsc/pico64x64.bmp /8rsc/pico64x64m.bmp
\r
113 engine/blit_asm.o : engine/blit.s
\r
115 $(AS) $(ASFLAGS) $< -o $@
\r
118 readme.txt: ../../tools/textfilter ../base_readme.txt
\r
119 ../../tools/textfilter ../base_readme.txt $@ UIQ
\r
121 # ----------- release -----------
\r
122 ifneq ($(findstring rel,$(MAKECMDGOALS)),)
\r
128 rel: picodrive.sis readme.txt
\r
129 zip -9 -j ../../PicoDrive_uiq3_$(VER).zip $^
\r
130 mkdir bin_to_cso_mp3
\r
131 cp ../../tools/bin_to_cso_mp3/* bin_to_cso_mp3/
\r
132 zip -9 -r ../../PicoDrive_uiq3_$(VER).zip bin_to_cso_mp3
\r
133 rm -rf bin_to_cso_mp3
\r