5cd200baf0e44524c37a140c570323d838d9b13e
[picodrive.git] / Makefile
1 $(LD) ?= $(CC)
2 TARGET ?= picodrive
3 ASAN ?= 0
4 DEBUG ?= 0
5 CFLAGS += -I.
6 CYCLONE_CC ?= gcc
7 CYCLONE_CXX ?= g++
8
9 all: config.mak target_
10
11 ifndef NO_CONFIG_MAK
12 ifneq ($(wildcard config.mak),)
13 config.mak: ./configure
14         @echo $@ is out-of-date, running configure
15         @sed -n "/.*Configured with/s/[^:]*: //p" $@ | sh
16 include config.mak
17 else
18 config.mak:
19         @echo "Please run ./configure before running make!"
20         @exit 1
21 endif
22 else # NO_CONFIG_MAK
23 config.mak:
24 endif
25
26 # This is actually needed, believe me - one bit is used as a flag in some tables
27 # If you really have to disable this, set NO_ALIGN_FUNCTIONS elsewhere.
28 ifndef NO_ALIGN_FUNCTIONS
29 CFLAGS += -falign-functions=2
30 endif
31
32 # profiling
33 pprof ?= 0
34 gperf ?= 0
35
36 ifneq ("$(PLATFORM)", "libretro")
37         CFLAGS += -Wall -g
38 ifneq ("$(PLATFORM)", "psp")
39 ifneq ($(findstring gcc,$(shell $(CC) -v 2>&1)),)
40         CFLAGS += -ffunction-sections -fdata-sections
41         LDFLAGS += -Wl,--gc-sections
42 endif
43 endif
44
45 ifeq "$(ASAN)" "1"
46         CFLAGS += -fsanitize=address -fsanitize=leak -fsanitize=bounds -fno-omit-frame-pointer -fno-common -O1 -g
47         LDLIBS += -fsanitize=address -fsanitize=leak -fsanitize=bounds -static-libasan
48 else
49 ifeq "$(DEBUG)" "0"
50         CFLAGS += -O3 -DNDEBUG
51 else
52         CFLAGS += -O1
53 endif
54 endif
55         LD = $(CC)
56         OBJOUT ?= -o
57         LINKOUT ?= -o
58 endif
59
60
61 chkCCflag = $(shell n=/dev/null; echo $(1) | tr " " "\n" | while read f; do \
62             $(CC) $$f -x c -c $$n -o $$n 2>$$n && echo "_$$f" | tr -d _; done)
63
64 ifeq ("$(PLATFORM)",$(filter "$(PLATFORM)","gp2x" "opendingux" "rpi1"))
65 # very small caches, avoid optimization options making the binary much bigger
66 CFLAGS += -fno-common -finline-limit=42 -fno-unroll-loops -ffast-math
67 CFLAGS += $(call chkCCflag, -fno-stack-protector)
68 ifneq ($(call chkCCflag, -fipa-ra),) # gcc >= 5
69 CFLAGS += $(call chkCCflag, -flto -fipa-pta -fipa-ra)
70 else
71 # these improve execution speed on 32bit arm/mips with gcc pre-5 toolchains
72 CFLAGS += $(call chkCCflag, -fno-caller-saves -fno-guess-branch-probability -fno-regmove)
73 # very old gcc toolchains may not have these options
74 CFLAGS += $(call chkCCflag, -fno-tree-loop-if-convert -fipa-pta -fno-ipa-cp)
75 endif
76 else
77 ifneq ($(STATIC_LINKING), 1)
78 CFLAGS += $(call chkCCflag, -flto)
79 endif
80 endif
81
82 # revision info from repository if this not a tagged release
83 ifeq "$(shell git describe --tags --exact-match HEAD 2>/dev/null)" ""
84 GIT_REVISION ?= -$(shell git rev-parse --short HEAD || echo unknown)
85 endif
86 CFLAGS += -DREVISION=\"$(GIT_REVISION)\"
87
88 # default settings
89 use_libchdr ?= 1
90 ifeq "$(ARCH)" "arm"
91 use_cyclone ?= 1
92 use_drz80 ?= 1
93 use_sh2drc ?= 1
94 use_svpdrc ?= 1
95
96 asm_memory ?= 1
97 asm_render ?= 1
98 asm_ym2612 ?= 1
99 asm_misc ?= 1
100 asm_cdmemory ?= 1
101 asm_mix ?= 1
102 asm_32xdraw ?= 1
103 asm_32xmemory ?= 1
104 else
105 use_fame ?= 1
106 use_cz80 ?= 1
107 ifneq (,$(filter x86% i386% i686% mips% aarch% riscv% powerpc% ppc%, $(ARCH)))
108 use_sh2drc ?= 1
109 endif
110 endif
111
112 -include Makefile.local
113
114 # TODO this should somehow go to the platform directory?
115 ifeq "$(PLATFORM)" "generic"
116 PicoDrive.zip: $(TARGET)
117         $(RM) -rf .od_data
118         mkdir .od_data
119         cp -r platform/linux/skin .od_data
120         cp platform/game_def.cfg .od_data
121         $(STRIP) $< -o .od_data/picodrive
122         cd .od_data && zip -9 -r ../$@ *
123 all: PicoDrive.zip
124 endif
125
126 ifeq "$(PLATFORM)" "win32"
127 PicoDrive.zip: $(TARGET)
128         $(RM) -rf .od_data
129         mkdir .od_data
130         cp -r platform/linux/skin .od_data
131         cp platform/game_def.cfg .od_data
132         $(STRIP) $< -o .od_data/PicoDrive.exe
133         cd .od_data && zip -9 -r ../$@ *
134 all: PicoDrive.zip
135 endif
136
137 ifeq "$(PLATFORM)" "opendingux"
138 .od_data: $(TARGET)
139         $(RM) -rf .od_data
140         mkdir .od_data
141         cp -r platform/opendingux/data/. .od_data
142         cp platform/game_def.cfg .od_data
143         $(STRIP) $< -o .od_data/picodrive
144 .PHONY: .od_data
145
146 ifneq (,$(filter %__DINGUX__, $(CFLAGS)))
147 # "legacy" dingux without opk support
148 PicoDrive-dge.zip: .od_data
149         rm -f .od_data/default.*.desktop
150         cd .od_data && zip -9 -r ../$@ *
151 all: PicoDrive-dge.zip
152 CFLAGS += -DSDL_SURFACE_SW # some legacy dinguces had bugs in HWSURFACE
153 else
154 ifneq (,$(filter %__MIYOO__, $(CFLAGS)))
155 PicoDrive-miyoo.ipk: .od_data
156         rm -f .od_data/default.*.desktop .od_data/PicoDrive.dge
157         gm2xpkg -i platform/miyoo/pkg.cfg
158         mv picodrive.ipk $@
159         @gm2xpkg -c platform/miyoo/pkg.cfg >/dev/null 2>&1
160 all: PicoDrive-miyoo.ipk
161 else
162 PicoDrive.opk: .od_data
163         rm -f .od_data/PicoDrive.dge
164         mksquashfs .od_data $@ -all-root -noappend -no-exports -no-xattrs
165 all: PicoDrive.opk
166 endif
167 endif
168
169 OBJS += platform/opendingux/inputmap.o
170 use_inputmap ?= 1
171
172 # OpenDingux is a generic platform, really.
173 PLATFORM := generic
174 endif
175 ifeq ("$(PLATFORM)",$(filter "$(PLATFORM)","rpi1" "rpi2"))
176 CFLAGS += -DHAVE_GLES -DRASPBERRY
177 CFLAGS += -I/opt/vc/include/ -I/opt/vc/include/interface/vcos/pthreads/ -I/opt/vc/include/interface/vmcs_host/linux/
178 LDFLAGS += -ldl -lbcm_host -L/opt/vc/lib
179 # Stupid renaming occured in latest raspbian...
180 ifneq (,$(wildcard /opt/vc/lib/libbrcmGLESv2.so))
181 LDFLAGS += -lbrcmEGL -lbrcmGLESv2
182 else
183 LDFLAGS += -lEGL -lGLESv2 # on raspi GLESv1_CM is included in GLESv2
184 endif
185 OBJS += platform/linux/emu.o platform/linux/blit.o # FIXME
186 OBJS += platform/common/plat_sdl.o platform/common/inputmap_kbd.o
187 OBJS += platform/libpicofe/plat_sdl.o platform/libpicofe/in_sdl.o
188 OBJS += platform/libpicofe/linux/plat.o
189 USE_FRONTEND = 1
190 endif
191 ifeq "$(PLATFORM)" "generic"
192 #ifeq (y,$(shell echo "\#include <GLES/gl.h>" | $(CC) -E -xc - >/dev/null 2>&1 && echo y))
193 ifeq "$(HAVE_GLES)" "1"
194 CFLAGS += -DHAVE_GLES
195 LDFLAGS += -lEGL -lGLESv1_CM
196 endif
197 CFLAGS += -DSDL_OVERLAY_2X -DSDL_BUFFER_3X -DSDL_REDRAW_EVT
198 OBJS += platform/linux/emu.o platform/linux/blit.o # FIXME
199 ifeq "$(use_inputmap)" "1"
200 OBJS += platform/common/plat_sdl.o platform/opendingux/inputmap.o
201 else
202 OBJS += platform/common/plat_sdl.o platform/common/inputmap_kbd.o
203 endif
204 OBJS += platform/libpicofe/plat_sdl.o platform/libpicofe/in_sdl.o
205 OBJS += platform/libpicofe/linux/plat.o
206 USE_FRONTEND = 1
207 endif
208 ifeq "$(PLATFORM)" "pandora"
209 platform/common/menu_pico.o: CFLAGS += -DPANDORA
210 platform/libpicofe/linux/plat.o: CFLAGS += -DPANDORA
211 OBJS += platform/pandora/plat.o
212 OBJS += platform/pandora/asm_utils.o
213 OBJS += platform/common/arm_utils.o 
214 OBJS += platform/libpicofe/linux/in_evdev.o
215 OBJS += platform/libpicofe/linux/fbdev.o 
216 OBJS += platform/libpicofe/linux/xenv.o
217 OBJS += platform/libpicofe/linux/plat.o
218 OBJS += platform/libpicofe/pandora/plat.o
219 USE_FRONTEND = 1
220 endif
221 ifeq "$(PLATFORM)" "gp2x"
222 OBJS += platform/common/arm_utils.o 
223 OBJS += platform/libpicofe/linux/in_evdev.o
224 OBJS += platform/libpicofe/linux/plat.o
225 OBJS += platform/libpicofe/gp2x/in_gp2x.o
226 OBJS += platform/libpicofe/gp2x/soc.o 
227 OBJS += platform/libpicofe/gp2x/soc_mmsp2.o 
228 OBJS += platform/libpicofe/gp2x/soc_pollux.o 
229 OBJS += platform/libpicofe/gp2x/plat.o 
230 OBJS += platform/libpicofe/gp2x/pollux_set.o 
231 OBJS += platform/gp2x/940ctl.o 
232 OBJS += platform/gp2x/plat.o 
233 OBJS += platform/gp2x/emu.o 
234 OBJS += platform/gp2x/vid_mmsp2.o 
235 OBJS += platform/gp2x/vid_pollux.o 
236 OBJS += platform/gp2x/warm.o 
237 USE_FRONTEND = 1
238 PLATFORM_MP3 ?= 1
239 endif
240 ifeq "$(PLATFORM)" "psp"
241 CFLAGS += -DUSE_BGR565 -G8 # -DLPRINTF_STDIO -DFW15
242 LDLIBS += -lpspgu -lpspge -lpsppower -lpspaudio -lpspdisplay -lpspaudiocodec
243 LDLIBS += -lpspctrl
244 platform/common/main.o: CFLAGS += -Dmain=pico_main
245 OBJS += platform/psp/plat.o
246 OBJS += platform/psp/emu.o
247 OBJS += platform/psp/in_psp.o
248 OBJS += platform/psp/psp.o
249 OBJS += platform/psp/asm_utils.o
250 OBJS += platform/psp/mp3.o
251 USE_FRONTEND = 1
252 endif
253 ifeq "$(PLATFORM)" "ps2"
254 CFLAGS += -DUSE_BGR555 # -DLOG_TO_FILE
255 LDLIBS += -lpatches -lgskit -ldmakit -lps2_drivers
256 OBJS += platform/ps2/plat.o
257 OBJS += platform/ps2/emu.o
258 OBJS += platform/ps2/in_ps2.o
259 USE_FRONTEND = 1
260 endif
261 ifeq "$(PLATFORM)" "win32"
262 CFLAGS += -DSDL_OVERLAY_2X -DSDL_BUFFER_3X -DSDL_REDRAW_EVT
263 OBJS += platform/win32/plat.o
264 OBJS += platform/linux/emu.o platform/linux/blit.o # FIXME
265 OBJS += platform/common/plat_sdl.o platform/common/inputmap_kbd.o
266 OBJS += platform/libpicofe/plat_sdl.o platform/libpicofe/in_sdl.o
267 USE_FRONTEND = 1
268 endif
269 ifeq "$(PLATFORM)" "libretro"
270 OBJS += platform/libretro/libretro.o
271 ifneq ($(STATIC_LINKING), 1)
272 CFLAGS += -DHAVE_ZLIB
273 OBJS += platform/libretro/libretro-common/formats/png/rpng.o
274 OBJS += platform/libretro/libretro-common/streams/trans_stream.o
275 OBJS += platform/libretro/libretro-common/streams/trans_stream_pipe.o
276 OBJS += platform/libretro/libretro-common/streams/trans_stream_zlib.o
277 OBJS += platform/libretro/libretro-common/file/file_path_io.o
278 OBJS += platform/libretro/libretro-common/file/file_path.o
279 OBJS += platform/libretro/libretro-common/vfs/vfs_implementation.o
280 OBJS += platform/libretro/libretro-common/time/rtime.o
281 OBJS += platform/libretro/libretro-common/string/stdstring.o
282 OBJS += platform/libretro/libretro-common/compat/compat_strcasestr.o
283 OBJS += platform/libretro/libretro-common/encodings/encoding_utf.o
284 OBJS += platform/libretro/libretro-common/compat/compat_strl.o
285 ifeq "$(USE_LIBRETRO_VFS)" "1"
286 OBJS += platform/libretro/libretro-common/compat/compat_posix_string.o
287 OBJS += platform/libretro/libretro-common/compat/fopen_utf8.o
288 OBJS += platform/libretro/libretro-common/streams/file_stream.o
289 OBJS += platform/libretro/libretro-common/streams/file_stream_transforms.o
290 endif
291 endif
292 ifeq "$(USE_LIBRETRO_VFS)" "1"
293 OBJS += platform/libretro/libretro-common/memmap/memmap.o
294 endif
295 endif
296
297 ifeq "$(USE_FRONTEND)" "1"
298
299 # common
300 OBJS += platform/common/main.o platform/common/emu.o platform/common/upscale.o \
301         platform/common/menu_pico.o platform/common/keyboard.o platform/common/config_file.o
302
303 # libpicofe
304 OBJS += platform/libpicofe/input.o platform/libpicofe/readpng.o \
305         platform/libpicofe/fonts.o
306 ifneq (,$(filter %HAVE_GLES, $(CFLAGS)))
307 OBJS += platform/libpicofe/gl.o platform/libpicofe/gl_platform.o
308 endif
309
310 # libpicofe - sound
311 OBJS += platform/libpicofe/sndout.o
312 ifneq ($(findstring oss,$(SOUND_DRIVERS)),)
313 platform/libpicofe/sndout.o: CFLAGS += -DHAVE_OSS
314 OBJS += platform/libpicofe/linux/sndout_oss.o
315 endif
316 ifneq ($(findstring alsa,$(SOUND_DRIVERS)),)
317 platform/libpicofe/sndout.o: CFLAGS += -DHAVE_ALSA
318 OBJS += platform/libpicofe/linux/sndout_alsa.o
319 endif
320 ifneq ($(findstring sdl,$(SOUND_DRIVERS)),)
321 platform/libpicofe/sndout.o: CFLAGS += -DHAVE_SDL
322 OBJS += platform/libpicofe/sndout_sdl.o
323 endif
324
325 ifeq "$(ARCH)" "arm"
326 OBJS += platform/libpicofe/arm_linux.o
327 endif
328
329 endif # USE_FRONTEND
330
331 ifneq "$(PLATFORM)" "psp"
332 OBJS += platform/common/mp3.o platform/common/mp3_sync.o
333 ifeq "$(PLATFORM_MP3)" "1"
334 OBJS += platform/common/mp3_helix.o
335 else ifeq "$(HAVE_LIBAVCODEC)" "1"
336 OBJS += platform/common/mp3_libavcodec.o
337 else
338 #OBJS += platform/common/mp3_minimp3.o
339 OBJS += platform/common/mp3_drmp3.o
340 endif
341 endif
342
343 ifeq (1,$(use_libchdr))
344 CFLAGS += -DUSE_LIBCHDR
345
346 # chdr
347 CHDR = pico/cd/libchdr
348 CHDR_OBJS += $(CHDR)/src/libchdr_chd.o $(CHDR)/src/libchdr_cdrom.o
349 CHDR_OBJS += $(CHDR)/src/libchdr_flac.o
350 CHDR_OBJS += $(CHDR)/src/libchdr_bitstream.o $(CHDR)/src/libchdr_huffman.o
351
352 LZMA = $(CHDR)/deps/lzma-24.05
353 LZMA_OBJS += $(LZMA)/src/CpuArch.o $(LZMA)/src/Alloc.o $(LZMA)/src/LzmaEnc.o
354 LZMA_OBJS += $(LZMA)/src/Sort.o $(LZMA)/src/LzmaDec.o $(LZMA)/src/LzFind.o
355 LZMA_OBJS += $(LZMA)/src/Delta.o
356 $(LZMA_OBJS): CFLAGS += -DZ7_ST -Wno-unused
357
358 ZSTD = $(CHDR)/deps/zstd-1.5.6/lib
359 ZSTD_OBJS += $(ZSTD)/common/entropy_common.o $(ZSTD)/common/error_private.o
360 ZSTD_OBJS += $(ZSTD)/common/fse_decompress.o $(ZSTD)/common/xxhash.o
361 ZSTD_OBJS += $(ZSTD)/common/zstd_common.o
362 ZSTD_OBJS += $(ZSTD)/decompress/huf_decompress.o
363 ifneq (,$(filter x86%, $(ARCH)))
364 ZSTD_OBJS += $(ZSTD)/decompress/huf_decompress_amd64.o
365 endif
366 ZSTD_OBJS += $(ZSTD)/decompress/zstd_ddict.o
367 ZSTD_OBJS += $(ZSTD)/decompress/zstd_decompress_block.o
368 ZSTD_OBJS += $(ZSTD)/decompress/zstd_decompress.o
369 $(ZSTD_OBJS) $(CHDR_OBJS): CFLAGS += -I$(ZSTD) -Wno-unused
370
371 OBJS += $(CHDR_OBJS) $(ZSTD_OBJS)
372 ifneq ($(STATIC_LINKING), 1)
373 OBJS += $(LZMA_OBJS)
374 endif
375 # ouf... prepend includes to overload headers available in the toolchain
376 CFLAGS := -I$(LZMA)/include -I$(CHDR)/include $(CFLAGS)
377 endif
378
379 ifeq "$(PLATFORM_ZLIB)" "1"
380 # zlib
381 OBJS += zlib/gzio.o zlib/inffast.o zlib/inflate.o zlib/inftrees.o zlib/trees.o \
382         zlib/deflate.o zlib/crc32.o zlib/adler32.o zlib/zutil.o zlib/compress.o zlib/uncompr.o
383 CFLAGS += -Izlib
384 endif
385 # unzip
386 OBJS += unzip/unzip.o
387
388
389 include platform/common/common.mak
390
391 OBJS += $(OBJS_COMMON)
392 CFLAGS += $(addprefix -D,$(DEFINES))
393
394 ifneq (,$(findstring sdl,$(OBJS)))
395 CFLAGS += -DUSE_SDL
396 endif
397
398 ifneq ($(findstring gcc,$(CC)),)
399 ifneq ($(findstring SunOS,$(shell uname -a)),SunOS)
400 ifneq ($(findstring clang,$(shell $(CC) -v 2>&1)),)
401 LDFLAGS += -Wl,-map,$(TARGET).map
402 else
403 LDFLAGS += -Wl,-Map=$(TARGET).map
404 endif
405 endif
406 endif
407
408 target_: $(TARGET)
409
410 clean:
411         $(RM) $(TARGET) $(OBJS) pico/pico_int_offs.h
412         $(MAKE) -C cpu/cyclone clean
413         $(MAKE) -C cpu/musashi clean
414         $(MAKE) -C tools clean
415         $(RM) -r .od_data
416
417 $(TARGET): $(OBJS)
418
419 ifeq ($(STATIC_LINKING_LINK), 1)
420         $(AR) rcs $@ $^
421 else
422         $(LD) $(LINKOUT)$@ $^ $(CFLAGS) $(LDFLAGS) $(LDLIBS)
423 endif
424
425 ifeq "$(PLATFORM)" "psp"
426 PSPSDK ?= $(shell psp-config --pspsdk-path)
427 TARGET = PicoDrive
428 PSP_EBOOT_TITLE = PicoDrive
429 PSP_EBOOT_ICON = platform/psp/data/icon.png
430 LIBS += -lpng -lm -lz -lpspgu -lpsppower -lpspaudio -lpsprtc -lpspaudiocodec
431 EXTRA_TARGETS = EBOOT.PBP
432 include $(PSPSDK)/lib/build.mak
433 # TODO image generation
434 endif
435
436 pprof: platform/linux/pprof.c
437         $(CC) $(CFLAGS) -O2 -ggdb -DPPROF -DPPROF_TOOL -I../../ -I. $^ -o $@ $(LDFLAGS) $(LDLIBS)
438
439 pico/pico_int_offs.h: tools/mkoffsets.sh
440         make -C tools/ XCC="$(CC)" XCFLAGS="$(CFLAGS) -UUSE_LIBRETRO_VFS" XPLATFORM="$(platform)"
441
442 %.o: %.c
443         $(CC) -c $(OBJOUT)$@ $< $(CFLAGS)
444
445 .s.o:
446         $(CC) $(CFLAGS) -c $< -o $@
447
448 .S.o:
449         $(CC) $(CFLAGS) -c $< -o $@
450
451 # special flags - perhaps fix this someday instead?
452 pico/draw.o: CFLAGS += -fno-strict-aliasing
453 pico/draw2.o: CFLAGS += -fno-strict-aliasing
454 pico/mode4.o: CFLAGS += -fno-strict-aliasing
455 pico/cd/memory.o: CFLAGS += -fno-strict-aliasing
456 pico/cd/cd_file.o: CFLAGS += -fno-strict-aliasing
457 pico/cd/pcm.o: CFLAGS += -fno-strict-aliasing
458 pico/cd/LC89510.o: CFLAGS += -fno-strict-aliasing
459 pico/cd/gfx_cd.o: CFLAGS += -fno-strict-aliasing
460 ifeq (1,$(use_sh2drc))
461 ifneq (,$(findstring -flto,$(CFLAGS)))
462 # if using the DRC, memory and sh2soc directly use the DRC register for SH2 SR
463 # to avoid saving and reloading it. However, this collides with the use of LTO.
464 pico/32x/memory.o: CFLAGS += -fno-lto
465 pico/32x/sh2soc.o: CFLAGS += -fno-lto
466 cpu/sh2/compiler.o: CFLAGS += -fno-lto
467 endif
468 ifneq (,$(filter mips64%, $(ARCH))$(filter %mips32r2, $(CFLAGS)))
469 CFLAGS += -DMIPS_USE_SYNCI # mips32r2 clear_cache uses SYNCI instead of a syscall
470 endif
471 endif
472
473 # fame needs ~2GB of RAM to compile on gcc 4.8
474 # on x86, this is reduced by ~300MB when debug info is off (but not on ARM)
475 # not using O3 and -fno-expensive-optimizations seems to also help, but you may
476 # want to remove this stuff for better performance if your compiler can handle it
477 ifeq "$(DEBUG)" "0"
478 ifeq (,$(findstring msvc,$(platform)))
479 cpu/fame/famec.o: CFLAGS += -g0 -O2 -fno-expensive-optimizations
480 else
481 cpu/fame/famec.o: CFLAGS += -Od
482 endif
483 endif
484
485 tools/make_carthw_c:
486         make -C tools make_carthw_c
487 pico/carthw_cfg.c: pico/carthw.cfg tools/make_carthw_c
488         tools/make_carthw_c $< $@
489
490 # preprocessed asm files most probably include the offsets file
491 $(filter %.S,$(SRCS_COMMON)): pico/pico_int_offs.h
492
493 # random deps - TODO remove this and compute dependcies automatically
494 pico/carthw/svp/compiler.o : cpu/drc/emit_arm.c
495 cpu/sh2/compiler.o : cpu/drc/emit_arm.c cpu/drc/emit_arm64.c cpu/drc/emit_ppc.c
496 cpu/sh2/compiler.o : cpu/drc/emit_x86.c cpu/drc/emit_mips.c cpu/drc/emit_riscv.c
497 cpu/sh2/mame/sh2pico.o : cpu/sh2/mame/sh2.c
498 pico/pico.o pico/cd/mcd.o pico/32x/32x.o : pico/pico_cmn.c
499 pico/memory.o pico/cd/memory.o pico/32x/memory.o : pico/memory.h
500 $(shell grep -rl pico_int.h pico) : pico/pico_int.h
501 # pico/cart.o : pico/carthw_cfg.c
502 cpu/fame/famec.o: cpu/fame/famec.c cpu/fame/famec_opcodes.h
503 platform/common/menu_pico.o: platform/libpicofe/menu.c