5 CFLAGS += -fprofile-generate
8 CFLAGS += -fprofile-use
16 ifeq "$(readline)" "1"
17 DEFINES += HAVE_READLINE
23 OBJS += platform/linux/pprof.o
28 OBJS += pico/state.o pico/cart.o pico/memory.o pico/pico.o pico/sek.o pico/z80if.o \
29 pico/videoport.o pico/draw2.o pico/draw.o pico/mode4.o \
30 pico/misc.o pico/eeprom.o pico/patch.o pico/debug.o
38 OBJS += pico/cd/pico.o pico/cd/memory.o pico/cd/sek.o pico/cd/LC89510.o \
39 pico/cd/cd_sys.o pico/cd/cd_file.o pico/cd/cue.o pico/cd/gfx_cd.o \
40 pico/cd/misc.o pico/cd/pcm.o pico/cd/buffering.o
43 OBJS += pico/32x/32x.o pico/32x/memory.o pico/32x/draw.o pico/32x/pwm.o
48 OBJS += pico/pico/pico.o pico/pico/memory.o pico/pico/xpcm.o
50 OBJS += pico/carthw/carthw.o
52 OBJS += pico/carthw/svp/svp.o pico/carthw/svp/memory.o \
53 pico/carthw/svp/ssp16.o
55 OBJS += pico/sound/sound.o
56 OBJS += pico/sound/sn76496.o pico/sound/ym2612.o
60 ifeq "$(use_musashi)" "1"
62 OBJS += cpu/musashi/m68kops.o cpu/musashi/m68kcpu.o
63 #OBJS += cpu/musashi/m68kdasm.o
65 ifeq "$(use_cyclone)" "1"
67 OBJS += pico/m68kif_cyclone.o cpu/Cyclone/proj/Cyclone.o cpu/Cyclone/tools/idle.o
69 ifeq "$(use_fame)" "1"
71 OBJS += cpu/fame/famec.o
75 ifeq "$(use_drz80)" "1"
77 OBJS += cpu/DrZ80/drz80.o
80 ifeq "$(use_cz80)" "1"
82 OBJS += cpu/cz80/cz80.o
90 ifeq "$(use_sh2drc)" "1"
92 OBJS += cpu/sh2/compiler.o
94 DEFINES += DRC_DEBUG=$(drc_debug)
95 OBJS += cpu/sh2/mame/sh2dasm.o
96 OBJS += platform/linux/host_dasm.o
97 LDFLAGS += -lbfd -lopcodes -liberty
99 ifeq "$(drc_debug_interp)" "1"
100 DEFINES += DRC_DEBUG_INTERP
105 ifeq "$(use_sh2mame)" "1"
106 OBJS += cpu/sh2/mame/sh2pico.o
111 DIRS += platform platform/common pico pico/cd pico/pico pico/32x pico/sound pico/carthw/svp \
112 cpu cpu/musashi cpu/cz80 cpu/fame cpu/sh2/mame cpu/drc
118 $(CC) $(CFLAGS) -c $< -o $@
121 $(CC) $(CFLAGS) -c $< -o $@
124 find ../.. -name '*.gcno' -delete
125 find ../.. -name '*.gcda' -delete
130 ../../tools/textfilter: ../../tools/textfilter.c
131 make -C ../../tools/ textfilter
135 pico/carthw/svp/compiler.o : ../../cpu/drc/emit_$(ARCH).c
136 cpu/sh2/compiler.o : ../../cpu/drc/emit_$(ARCH).c
137 cpu/sh2/mame/sh2pico.o : ../../cpu/sh2/mame/sh2.c
138 pico/pico.o pico/cd/pico.o : ../../pico/pico_cmn.c ../../pico/pico_int.h
139 pico/memory.o pico/cd/memory.o : ../../pico/pico_int.h ../../pico/memory.h
141 ../../cpu/musashi/m68kops.c :
142 @make -C ../../cpu/musashi
144 ../../cpu/mz80/mz80.asm :
145 @make -C ../../cpu/mz80/
147 cpu/fame/famec.o : ../../cpu/fame/famec.c ../../cpu/fame/famec_opcodes.h
149 $(CC) $(CFLAGS) -Wno-unused -c $< -o $@
151 ../../cpu/Cyclone/proj/Cyclone.s:
152 @echo building Cyclone...
153 @make -C ../../cpu/Cyclone/proj CONFIG_FILE=config_pico.h