bugfix
[picodrive.git] / platform / uiq3 / Makefile
CommitLineData
f8af9634 1# makefile for uiq3_patcher_0_2.tar.gz setup, modified\r
ca482e5d 2export CROSS = arm-none-symbianelf-\r
3APPNAME = PicoDrive\r
4VER_MAJ = 1\r
5VER_MIN = 51\r
6VENDOR = notaz\r
7UID3 = A00010F3\r
8EPOCROOT = /opt/uiq3/\r
9EPOCLIBS = 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
11STACK = 0x3000\r
12HEAP = 0x10,0x1000000\r
13\r
cc68a136 14\r
15# settings\r
cc68a136 16asm_memory = 1\r
17asm_render = 1\r
ca482e5d 18asm_ym2612 = 1\r
19asm_misc = 1\r
20asm_cdpico = 1\r
21asm_cdmemory = 1\r
cc68a136 22asm_blit = 1\r
ca482e5d 23use_cyclone = 1\r
cc68a136 24#use_musashi = 1\r
cc68a136 25\r
26\r
27# objects\r
28\r
29# launcher\r
efcba75f 30OBJS += App.o Engine.o Dialogs.o CSimpleTextParser.o emu.o\r
cc68a136 31# engine\r
efcba75f 32OBJS += engine/main.o engine/vid.o engine/polledas.o engine/audio_mediaserver.o engine/debug.o\r
ca482e5d 33ifeq "$(asm_blit)" "1"\r
efcba75f 34OBJS += engine/blit_asm.o\r
ca482e5d 35else\r
efcba75f 36OBJS += engine/blit.o\r
ca482e5d 37endif\r
38# common\r
efcba75f 39OBJS += ../common/emu.o ../common/config.o ../common/menu.o ../common/mp3_helix.o\r
cc68a136 40# Pico\r
efcba75f 41OBJS += 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
ca482e5d 43# Pico - CD\r
efcba75f 44OBJS += 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
ca482e5d 47# Pico - Pico\r
efcba75f 48OBJS += pico/pico/pico.o pico/pico/memory.o pico/pico/xpcm.o\r
ca482e5d 49# Pico - carthw\r
efcba75f 50OBJS += 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
cc68a136 52\r
ca482e5d 53# Pico - sound\r
efcba75f 54OBJS += pico/sound/sound.o\r
55OBJS += pico/sound/mix_arm.o\r
56OBJS += pico/sound/sn76496.o pico/sound/ym2612.o\r
ca482e5d 57# zlib\r
efcba75f 58OBJS += zlib/gzio.o zlib/inffast.o zlib/inflate.o zlib/inftrees.o zlib/trees.o \\r
ca482e5d 59 zlib/deflate.o zlib/crc32.o zlib/adler32.o zlib/zutil.o zlib/compress.o\r
60# unzip\r
efcba75f 61OBJS += unzip/unzip.o unzip/unzip_stream.o\r
ca482e5d 62# CPU cores\r
63ifeq "$(use_musashi)" "1"\r
64CFLAGS += -DEMU_M68K\r
efcba75f 65OBJS += cpu/musashi/m68kops.o cpu/musashi/m68kcpu.o\r
cc68a136 66endif\r
ca482e5d 67ifeq "$(use_cyclone)" "1"\r
68CFLAGS += -DEMU_C68K\r
efcba75f 69OBJS += cpu/Cyclone/proj/Cyclone.o cpu/Cyclone/tools/idle.o\r
cc68a136 70endif\r
ca482e5d 71# drz80\r
72CFLAGS += -D_USE_DRZ80\r
efcba75f 73OBJS += cpu/DrZ80/drz80.o\r
ca482e5d 74# helix\r
efcba75f 75OBJS += ../common/helix/$(CROSS)helix-mp3.a\r
ca482e5d 76\r
77\r
78vpath %.c = ../..\r
79vpath %.s = ../..\r
80vpath %.S = ../..\r
efcba75f 81DIRS = platform platform/common pico pico/cd pico/pico pico/sound pico/carthw/svp \\r
ca482e5d 82 zlib unzip cpu cpu/musashi cpu/Cyclone/proj cpu/Cyclone/tools cpu/mz80 cpu/DrZ80\r
83\r
84ICONS := $(shell echo rsc/*.bmp)\r
85APPICON = $(NAME).mbm\r
86RSCDIR = rsc\r
87REGDIR = rsc\r
88CFLAGS += -I./ -I../../\r
89CFLAGS += -DUIQ3 -DARM -DNO_SYNC\r
90CFLAGS += -D__DEBUG_PRINT\r
91CFLAGS += -mcpu=arm926ej-s -mtune=arm926ej-s -O3 -ftracer \\r
92 -fstrength-reduce -fomit-frame-pointer -fstrict-aliasing -ffast-math\r
93SFLAGS = -march=armv5t -msoft-float -nostdinc\r
94ASFLAGS = -mcpu=arm926ej-s -mfloat-abi=soft\r
95export CFLAGS\r
96SRCRES := $(shell echo rsc/*.rss)\r
97EPOCRCFLAGS += -I./\r
98\r
99all: mkdirs sis\r
100\r
ca482e5d 101include ../common/common_arm.mak\r
efcba75f 102include uiq3.mak\r
ca482e5d 103\r
104\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
111\r
112\r
113engine/blit_asm.o : engine/blit.s\r
114 @echo ">>>" $@\r
115 $(AS) $(ASFLAGS) $< -o $@\r
116\r
f8af9634 117\r
118readme.txt: ../../tools/textfilter ../base_readme.txt\r
119 ../../tools/textfilter ../base_readme.txt $@ UIQ\r
120\r
121# ----------- release -----------\r
122ifneq ($(findstring rel,$(MAKECMDGOALS)),)\r
123ifeq ($(VER),)\r
124$(error need VER)\r
125endif\r
126endif\r
127\r
128rel: 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