libretro: preliminary physical cdrom support
[pcsx_rearmed.git] / Makefile
... / ...
CommitLineData
1# Makefile for PCSX ReARMed
2
3# default stuff goes here, so that config can override
4TARGET ?= pcsx
5CFLAGS += -Wall -Iinclude -ffast-math
6ifeq ($(DEBUG), 1)
7CFLAGS += -O0 -ggdb
8else
9ifeq ($(platform), $(filter $(platform), vita ctr))
10CFLAGS += -O3 -DNDEBUG
11else
12CFLAGS += -O2 -DNDEBUG
13endif
14endif
15ifeq ($(DEBUG_ASAN), 1)
16CFLAGS += -fsanitize=address
17endif
18CFLAGS += -DP_HAVE_MMAP=$(if $(NO_MMAP),0,1) \
19 -DP_HAVE_PTHREAD=$(if $(NO_PTHREAD),0,1) \
20 -DP_HAVE_POSIX_MEMALIGN=$(if $(NO_POSIX_MEMALIGN),0,1) \
21 -DDISABLE_MEM_LUTS=0
22CXXFLAGS += $(CFLAGS)
23#DRC_DBG = 1
24#PCNT = 1
25
26# Suppress minor warnings for dependencies
27deps/%: CFLAGS += -Wno-unused -Wno-unused-function
28
29all: config.mak target_ plugins_
30
31ifndef NO_CONFIG_MAK
32ifneq ($(wildcard config.mak),)
33config.mak: ./configure
34 @echo $@ is out-of-date, running configure
35 @sed -n "/.*Configured with/s/[^:]*: //p" $@ | sh
36include config.mak
37else
38config.mak:
39 @echo "Please run ./configure before running make!"
40 @exit 1
41endif
42else # NO_CONFIG_MAK
43config.mak:
44endif
45
46-include Makefile.local
47
48CC_LINK ?= $(CC)
49CC_AS ?= $(CC)
50LDFLAGS += $(MAIN_LDFLAGS)
51ifeq ($(DEBUG_ASAN), 1)
52LDFLAGS += -static-libasan
53endif
54EXTRA_LDFLAGS ?= -Wl,-Map=$@.map
55LDLIBS += $(MAIN_LDLIBS)
56ifdef PCNT
57CFLAGS += -DPCNT
58endif
59
60# core
61OBJS += libpcsxcore/cdriso.o libpcsxcore/cdrom.o libpcsxcore/cheat.o libpcsxcore/database.o \
62 libpcsxcore/decode_xa.o libpcsxcore/mdec.o \
63 libpcsxcore/misc.o libpcsxcore/plugins.o libpcsxcore/ppf.o libpcsxcore/psxbios.o \
64 libpcsxcore/psxcommon.o libpcsxcore/psxcounters.o libpcsxcore/psxdma.o \
65 libpcsxcore/psxhw.o libpcsxcore/psxinterpreter.o libpcsxcore/psxmem.o \
66 libpcsxcore/psxevents.o libpcsxcore/r3000a.o \
67 libpcsxcore/sio.o libpcsxcore/spu.o libpcsxcore/gpu.o
68OBJS += libpcsxcore/gte.o libpcsxcore/gte_nf.o libpcsxcore/gte_divider.o
69
70ifeq ($(DEBUG), 1)
71#OBJS += libpcsxcore/debug.o libpcsxcore/socket.o libpcsxcore/disr3000a.o
72endif
73
74ifeq ($(WANT_ZLIB),1)
75CFLAGS += -Ideps/libchdr/deps/zlib-1.2.13
76OBJS += deps/libchdr/deps/zlib-1.2.13/adler32.o \
77 deps/libchdr/deps/zlib-1.2.13/compress.o \
78 deps/libchdr/deps/zlib-1.2.13/crc32.o \
79 deps/libchdr/deps/zlib-1.2.13/deflate.o \
80 deps/libchdr/deps/zlib-1.2.13/gzclose.o \
81 deps/libchdr/deps/zlib-1.2.13/gzlib.o \
82 deps/libchdr/deps/zlib-1.2.13/gzread.o \
83 deps/libchdr/deps/zlib-1.2.13/gzwrite.o \
84 deps/libchdr/deps/zlib-1.2.13/infback.o \
85 deps/libchdr/deps/zlib-1.2.13/inffast.o \
86 deps/libchdr/deps/zlib-1.2.13/inflate.o \
87 deps/libchdr/deps/zlib-1.2.13/inftrees.o \
88 deps/libchdr/deps/zlib-1.2.13/trees.o \
89 deps/libchdr/deps/zlib-1.2.13/uncompr.o \
90 deps/libchdr/deps/zlib-1.2.13/zutil.o
91deps/libchdr/deps/zlib-1.2.13/%.o: CFLAGS += -DHAVE_UNISTD_H
92endif
93ifeq "$(ARCH)" "arm"
94OBJS += libpcsxcore/gte_arm.o
95endif
96ifeq "$(HAVE_NEON_ASM)" "1"
97OBJS += libpcsxcore/gte_neon.o
98endif
99libpcsxcore/psxbios.o: CFLAGS += -Wno-nonnull
100
101# dynarec
102ifeq "$(DYNAREC)" "lightrec"
103CFLAGS += -Ideps/lightning/include -Ideps/lightrec -Iinclude/lightning -Iinclude/lightrec \
104 -DLIGHTREC -DLIGHTREC_STATIC
105LIGHTREC_CUSTOM_MAP ?= 0
106LIGHTREC_CUSTOM_MAP_OBJ ?= libpcsxcore/lightrec/mem.o
107LIGHTREC_THREADED_COMPILER ?= 0
108CFLAGS += -DLIGHTREC_CUSTOM_MAP=$(LIGHTREC_CUSTOM_MAP) \
109 -DLIGHTREC_ENABLE_THREADED_COMPILER=$(LIGHTREC_THREADED_COMPILER)
110ifeq ($(LIGHTREC_CUSTOM_MAP),1)
111LDLIBS += -lrt
112OBJS += $(LIGHTREC_CUSTOM_MAP_OBJ)
113endif
114ifeq ($(NEED_SYSCONF),1)
115OBJS += libpcsxcore/lightrec/sysconf.o
116endif
117ifeq ($(LIGHTREC_THREADED_COMPILER),1)
118OBJS += deps/lightrec/recompiler.o \
119 deps/lightrec/reaper.o
120endif
121OBJS += deps/lightrec/tlsf/tlsf.o
122OBJS += libpcsxcore/lightrec/plugin.o \
123 libpcsxcore/lightrec/internals.o
124OBJS += deps/lightning/lib/jit_disasm.o \
125 deps/lightning/lib/jit_memory.o \
126 deps/lightning/lib/jit_names.o \
127 deps/lightning/lib/jit_note.o \
128 deps/lightning/lib/jit_print.o \
129 deps/lightning/lib/jit_size.o \
130 deps/lightning/lib/lightning.o \
131 deps/lightrec/blockcache.o \
132 deps/lightrec/constprop.o \
133 deps/lightrec/disassembler.o \
134 deps/lightrec/emitter.o \
135 deps/lightrec/interpreter.o \
136 deps/lightrec/lightrec.o \
137 deps/lightrec/memmanager.o \
138 deps/lightrec/optimizer.o \
139 deps/lightrec/regcache.o
140deps/lightning/%.o: CFLAGS += -DHAVE_MMAP=P_HAVE_MMAP
141deps/lightning/%: CFLAGS += -w
142deps/lightrec/%: CFLAGS += -w
143libpcsxcore/lightrec/mem.o: CFLAGS += -D_GNU_SOURCE
144ifeq ($(MMAP_WIN32),1)
145CFLAGS += -Iinclude/mman -I deps/mman
146OBJS += deps/mman/mman.o
147endif
148else ifeq "$(DYNAREC)" "ari64"
149OBJS += libpcsxcore/new_dynarec/new_dynarec.o
150OBJS += libpcsxcore/new_dynarec/pcsxmem.o
151 ifeq "$(ARCH)" "arm"
152 OBJS += libpcsxcore/new_dynarec/linkage_arm.o
153 libpcsxcore/new_dynarec/new_dynarec.o: libpcsxcore/new_dynarec/assem_arm.c
154 else ifneq (,$(findstring $(ARCH),aarch64 arm64))
155 OBJS += libpcsxcore/new_dynarec/linkage_arm64.o
156 libpcsxcore/new_dynarec/new_dynarec.o: libpcsxcore/new_dynarec/assem_arm64.c
157 else
158 $(error no dynarec support for architecture $(ARCH))
159 endif
160else
161CFLAGS += -DDRC_DISABLE
162endif
163OBJS += libpcsxcore/new_dynarec/emu_if.o
164libpcsxcore/new_dynarec/new_dynarec.o: libpcsxcore/new_dynarec/pcsxmem_inline.c
165ifdef DRC_DBG
166libpcsxcore/new_dynarec/emu_if.o: CFLAGS += -D_FILE_OFFSET_BITS=64
167CFLAGS += -DDRC_DBG
168endif
169ifeq "$(BASE_ADDR_DYNAMIC)" "1"
170libpcsxcore/new_dynarec/%.o: CFLAGS += -DBASE_ADDR_DYNAMIC=1
171endif
172
173# spu
174OBJS += plugins/dfsound/dma.o plugins/dfsound/freeze.o \
175 plugins/dfsound/registers.o plugins/dfsound/spu.o \
176 plugins/dfsound/out.o plugins/dfsound/nullsnd.o
177plugins/dfsound/spu.o: plugins/dfsound/adsr.c plugins/dfsound/reverb.c \
178 plugins/dfsound/xa.c
179ifeq "$(ARCH)" "arm"
180OBJS += plugins/dfsound/arm_utils.o
181endif
182ifeq "$(HAVE_C64_TOOLS)" "1"
183plugins/dfsound/%.o: CFLAGS += -DC64X_DSP -DWANT_THREAD_CODE
184plugins/dfsound/spu.o: plugins/dfsound/spu_c64x.c
185frontend/menu.o: CFLAGS += -DC64X_DSP
186endif
187ifneq ($(findstring oss,$(SOUND_DRIVERS)),)
188plugins/dfsound/out.o: CFLAGS += -DHAVE_OSS
189OBJS += plugins/dfsound/oss.o
190endif
191ifneq ($(findstring alsa,$(SOUND_DRIVERS)),)
192plugins/dfsound/out.o: CFLAGS += -DHAVE_ALSA
193OBJS += plugins/dfsound/alsa.o
194LDLIBS += -lasound
195endif
196ifneq ($(findstring sdl,$(SOUND_DRIVERS)),)
197plugins/dfsound/out.o: CFLAGS += -DHAVE_SDL
198OBJS += plugins/dfsound/sdl.o
199endif
200ifneq ($(findstring pulseaudio,$(SOUND_DRIVERS)),)
201plugins/dfsound/out.o: CFLAGS += -DHAVE_PULSE
202OBJS += plugins/dfsound/pulseaudio.o
203endif
204ifneq ($(findstring libretro,$(SOUND_DRIVERS)),)
205plugins/dfsound/out.o: CFLAGS += -DHAVE_LIBRETRO
206endif
207
208# builtin gpu
209OBJS += plugins/gpulib/gpu.o plugins/gpulib/vout_pl.o
210ifeq "$(BUILTIN_GPU)" "neon"
211CFLAGS += -DGPU_NEON
212OBJS += plugins/gpu_neon/psx_gpu_if.o
213plugins/gpu_neon/psx_gpu_if.o: CFLAGS += -DNEON_BUILD -DTEXTURE_CACHE_4BPP -DTEXTURE_CACHE_8BPP
214plugins/gpu_neon/psx_gpu_if.o: plugins/gpu_neon/psx_gpu/*.c
215frontend/menu.o frontend/plugin_lib.o: CFLAGS += -DBUILTIN_GPU_NEON
216 ifeq "$(HAVE_NEON_ASM)" "1"
217 OBJS += plugins/gpu_neon/psx_gpu/psx_gpu_arm_neon.o
218 else
219 OBJS += plugins/gpu_neon/psx_gpu/psx_gpu_simd.o
220 plugins/gpu_neon/psx_gpu_if.o: CFLAGS += -DSIMD_BUILD
221 plugins/gpu_neon/psx_gpu/psx_gpu_simd.o: CFLAGS += -DSIMD_BUILD
222 endif
223endif
224ifeq "$(BUILTIN_GPU)" "peops"
225CFLAGS += -DGPU_PEOPS
226# note: code is not safe for strict-aliasing? (Castlevania problems)
227plugins/dfxvideo/gpulib_if.o: CFLAGS += -fno-strict-aliasing
228plugins/dfxvideo/gpulib_if.o: plugins/dfxvideo/prim.c plugins/dfxvideo/soft.c
229OBJS += plugins/dfxvideo/gpulib_if.o
230ifeq "$(THREAD_RENDERING)" "1"
231CFLAGS += -DTHREAD_RENDERING
232OBJS += plugins/gpulib/gpulib_thread_if.o
233endif
234endif
235ifeq "$(BUILTIN_GPU)" "unai"
236CFLAGS += -DGPU_UNAI
237CFLAGS += -DUSE_GPULIB=1
238#CFLAGS += -DINLINE="static __inline__"
239#CFLAGS += -Dasm="__asm__ __volatile__"
240OBJS += plugins/gpu_unai/gpulib_if.o
241ifeq "$(ARCH)" "arm"
242OBJS += plugins/gpu_unai/gpu_arm.o
243endif
244ifeq "$(THREAD_RENDERING)" "1"
245CFLAGS += -DTHREAD_RENDERING
246OBJS += plugins/gpulib/gpulib_thread_if.o
247endif
248plugins/gpu_unai/gpulib_if.o: CFLAGS += -DREARMED -O3
249CC_LINK = $(CXX)
250endif
251
252# cdrcimg
253OBJS += plugins/cdrcimg/cdrcimg.o
254
255# libchdr
256ifeq "$(HAVE_CHD)" "1"
257CFLAGS += -Ideps/libchdr/include
258CFLAGS += -Ideps/libchdr/include/libchdr
259OBJS += deps/libchdr/deps/lzma-19.00/src/Alloc.o
260OBJS += deps/libchdr/deps/lzma-19.00/src/Bra86.o
261OBJS += deps/libchdr/deps/lzma-19.00/src/BraIA64.o
262OBJS += deps/libchdr/deps/lzma-19.00/src/CpuArch.o
263OBJS += deps/libchdr/deps/lzma-19.00/src/Delta.o
264OBJS += deps/libchdr/deps/lzma-19.00/src/LzFind.o
265OBJS += deps/libchdr/deps/lzma-19.00/src/Lzma86Dec.o
266OBJS += deps/libchdr/deps/lzma-19.00/src/LzmaDec.o
267OBJS += deps/libchdr/deps/lzma-19.00/src/LzmaEnc.o
268OBJS += deps/libchdr/deps/lzma-19.00/src/Sort.o
269OBJS += deps/libchdr/src/libchdr_bitstream.o
270OBJS += deps/libchdr/src/libchdr_cdrom.o
271OBJS += deps/libchdr/src/libchdr_chd.o
272OBJS += deps/libchdr/src/libchdr_flac.o
273OBJS += deps/libchdr/src/libchdr_huffman.o
274CFLAGS += -Ideps/libchdr/deps/lzma-19.00/include
275CFLAGS += -DHAVE_CHD -D_7ZIP_ST
276LDFLAGS += -lm
277endif
278
279# frontend/gui
280OBJS += frontend/cspace.o
281ifeq "$(HAVE_NEON_ASM)" "1"
282OBJS += frontend/cspace_neon.o
283frontend/cspace.o: CFLAGS += -DHAVE_bgr555_to_rgb565 -DHAVE_bgr888_to_x
284else
285ifeq "$(ARCH)" "arm"
286OBJS += frontend/cspace_arm.o
287frontend/cspace.o: CFLAGS += -DHAVE_bgr555_to_rgb565
288endif
289endif
290
291ifeq "$(PLATFORM)" "generic"
292OBJS += frontend/libpicofe/in_sdl.o
293OBJS += frontend/libpicofe/plat_sdl.o
294OBJS += frontend/libpicofe/plat_dummy.o
295OBJS += frontend/libpicofe/linux/in_evdev.o
296OBJS += frontend/plat_sdl.o
297ifeq "$(HAVE_GLES)" "1"
298OBJS += frontend/libpicofe/gl.o frontend/libpicofe/gl_platform.o
299LDLIBS += $(LDLIBS_GLES)
300frontend/libpicofe/plat_sdl.o: CFLAGS += -DHAVE_GLES $(CFLAGS_GLES)
301frontend/libpicofe/gl_platform.o: CFLAGS += -DHAVE_GLES $(CFLAGS_GLES)
302frontend/libpicofe/gl.o: CFLAGS += -DHAVE_GLES $(CFLAGS_GLES)
303frontend/plat_sdl.o: CFLAGS += -DHAVE_GLES $(CFLAGS_GLES)
304endif
305USE_PLUGIN_LIB = 1
306USE_FRONTEND = 1
307endif
308ifeq "$(PLATFORM)" "pandora"
309OBJS += frontend/libpicofe/pandora/plat.o
310OBJS += frontend/libpicofe/linux/fbdev.o frontend/libpicofe/linux/xenv.o
311OBJS += frontend/libpicofe/linux/in_evdev.o
312OBJS += frontend/plat_pandora.o frontend/plat_omap.o
313frontend/main.o frontend/menu.o: CFLAGS += -include frontend/pandora/ui_feat.h
314frontend/libpicofe/linux/plat.o: CFLAGS += -DPANDORA
315USE_PLUGIN_LIB = 1
316USE_FRONTEND = 1
317CFLAGS += -gdwarf-3 -ffunction-sections -fdata-sections
318LDFLAGS += -Wl,--gc-sections
319endif
320ifeq "$(PLATFORM)" "caanoo"
321OBJS += frontend/libpicofe/gp2x/in_gp2x.o frontend/warm/warm.o
322OBJS += frontend/libpicofe/gp2x/soc_pollux.o
323OBJS += frontend/libpicofe/linux/in_evdev.o
324OBJS += frontend/plat_pollux.o frontend/in_tsbutton.o frontend/blit320.o
325frontend/main.o frontend/menu.o: CFLAGS += -include frontend/320240/ui_gp2x.h
326USE_PLUGIN_LIB = 1
327USE_FRONTEND = 1
328endif
329ifeq "$(PLATFORM)" "maemo"
330OBJS += maemo/hildon.o maemo/main.o maemo/maemo_xkb.o frontend/pl_gun_ts.o
331maemo/%.o: maemo/%.c
332USE_PLUGIN_LIB = 1
333LDFLAGS += $(shell pkg-config --libs hildon-1 libpulse)
334CFLAGS += $(shell pkg-config --cflags hildon-1) -DHAVE_TSLIB
335CFLAGS += `pkg-config --cflags glib-2.0 libosso dbus-1 hildon-fm-2`
336LDFLAGS += `pkg-config --libs glib-2.0 libosso dbus-1 hildon-fm-2`
337endif
338ifeq "$(PLATFORM)" "libretro"
339ifneq "$(HAVE_PHYSICAL_CDROM)$(USE_LIBRETRO_VFS)" "00"
340OBJS += deps/libretro-common/compat/compat_strl.o
341OBJS += deps/libretro-common/file/file_path.o
342OBJS += deps/libretro-common/string/stdstring.o
343OBJS += deps/libretro-common/vfs/vfs_implementation.o
344endif
345ifeq "$(HAVE_PHYSICAL_CDROM)" "1"
346OBJS += deps/libretro-common/cdrom/cdrom.o
347OBJS += deps/libretro-common/memmap/memalign.o
348OBJS += deps/libretro-common/vfs/vfs_implementation_cdrom.o
349CFLAGS += -DHAVE_CDROM
350endif
351ifeq "$(USE_LIBRETRO_VFS)" "1"
352OBJS += deps/libretro-common/compat/compat_posix_string.o
353OBJS += deps/libretro-common/compat/fopen_utf8.o
354OBJS += deps/libretro-common/encodings/encoding_utf.o
355OBJS += deps/libretro-common/streams/file_stream.o
356OBJS += deps/libretro-common/streams/file_stream_transforms.o
357OBJS += deps/libretro-common/time/rtime.o
358CFLAGS += -DUSE_LIBRETRO_VFS
359endif
360OBJS += frontend/libretro.o
361CFLAGS += -Ideps/libretro-common/include
362CFLAGS += -DFRONTEND_SUPPORTS_RGB565
363CFLAGS += -DHAVE_LIBRETRO
364
365ifneq ($(DYNAREC),lightrec)
366ifeq ($(MMAP_WIN32),1)
367OBJS += libpcsxcore/memmap_win32.o
368endif
369endif
370endif
371
372ifeq "$(USE_PLUGIN_LIB)" "1"
373OBJS += frontend/plugin_lib.o
374OBJS += frontend/libpicofe/linux/plat.o
375OBJS += frontend/libpicofe/readpng.o frontend/libpicofe/fonts.o
376frontend/libpicofe/linux/plat.o: CFLAGS += -DNO_HOME_DIR
377ifeq "$(HAVE_NEON_ASM)" "1"
378OBJS += frontend/libpicofe/arm/neon_scale2x.o
379OBJS += frontend/libpicofe/arm/neon_eagle2x.o
380frontend/libpicofe/arm/neon_scale2x.o: CFLAGS += -DDO_BGR_TO_RGB
381frontend/libpicofe/arm/neon_eagle2x.o: CFLAGS += -DDO_BGR_TO_RGB
382endif
383endif
384ifeq "$(USE_FRONTEND)" "1"
385OBJS += frontend/menu.o
386OBJS += frontend/libpicofe/input.o
387frontend/menu.o: frontend/libpicofe/menu.c
388ifeq "$(HAVE_TSLIB)" "1"
389frontend/%.o: CFLAGS += -DHAVE_TSLIB
390OBJS += frontend/pl_gun_ts.o
391endif
392else
393CFLAGS += -DNO_FRONTEND
394endif
395
396# misc
397OBJS += frontend/main.o frontend/plugin.o
398frontend/main.o: CFLAGS += -DBUILTIN_GPU=$(BUILTIN_GPU)
399
400frontend/menu.o frontend/main.o: frontend/revision.h
401frontend/plat_sdl.o frontend/libretro.o: frontend/revision.h
402
403frontend/libpicofe/%.c:
404 @echo "libpicofe module is missing, please run:"
405 @echo "git submodule init && git submodule update"
406 @exit 1
407
408libpcsxcore/gte_nf.o: libpcsxcore/gte.c
409 $(CC) -c -o $@ $^ $(CFLAGS) -DFLAGLESS
410
411frontend/revision.h: FORCE
412 @(git describe --always || echo) | sed -e 's/.*/#define REV "\0"/' > $@_
413 @diff -q $@_ $@ > /dev/null 2>&1 || cp $@_ $@
414 @rm $@_
415
416%.o: %.S
417 $(CC_AS) $(CFLAGS) -c $^ -o $@
418
419%.o: %.cpp
420 $(CXX) $(CXXFLAGS) -c -o $@ $<
421
422%.o: %.c
423 $(CC) $(CFLAGS) -c -o $@ $<
424
425target_: $(TARGET)
426
427$(TARGET): $(OBJS)
428ifeq ($(STATIC_LINKING), 1)
429 $(AR) rcs $@ $(OBJS)
430else
431 $(CC_LINK) $(CFLAGS) -o $@ $^ $(LDFLAGS) $(LDLIBS) $(EXTRA_LDFLAGS)
432endif
433
434clean: $(PLAT_CLEAN) clean_plugins
435 $(RM) $(TARGET) $(OBJS) $(TARGET).map frontend/revision.h
436
437ifneq ($(PLUGINS),)
438plugins_: $(PLUGINS)
439
440$(PLUGINS):
441 $(MAKE) -C $(dir $@)
442
443clean_plugins:
444 $(MAKE) -C plugins/gpulib/ clean
445 for dir in $(PLUGINS) ; do \
446 $(MAKE) -C $$(dirname $$dir) clean; done
447else
448plugins_:
449clean_plugins:
450endif
451
452.PHONY: all clean target_ plugins_ clean_plugins FORCE
453
454# ----------- release -----------
455
456VER ?= $(shell git describe --always HEAD)
457
458ifeq "$(PLATFORM)" "generic"
459OUT = pcsx_rearmed_$(VER)
460
461rel: pcsx $(PLUGINS) \
462 frontend/pandora/skin readme.txt COPYING
463 rm -rf $(OUT)
464 mkdir -p $(OUT)/plugins
465 mkdir -p $(OUT)/bios
466 cp -r $^ $(OUT)/
467 mv $(OUT)/*.so* $(OUT)/plugins/
468 zip -9 -r $(OUT).zip $(OUT)
469endif
470
471ifeq "$(PLATFORM)" "pandora"
472PND_MAKE ?= $(HOME)/dev/pnd/src/pandora-libraries/testdata/scripts/pnd_make.sh
473
474rel: pcsx plugins/dfsound/pcsxr_spu_area3.out $(PLUGINS) \
475 frontend/pandora/pcsx.sh frontend/pandora/pcsx.pxml.templ frontend/pandora/pcsx.png \
476 frontend/pandora/picorestore frontend/pandora/skin readme.txt COPYING
477 rm -rf out
478 mkdir -p out/plugins
479 cp -r $^ out/
480 sed -e 's/%PR%/$(VER)/g' out/pcsx.pxml.templ > out/pcsx.pxml
481 rm out/pcsx.pxml.templ
482 mv out/*.so out/plugins/
483 $(PND_MAKE) -p pcsx_rearmed_$(VER).pnd -d out -x out/pcsx.pxml -i frontend/pandora/pcsx.png -c
484endif
485
486ifeq "$(PLATFORM)" "caanoo"
487PLAT_CLEAN = caanoo_clean
488
489caanoo_clean:
490 $(RM) frontend/320240/pollux_set
491
492rel: pcsx $(PLUGINS) \
493 frontend/320240/caanoo.gpe frontend/320240/pcsx26.png \
494 frontend/320240/pcsxb.png frontend/320240/skin \
495 frontend/warm/bin/warm_2.6.24.ko frontend/320240/pollux_set \
496 frontend/320240/pcsx_rearmed.ini frontend/320240/haptic_w.cfg \
497 frontend/320240/haptic_s.cfg \
498 readme.txt COPYING
499 rm -rf out
500 mkdir -p out/pcsx_rearmed/plugins
501 cp -r $^ out/pcsx_rearmed/
502 mv out/pcsx_rearmed/*.so out/pcsx_rearmed/plugins/
503 mv out/pcsx_rearmed/caanoo.gpe out/pcsx_rearmed/pcsx.gpe
504 mv out/pcsx_rearmed/pcsx_rearmed.ini out/
505 mkdir out/pcsx_rearmed/lib/
506 cp ./lib/libbz2.so.1 out/pcsx_rearmed/lib/
507 mkdir out/pcsx_rearmed/bios/
508 cd out && zip -9 -r ../pcsx_rearmed_$(VER)_caanoo.zip *
509endif