f8af9634 |
1 | # makefile for uiq3_patcher_0_2.tar.gz setup, modified\r |
ca482e5d |
2 | export CROSS = arm-none-symbianelf-\r |
3 | APPNAME = PicoDrive\r |
4 | VER_MAJ = 1\r |
5 | VER_MIN = 51\r |
6 | VENDOR = notaz\r |
7 | UID3 = A00010F3\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 |
11 | STACK = 0x3000\r |
12 | HEAP = 0x10,0x1000000\r |
13 | \r |
cc68a136 |
14 | \r |
15 | # settings\r |
cc68a136 |
16 | asm_memory = 1\r |
17 | asm_render = 1\r |
ca482e5d |
18 | asm_ym2612 = 1\r |
19 | asm_misc = 1\r |
20 | asm_cdpico = 1\r |
21 | asm_cdmemory = 1\r |
cc68a136 |
22 | asm_blit = 1\r |
ca482e5d |
23 | use_cyclone = 1\r |
cc68a136 |
24 | #use_musashi = 1\r |
cc68a136 |
25 | \r |
26 | \r |
27 | # objects\r |
28 | \r |
29 | # launcher\r |
efcba75f |
30 | OBJS += App.o Engine.o Dialogs.o CSimpleTextParser.o emu.o\r |
cc68a136 |
31 | # engine\r |
efcba75f |
32 | OBJS += engine/main.o engine/vid.o engine/polledas.o engine/audio_mediaserver.o engine/debug.o\r |
ca482e5d |
33 | ifeq "$(asm_blit)" "1"\r |
efcba75f |
34 | OBJS += engine/blit_asm.o\r |
ca482e5d |
35 | else\r |
efcba75f |
36 | OBJS += engine/blit.o\r |
ca482e5d |
37 | endif\r |
38 | # common\r |
efcba75f |
39 | OBJS += ../common/emu.o ../common/config.o ../common/menu.o ../common/mp3_helix.o\r |
cc68a136 |
40 | # Pico\r |
efcba75f |
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 |
ca482e5d |
43 | # Pico - CD\r |
efcba75f |
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 |
ca482e5d |
47 | # Pico - Pico\r |
efcba75f |
48 | OBJS += pico/pico/pico.o pico/pico/memory.o pico/pico/xpcm.o\r |
ca482e5d |
49 | # Pico - carthw\r |
efcba75f |
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 |
cc68a136 |
52 | \r |
ca482e5d |
53 | # Pico - sound\r |
efcba75f |
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 |
ca482e5d |
57 | # zlib\r |
efcba75f |
58 | OBJS += 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 |
61 | OBJS += unzip/unzip.o unzip/unzip_stream.o\r |
ca482e5d |
62 | # CPU cores\r |
63 | ifeq "$(use_musashi)" "1"\r |
64 | CFLAGS += -DEMU_M68K\r |
efcba75f |
65 | OBJS += cpu/musashi/m68kops.o cpu/musashi/m68kcpu.o\r |
cc68a136 |
66 | endif\r |
ca482e5d |
67 | ifeq "$(use_cyclone)" "1"\r |
68 | CFLAGS += -DEMU_C68K\r |
efcba75f |
69 | OBJS += cpu/Cyclone/proj/Cyclone.o cpu/Cyclone/tools/idle.o\r |
cc68a136 |
70 | endif\r |
ca482e5d |
71 | # drz80\r |
72 | CFLAGS += -D_USE_DRZ80\r |
efcba75f |
73 | OBJS += cpu/DrZ80/drz80.o\r |
ca482e5d |
74 | # helix\r |
efcba75f |
75 | OBJS += ../common/helix/$(CROSS)helix-mp3.a\r |
ca482e5d |
76 | \r |
77 | \r |
78 | vpath %.c = ../..\r |
79 | vpath %.s = ../..\r |
80 | vpath %.S = ../..\r |
efcba75f |
81 | DIRS = 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 |
84 | ICONS := $(shell echo rsc/*.bmp)\r |
85 | APPICON = $(NAME).mbm\r |
86 | RSCDIR = rsc\r |
87 | REGDIR = rsc\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 |
95 | export CFLAGS\r |
96 | SRCRES := $(shell echo rsc/*.rss)\r |
97 | EPOCRCFLAGS += -I./\r |
98 | \r |
99 | all: mkdirs sis\r |
100 | \r |
ca482e5d |
101 | include ../common/common_arm.mak\r |
efcba75f |
102 | include 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 |
113 | engine/blit_asm.o : engine/blit.s\r |
114 | @echo ">>>" $@\r |
115 | $(AS) $(ASFLAGS) $< -o $@\r |
116 | \r |
f8af9634 |
117 | \r |
118 | readme.txt: ../../tools/textfilter ../base_readme.txt\r |
119 | ../../tools/textfilter ../base_readme.txt $@ UIQ\r |
120 | \r |
121 | # ----------- release -----------\r |
122 | ifneq ($(findstring rel,$(MAKECMDGOALS)),)\r |
123 | ifeq ($(VER),)\r |
124 | $(error need VER)\r |
125 | endif\r |
126 | endif\r |
127 | \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 |