1LIBRETRO_COMM_DIR := $(CORE_DIR)/libretro-common
2
3INCFLAGS := \
4	-I. \
5	-I$(CORE_DIR) \
6	-I$(CORE_DIR)/includes \
7	-I$(CORE_DIR)/cpu/m68000 \
8	-I$(CORE_DIR)/mame2003 \
9	-I$(LIBRETRO_COMM_DIR)/include \
10 	-I$(CORE_DIR)/libretro-deps/libFLAC/include \
11 	-I$(CORE_DIR)/lib/mame-chd \
12	-I$(CORE_DIR)/lib/zlib
13
14ifneq (,$(findstring msvc200,$(platform)))
15INCFLAGS += -I$(LIBRETRO_COMM_DIR)/include/compat/msvc
16endif
17
18ifeq ($(system_platform), win)
19INCFLAGS += -DHAVE_FSEEKO
20endif
21
22ifneq (,$(findstring msvc200,$(platform)))
23INCFLAGS += -I$(LIBRETRO_COMM_DIR)/include/compat/msvc
24endif
25
26COREDEFINES += -D__LIBRETRO__ -DPI=3.1415927 -DM_PI=3.1415927
27
28SOURCES_C := \
29	$(CORE_DIR)/mame2003/mame2003.c \
30	$(CORE_DIR)/mame2003/video.c
31
32SOURCES_C += \
33	$(CORE_DIR)/artwork.c \
34	$(CORE_DIR)/bootstrap.c \
35	$(CORE_DIR)/cheat.c \
36	$(CORE_DIR)/common.c \
37	$(CORE_DIR)/config.c \
38	$(CORE_DIR)/controls.c \
39	$(CORE_DIR)/cpuexec.c \
40	$(CORE_DIR)/cpuint.c \
41	$(CORE_DIR)/cpuintrf.c \
42	$(CORE_DIR)/datafile.c \
43	$(CORE_DIR)/drawgfx.c \
44	$(CORE_DIR)/driver.c \
45	$(CORE_DIR)/fileio.c \
46	$(CORE_DIR)/harddisk.c \
47	$(CORE_DIR)/hash.c \
48	$(CORE_DIR)/hiscore.c \
49	$(CORE_DIR)/info.c \
50	$(CORE_DIR)/inptport.c \
51	$(CORE_DIR)/input.c \
52	$(CORE_DIR)/mame-memory.c \
53	$(CORE_DIR)/mame.c \
54	$(CORE_DIR)/mamedbg.c \
55	$(CORE_DIR)/mame_unzip.c \
56	$(CORE_DIR)/palette.c \
57	$(CORE_DIR)/png.c \
58	$(CORE_DIR)/profiler.c \
59	$(CORE_DIR)/sndintrf.c \
60	$(CORE_DIR)/state.c \
61	$(CORE_DIR)/tilemap.c \
62	$(CORE_DIR)/timer.c \
63	$(CORE_DIR)/ui_text.c \
64	$(CORE_DIR)/usrintrf.c \
65	$(CORE_DIR)/window.c \
66	$(CORE_DIR)/x86drc.c
67
68SOURCES_C += \
69	$(CORE_DIR)/machine/6522via.c \
70	$(CORE_DIR)/machine/6532riot.c \
71	$(CORE_DIR)/machine/6821pia.c \
72	$(CORE_DIR)/machine/74123.c \
73	$(CORE_DIR)/machine/74148.c \
74	$(CORE_DIR)/machine/74153.c \
75	$(CORE_DIR)/machine/7474.c \
76	$(CORE_DIR)/machine/8255ppi.c \
77	$(CORE_DIR)/machine/eeprom.c \
78	$(CORE_DIR)/machine/idectrl.c \
79	$(CORE_DIR)/machine/mathbox.c \
80	$(CORE_DIR)/machine/mb87078.c \
81	$(CORE_DIR)/machine/random.c \
82	$(CORE_DIR)/machine/ticket.c \
83	$(CORE_DIR)/machine/tmp68301.c \
84	$(CORE_DIR)/machine/z80fmly.c \
85	$(CORE_DIR)/sound/filter.c \
86	$(CORE_DIR)/sound/mixer.c \
87	$(CORE_DIR)/sound/streams.c \
88	$(CORE_DIR)/sound/votrax.c \
89	$(CORE_DIR)/sound/wavwrite.c \
90	$(CORE_DIR)/vidhrdw/avgdvg_vidhrdw.c \
91	$(CORE_DIR)/vidhrdw/generic.c \
92	$(CORE_DIR)/vidhrdw/matrix3d.c \
93	$(CORE_DIR)/vidhrdw/poly.c \
94	$(CORE_DIR)/vidhrdw/tlc34076.c \
95	$(CORE_DIR)/vidhrdw/vector.c
96
97# the core object files (without target specific objects;
98# those are added in the target.mak files)
99
100# uncomment the following lines to include a CPU core
101CPUS+=Z80@
102CPUS+=Z180@
103CPUS+=8080@
104CPUS+=8085A@
105CPUS+=M6502@
106CPUS+=M65C02@
107#CPUS+=M65SC02@
108#CPUS+=M65CE02@
109#CPUS+=M6509@
110CPUS+=M6510@
111#CPUS+=M6510T@
112#CPUS+=M7501@
113#CPUS+=M8502@
114CPUS+=N2A03@
115CPUS+=DECO16@
116#CPUS+=M4510@
117CPUS+=H6280@
118CPUS+=I86@
119#CPUS+=I88@
120CPUS+=I186@
121#CPUS+=I188@
122#CPUS+=I286@
123CPUS+=V20@
124CPUS+=V30@
125CPUS+=V33@
126CPUS+=V60@
127CPUS+=V70@
128CPUS+=I8035@
129CPUS+=I8039@
130CPUS+=I8048@
131CPUS+=N7751@
132CPUS+=I8X41@
133CPUS+=M6800@
134CPUS+=M6801@
135CPUS+=M6802@
136CPUS+=M6803@
137CPUS+=M6808@
138CPUS+=HD63701@
139CPUS+=NSC8105@
140CPUS+=M6805@
141CPUS+=M68705@
142CPUS+=HD63705@
143CPUS+=HD6309@
144CPUS+=M6809@
145CPUS+=KONAMI@
146CPUS+=M68000@
147CPUS+=M68010@
148CPUS+=M68EC020@
149CPUS+=M68020@
150CPUS+=T11@
151CPUS+=S2650@
152CPUS+=TMS34010@
153CPUS+=TMS34020@
154#CPUS+=TMS9900@
155#CPUS+=TMS9940@
156CPUS+=TMS9980@
157#CPUS+=TMS9985@
158#CPUS+=TMS9989@
159CPUS+=TMS9995@
160#CPUS+=TMS99105A@
161#CPUS+=TMS99110A@
162CPUS+=Z8000@
163CPUS+=TMS32010@
164CPUS+=TMS32025@
165CPUS+=TMS32031@
166CPUS+=CCPU@
167CPUS+=ADSP2100@
168CPUS+=ADSP2101@
169CPUS+=ADSP2104@
170CPUS+=ADSP2105@
171CPUS+=ADSP2115@
172CPUS+=PSXCPU@
173CPUS+=ASAP@
174CPUS+=UPD7810@
175CPUS+=UPD7807@
176CPUS+=ARM@
177CPUS+=JAGUAR@
178CPUS+=R3000@
179CPUS+=R4600@
180CPUS+=R5000@
181CPUS+=SH2@
182CPUS+=DSP32C@
183#CPUS+=PIC16C54@
184CPUS+=PIC16C55@
185#CPUS+=PIC16C56@
186CPUS+=PIC16C57@
187#CPUS+=PIC16C58@
188CPUS+=G65816@
189CPUS+=SPC700@
190CPUS+=E132XS@
191
192# uncomment the following lines to include a sound core
193SOUNDS+=CUSTOM@
194SOUNDS+=SAMPLES@
195SOUNDS+=DAC@
196SOUNDS+=DISCRETE@
197SOUNDS+=AY8910@
198SOUNDS+=YM2203@
199# enable only one of the following two
200#SOUNDS+=YM2151@
201SOUNDS+=YM2151_ALT@
202SOUNDS+=YM2608@
203SOUNDS+=YM2610@
204SOUNDS+=YM2610B@
205SOUNDS+=YM2612@
206SOUNDS+=YM3438@
207SOUNDS+=YM2413@
208SOUNDS+=YM3812@
209SOUNDS+=YMZ280B@
210SOUNDS+=YM3526@
211SOUNDS+=Y8950@
212SOUNDS+=SN76477@
213SOUNDS+=SN76496@
214SOUNDS+=POKEY@
215SOUNDS+=TIA@
216SOUNDS+=NES@
217SOUNDS+=ASTROCADE@
218SOUNDS+=NAMCO@
219SOUNDS+=NAMCONA@
220SOUNDS+=TMS36XX@
221SOUNDS+=TMS5110@
222SOUNDS+=TMS5220@
223SOUNDS+=VLM5030@
224SOUNDS+=ADPCM@
225SOUNDS+=OKIM6295@
226SOUNDS+=MSM5205@
227SOUNDS+=MSM5232@
228SOUNDS+=UPD7759@
229SOUNDS+=HC55516@
230SOUNDS+=K005289@
231SOUNDS+=K007232@
232SOUNDS+=K051649@
233SOUNDS+=K053260@
234SOUNDS+=K054539@
235SOUNDS+=SEGAPCM@
236SOUNDS+=RF5C68@
237SOUNDS+=CEM3394@
238SOUNDS+=C140@
239SOUNDS+=QSOUND@
240SOUNDS+=SAA1099@
241SOUNDS+=IREMGA20@
242SOUNDS+=ES5505@
243SOUNDS+=ES5506@
244SOUNDS+=BSMT2000@
245SOUNDS+=YMF262@
246SOUNDS+=YMF278B@
247SOUNDS+=GAELCO_CG1V@
248SOUNDS+=GAELCO_GAE1@
249SOUNDS+=X1_010@
250SOUNDS+=MULTIPCM@
251SOUNDS+=C6280@
252SOUNDS+=SP0250@
253SOUNDS+=SCSP@
254SOUNDS+=YMF271@
255SOUNDS+=PSXSPU@
256
257SOURCES_C += $(CORE_DIR)/drivers/pacman.c \
258				 $(CORE_DIR)/machine/mspacman.c \
259				 $(CORE_DIR)/machine/pacplus.c \
260				 $(CORE_DIR)/machine/jumpshot.c \
261				 $(CORE_DIR)/machine/theglobp.c \
262				 $(CORE_DIR)/machine/acitya.c \
263				 $(CORE_DIR)/drivers/jrpacman.c \
264				 $(CORE_DIR)/vidhrdw/jrpacman_vidhrdw.c \
265				 $(CORE_DIR)/vidhrdw/pengo_vidhrdw.c \
266				 $(CORE_DIR)/drivers/pengo.c \
267				 $(CORE_DIR)/drivers/epos.c \
268				 $(CORE_DIR)/vidhrdw/epos_vidhrdw.c \
269				 $(CORE_DIR)/vidhrdw/cclimber_vidhrdw.c \
270				 $(CORE_DIR)/sndhrdw/cclimber_sndhrdw.c \
271				 $(CORE_DIR)/drivers/cclimber.c \
272				 $(CORE_DIR)/drivers/yamato.c \
273				 $(CORE_DIR)/vidhrdw/gomoku_vidhrdw.c \
274				 $(CORE_DIR)/sndhrdw/gomoku_sndhrdw.c \
275				 $(CORE_DIR)/drivers/gomoku.c \
276				 $(CORE_DIR)/vidhrdw/wiping_vidhrdw.c \
277				 $(CORE_DIR)/sndhrdw/wiping_sndhrdw.c \
278				 $(CORE_DIR)/drivers/wiping.c \
279				 $(CORE_DIR)/vidhrdw/seicross_vidhrdw.c \
280				 $(CORE_DIR)/drivers/seicross.c \
281				 $(CORE_DIR)/vidhrdw/clshroad_vidhrdw.c \
282				 $(CORE_DIR)/drivers/clshroad.c \
283				 $(CORE_DIR)/vidhrdw/tubep_vidhrdw.c \
284				 $(CORE_DIR)/drivers/tubep.c \
285				 $(CORE_DIR)/vidhrdw/magmax_vidhrdw.c $(CORE_DIR)/drivers/magmax.c \
286				 $(CORE_DIR)/vidhrdw/cop01_vidhrdw.c $(CORE_DIR)/drivers/cop01.c \
287				 $(CORE_DIR)/vidhrdw/terracre_vidhrdw.c $(CORE_DIR)/drivers/terracre.c \
288				 $(CORE_DIR)/vidhrdw/galivan_vidhrdw.c $(CORE_DIR)/drivers/galivan.c \
289				 $(CORE_DIR)/vidhrdw/armedf_vidhrdw.c $(CORE_DIR)/drivers/armedf.c \
290				 $(CORE_DIR)/machine/nb1413m3.c \
291				 $(CORE_DIR)/vidhrdw/hyhoo_vidhrdw.c $(CORE_DIR)/drivers/hyhoo.c \
292				 $(CORE_DIR)/vidhrdw/pastelgl_vidhrdw.c $(CORE_DIR)/drivers/pastelgl.c \
293				 $(CORE_DIR)/vidhrdw/nbmj8688_vidhrdw.c $(CORE_DIR)/drivers/nbmj8688.c \
294				 $(CORE_DIR)/vidhrdw/nbmj8891_vidhrdw.c $(CORE_DIR)/drivers/nbmj8891.c \
295				 $(CORE_DIR)/vidhrdw/nbmj8991_vidhrdw.c $(CORE_DIR)/drivers/nbmj8991.c \
296				 $(CORE_DIR)/vidhrdw/nbmj9195_vidhrdw.c $(CORE_DIR)/drivers/nbmj9195.c \
297				 $(CORE_DIR)/vidhrdw/niyanpai_vidhrdw.c $(CORE_DIR)/drivers/niyanpai.c $(CORE_DIR)/machine/m68kfmly.c \
298				 $(CORE_DIR)/drivers/safarir.c \
299				 $(CORE_DIR)/vidhrdw/phoenix_vidhrdw.c $(CORE_DIR)/sndhrdw/phoenix_sndhrdw.c $(CORE_DIR)/drivers/phoenix.c \
300				 $(CORE_DIR)/sndhrdw/pleiads.c \
301				 $(CORE_DIR)/vidhrdw/naughtyb_vidhrdw.c $(CORE_DIR)/drivers/naughtyb.c \
302				 $(CORE_DIR)/machine/geebee_machine.c $(CORE_DIR)/vidhrdw/geebee_vidhrdw.c $(CORE_DIR)/sndhrdw/geebee_sndhrdw.c $(CORE_DIR)/drivers/geebee.c \
303				 $(CORE_DIR)/vidhrdw/warpwarp_vidhrdw.c $(CORE_DIR)/sndhrdw/warpwarp_sndhrdw.c $(CORE_DIR)/drivers/warpwarp.c \
304				 $(CORE_DIR)/vidhrdw/tankbatt_vidhrdw.c $(CORE_DIR)/drivers/tankbatt.c \
305				 $(CORE_DIR)/vidhrdw/galaxian_vidhrdw.c $(CORE_DIR)/sndhrdw/galaxian_sndhrdw.c $(CORE_DIR)/drivers/galaxian.c \
306				 $(CORE_DIR)/vidhrdw/rallyx_vidhrdw.c $(CORE_DIR)/drivers/rallyx.c \
307				 $(CORE_DIR)/drivers/locomotn.c \
308				 $(CORE_DIR)/machine/bosco_machine.c $(CORE_DIR)/sndhrdw/bosco_sndhrdw.c $(CORE_DIR)/vidhrdw/bosco_vidhrdw.c $(CORE_DIR)/drivers/bosco.c \
309				 $(CORE_DIR)/machine/galaga_machine.c $(CORE_DIR)/vidhrdw/galaga_vidhrdw.c $(CORE_DIR)/drivers/galaga.c \
310				 $(CORE_DIR)/machine/digdug_machine.c $(CORE_DIR)/vidhrdw/digdug_vidhrdw.c $(CORE_DIR)/drivers/digdug.c \
311				 $(CORE_DIR)/vidhrdw/xevious_vidhrdw.c $(CORE_DIR)/machine/xevious_machine.c $(CORE_DIR)/drivers/xevious.c \
312				 $(CORE_DIR)/machine/superpac_machine.c $(CORE_DIR)/vidhrdw/superpac_vidhrdw.c $(CORE_DIR)/drivers/superpac.c \
313				 $(CORE_DIR)/machine/phozon_machine.c $(CORE_DIR)/vidhrdw/phozon_vidhrdw.c $(CORE_DIR)/drivers/phozon.c \
314				 $(CORE_DIR)/machine/mappy_machine.c $(CORE_DIR)/vidhrdw/mappy_vidhrdw.c $(CORE_DIR)/drivers/mappy.c \
315				 $(CORE_DIR)/machine/grobda_machine.c $(CORE_DIR)/vidhrdw/grobda_vidhrdw.c $(CORE_DIR)/drivers/grobda.c \
316				 $(CORE_DIR)/machine/gaplus_machine.c $(CORE_DIR)/vidhrdw/gaplus_vidhrdw.c $(CORE_DIR)/drivers/gaplus.c \
317				 $(CORE_DIR)/machine/toypop_machine.c $(CORE_DIR)/vidhrdw/toypop_vidhrdw.c $(CORE_DIR)/drivers/toypop.c \
318				 $(CORE_DIR)/machine/polepos_machine.c $(CORE_DIR)/vidhrdw/polepos_vidhrdw.c $(CORE_DIR)/sndhrdw/polepos_sndhrdw.c $(CORE_DIR)/drivers/polepos.c \
319				 $(CORE_DIR)/vidhrdw/pacland_vidhrdw.c $(CORE_DIR)/drivers/pacland.c \
320				 $(CORE_DIR)/vidhrdw/skykid_vidhrdw.c $(CORE_DIR)/drivers/skykid.c \
321				 $(CORE_DIR)/vidhrdw/baraduke_vidhrdw.c $(CORE_DIR)/drivers/baraduke.c \
322				 $(CORE_DIR)/vidhrdw/namcos86_vidhrdw.c $(CORE_DIR)/drivers/namcos86.c \
323				 $(CORE_DIR)/vidhrdw/tceptor_vidhrdw.c $(CORE_DIR)/drivers/tceptor.c \
324				 $(CORE_DIR)/machine/namcos1_machine.c $(CORE_DIR)/vidhrdw/namcos1_vidhrdw.c $(CORE_DIR)/drivers/namcos1.c \
325				 $(CORE_DIR)/machine/namcos2_machine.c $(CORE_DIR)/vidhrdw/namcos2_vidhrdw.c $(CORE_DIR)/drivers/namcos2.c \
326				 $(CORE_DIR)/drivers/namcoic.c \
327				 $(CORE_DIR)/vidhrdw/namcona1_vidhrdw.c $(CORE_DIR)/drivers/namcona1.c \
328				 $(CORE_DIR)/vidhrdw/namconb1_vidhrdw.c $(CORE_DIR)/drivers/namconb1.c \
329				 $(CORE_DIR)/machine/namcond1_machine.c $(CORE_DIR)/vidhrdw/ygv608.c $(CORE_DIR)/drivers/namcond1.c \
330				 $(CORE_DIR)/vidhrdw/psx_vidhrdw.c $(CORE_DIR)/machine/psx_machine.c \
331				 $(CORE_DIR)/drivers/namcos10.c \
332				 $(CORE_DIR)/drivers/namcos11.c \
333				 $(CORE_DIR)/drivers/namcos12.c \
334				 $(CORE_DIR)/vidhrdw/namcos3d.c \
335				 $(CORE_DIR)/vidhrdw/namcos21_vidhrdw.c $(CORE_DIR)/drivers/namcos21.c \
336				 $(CORE_DIR)/vidhrdw/namcos22_vidhrdw.c $(CORE_DIR)/drivers/namcos22.c \
337				 $(CORE_DIR)/vidhrdw/cosmic_vidhrdw.c $(CORE_DIR)/drivers/cosmic.c \
338				 $(CORE_DIR)/vidhrdw/redclash_vidhrdw.c $(CORE_DIR)/drivers/redclash.c \
339				 $(CORE_DIR)/vidhrdw/ladybug_vidhrdw.c $(CORE_DIR)/drivers/ladybug.c \
340				 $(CORE_DIR)/vidhrdw/cheekyms_vidhrdw.c $(CORE_DIR)/drivers/cheekyms.c \
341				 $(CORE_DIR)/vidhrdw/mrdo_vidhrdw.c $(CORE_DIR)/drivers/mrdo.c \
342				 $(CORE_DIR)/machine/docastle_machine.c $(CORE_DIR)/vidhrdw/docastle_vidhrdw.c $(CORE_DIR)/drivers/docastle.c \
343				 $(CORE_DIR)/vidhrdw/dkong_vidhrdw.c $(CORE_DIR)/sndhrdw/dkong_sndhrdw.c $(CORE_DIR)/drivers/dkong.c \
344				 $(CORE_DIR)/machine/strtheat.c \
345				 $(CORE_DIR)/vidhrdw/mario_vidhrdw.c $(CORE_DIR)/sndhrdw/mario_sndhrdw.c $(CORE_DIR)/drivers/mario.c \
346				 $(CORE_DIR)/vidhrdw/popeye_vidhrdw.c $(CORE_DIR)/drivers/popeye.c \
347				 $(CORE_DIR)/vidhrdw/punchout_vidhrdw.c $(CORE_DIR)/drivers/punchout.c \
348				 $(CORE_DIR)/machine/rp5h01.c $(CORE_DIR)/vidhrdw/ppu2c03b.c \
349				 $(CORE_DIR)/machine/playch10_machine.c $(CORE_DIR)/vidhrdw/playch10_vidhrdw.c $(CORE_DIR)/drivers/playch10.c \
350				 $(CORE_DIR)/machine/vsnes_machine.c $(CORE_DIR)/vidhrdw/vsnes_vidhrdw.c $(CORE_DIR)/drivers/vsnes.c \
351				 $(CORE_DIR)/machine/snes_machine.c $(CORE_DIR)/vidhrdw/snes_vidhrdw.c \
352				 $(CORE_DIR)/sndhrdw/snes_sndhrdw.c \
353				 $(CORE_DIR)/drivers/nss.c \
354				 $(CORE_DIR)/machine/8080bw.c \
355				 $(CORE_DIR)/vidhrdw/8080bw_vidhrdw.c $(CORE_DIR)/sndhrdw/8080bw_sndhrdw.c $(CORE_DIR)/drivers/8080bw_drivers.c \
356				 $(CORE_DIR)/vidhrdw/sspeedr_vidhrdw.c $(CORE_DIR)/drivers/sspeedr.c \
357				 $(CORE_DIR)/vidhrdw/m79amb_vidhrdw.c $(CORE_DIR)/drivers/m79amb.c $(CORE_DIR)/drivers/rotaryf.c \
358				 $(CORE_DIR)/drivers/lazercmd.c $(CORE_DIR)/vidhrdw/lazercmd_vidhrdw.c \
359				 $(CORE_DIR)/drivers/meadows.c $(CORE_DIR)/sndhrdw/meadows_sndhrdw.c $(CORE_DIR)/vidhrdw/meadows_vidhrdw.c \
360				 $(CORE_DIR)/drivers/cvs.c $(CORE_DIR)/vidhrdw/cvs_vidhrdw.c \
361				 $(CORE_DIR)/vidhrdw/s2636_vidhrdw.c \
362				 $(CORE_DIR)/machine/astrocde_machine.c $(CORE_DIR)/vidhrdw/astrocde_vidhrdw.c $(CORE_DIR)/drivers/astrocde.c $(CORE_DIR)/sndhrdw/astrocde_sndhrdw.c \
363				 $(CORE_DIR)/sndhrdw/gorf.c \
364				 $(CORE_DIR)/machine/mcr.c $(CORE_DIR)/sndhrdw/mcr_sndhrdw.c \
365				 $(CORE_DIR)/vidhrdw/mcr12_vidhrdw.c $(CORE_DIR)/vidhrdw/mcr3_vidhrdw.c \
366				 $(CORE_DIR)/drivers/mcr1.c $(CORE_DIR)/drivers/mcr2.c $(CORE_DIR)/drivers/mcr3.c \
367				 $(CORE_DIR)/vidhrdw/mcr68_vidhrdw.c $(CORE_DIR)/drivers/mcr68.c \
368				 $(CORE_DIR)/vidhrdw/balsente_vidhrdw.c $(CORE_DIR)/machine/balsente_machine.c $(CORE_DIR)/drivers/balsente.c \
369				 $(CORE_DIR)/vidhrdw/gridlee_vidhrdw.c $(CORE_DIR)/sndhrdw/gridlee_sndhrdw.c $(CORE_DIR)/drivers/gridlee.c \
370				 $(CORE_DIR)/drivers/seattle.c $(CORE_DIR)/vidhrdw/voodoo_vidhrdw.c \
371				 $(CORE_DIR)/vidhrdw/exterm_vidhrdw.c $(CORE_DIR)/drivers/exterm.c \
372				 $(CORE_DIR)/machine/midwayic.c $(CORE_DIR)/sndhrdw/dcs.c \
373				 $(CORE_DIR)/machine/midyunit_machine.c $(CORE_DIR)/vidhrdw/midyunit_vidhrdw.c $(CORE_DIR)/drivers/midyunit.c \
374				 $(CORE_DIR)/drivers/midxunit.c \
375				 $(CORE_DIR)/machine/midwunit_machine.c $(CORE_DIR)/drivers/midwunit.c \
376				 $(CORE_DIR)/vidhrdw/midvunit_vidhrdw.c $(CORE_DIR)/drivers/midvunit.c \
377				 $(CORE_DIR)/machine/midtunit_machine.c $(CORE_DIR)/vidhrdw/midtunit_vidhrdw.c $(CORE_DIR)/drivers/midtunit.c \
378				 $(CORE_DIR)/vidhrdw/skychut_vidhrdw.c $(CORE_DIR)/drivers/skychut.c \
379				 $(CORE_DIR)/drivers/olibochu.c \
380				 $(CORE_DIR)/sndhrdw/irem.c \
381				 $(CORE_DIR)/vidhrdw/mpatrol_vidhrdw.c $(CORE_DIR)/drivers/mpatrol.c \
382				 $(CORE_DIR)/vidhrdw/troangel_vidhrdw.c $(CORE_DIR)/drivers/troangel.c \
383				 $(CORE_DIR)/vidhrdw/yard_vidhrdw.c $(CORE_DIR)/drivers/yard.c \
384				 $(CORE_DIR)/vidhrdw/travrusa_vidhrdw.c $(CORE_DIR)/drivers/travrusa.c \
385				 $(CORE_DIR)/drivers/wilytowr.c \
386				 $(CORE_DIR)/vidhrdw/m62_vidhrdw.c $(CORE_DIR)/drivers/m62.c \
387				 $(CORE_DIR)/vidhrdw/vigilant_vidhrdw.c $(CORE_DIR)/drivers/vigilant.c \
388				 $(CORE_DIR)/vidhrdw/m72_vidhrdw.c $(CORE_DIR)/sndhrdw/m72_sndhrdw.c $(CORE_DIR)/drivers/m72.c \
389				 $(CORE_DIR)/vidhrdw/shisen_vidhrdw.c $(CORE_DIR)/drivers/shisen.c \
390				 $(CORE_DIR)/machine/irem_cpu.c \
391				 $(CORE_DIR)/vidhrdw/m90_vidhrdw.c $(CORE_DIR)/drivers/m90.c \
392				 $(CORE_DIR)/vidhrdw/m92_vidhrdw.c $(CORE_DIR)/drivers/m92.c \
393				 $(CORE_DIR)/vidhrdw/m107_vidhrdw.c $(CORE_DIR)/drivers/m107.c \
394				 $(CORE_DIR)/vidhrdw/gottlieb_vidhrdw.c $(CORE_DIR)/sndhrdw/gottlieb_sndhrdw.c $(CORE_DIR)/drivers/gottlieb.c \
395				 $(CORE_DIR)/drivers/sbowling.c \
396				 $(CORE_DIR)/machine/chaknpop_machine.c $(CORE_DIR)/vidhrdw/chaknpop_vidhrdw.c $(CORE_DIR)/drivers/chaknpop.c \
397				 $(CORE_DIR)/machine/qix_machine.c $(CORE_DIR)/vidhrdw/qix_vidhrdw.c $(CORE_DIR)/drivers/qix.c \
398				 $(CORE_DIR)/machine/taitosj_machine.c $(CORE_DIR)/vidhrdw/taitosj_vidhrdw.c $(CORE_DIR)/drivers/taitosj.c \
399				 $(CORE_DIR)/machine/grchamp_machine.c $(CORE_DIR)/vidhrdw/grchamp_vidhrdw.c $(CORE_DIR)/drivers/grchamp.c \
400				 $(CORE_DIR)/machine/pitnrun_machine.c $(CORE_DIR)/vidhrdw/pitnrun_vidhrdw.c $(CORE_DIR)/drivers/pitnrun.c \
401				 $(CORE_DIR)/drivers/marinedt.c \
402				 $(CORE_DIR)/vidhrdw/crbaloon_vidhrdw.c $(CORE_DIR)/drivers/crbaloon.c \
403				 $(CORE_DIR)/vidhrdw/bking2_vidhrdw.c $(CORE_DIR)/drivers/bking2.c \
404				 $(CORE_DIR)/vidhrdw/gsword_vidhrdw.c $(CORE_DIR)/drivers/gsword.c $(CORE_DIR)/machine/tait8741.c \
405				 $(CORE_DIR)/vidhrdw/msisaac_vidhrdw.c $(CORE_DIR)/drivers/msisaac.c \
406				 $(CORE_DIR)/machine/retofinv_machine.c $(CORE_DIR)/vidhrdw/retofinv_vidhrdw.c $(CORE_DIR)/drivers/retofinv.c \
407				 $(CORE_DIR)/vidhrdw/rollrace_vidhrdw.c $(CORE_DIR)/drivers/rollrace.c \
408				 $(CORE_DIR)/vidhrdw/40love_vidhrdw.c $(CORE_DIR)/drivers/40love.c \
409				 $(CORE_DIR)/vidhrdw/ssrj_vidhrdw.c $(CORE_DIR)/drivers/ssrj.c \
410				 $(CORE_DIR)/machine/bigevglf_machine.c $(CORE_DIR)/vidhrdw/bigevglf_vidhrdw.c $(CORE_DIR)/drivers/bigevglf.c \
411				 $(CORE_DIR)/vidhrdw/tsamurai_vidhrdw.c $(CORE_DIR)/drivers/tsamurai.c \
412				 $(CORE_DIR)/machine/flstory_machine.c $(CORE_DIR)/vidhrdw/flstory_vidhrdw.c $(CORE_DIR)/drivers/flstory.c \
413				 $(CORE_DIR)/vidhrdw/gladiatr_vidhrdw.c $(CORE_DIR)/drivers/gladiatr.c \
414				 $(CORE_DIR)/machine/nycaptor_machine.c $(CORE_DIR)/vidhrdw/nycaptor_vidhrdw.c $(CORE_DIR)/drivers/nycaptor.c \
415				 $(CORE_DIR)/drivers/halleys.c \
416				 $(CORE_DIR)/machine/lsasquad_machine.c $(CORE_DIR)/vidhrdw/lsasquad_vidhrdw.c $(CORE_DIR)/drivers/lsasquad.c \
417				 $(CORE_DIR)/machine/bublbobl_machine.c $(CORE_DIR)/vidhrdw/bublbobl_vidhrdw.c $(CORE_DIR)/drivers/bublbobl.c \
418				 $(CORE_DIR)/drivers/missb2.c \
419				 $(CORE_DIR)/machine/mexico86_machine.c $(CORE_DIR)/vidhrdw/mexico86_vidhrdw.c $(CORE_DIR)/drivers/mexico86.c \
420				 $(CORE_DIR)/vidhrdw/darius_vidhrdw.c $(CORE_DIR)/drivers/darius.c \
421				 $(CORE_DIR)/vidhrdw/rastan_vidhrdw.c $(CORE_DIR)/sndhrdw/rastan_sndhrdw.c $(CORE_DIR)/drivers/rastan.c \
422				 $(CORE_DIR)/machine/rainbow_machine.c $(CORE_DIR)/drivers/rainbow.c \
423				 $(CORE_DIR)/drivers/opwolf.c \
424				 $(CORE_DIR)/vidhrdw/othunder_vidhrdw.c $(CORE_DIR)/drivers/othunder.c \
425				 $(CORE_DIR)/vidhrdw/topspeed_vidhrdw.c $(CORE_DIR)/drivers/topspeed.c \
426				 $(CORE_DIR)/machine/arkanoid_machine.c $(CORE_DIR)/vidhrdw/arkanoid_vidhrdw.c $(CORE_DIR)/drivers/arkanoid.c \
427				 $(CORE_DIR)/vidhrdw/superqix_vidhrdw.c $(CORE_DIR)/drivers/superqix.c \
428				 $(CORE_DIR)/vidhrdw/pbillian_vidhrdw.c $(CORE_DIR)/drivers/pbillian.c $(CORE_DIR)/sndhrdw/pbillian_sndhrdw.c \
429				 $(CORE_DIR)/vidhrdw/exzisus_vidhrdw.c $(CORE_DIR)/drivers/exzisus.c \
430				 $(CORE_DIR)/drivers/taito_x.c $(CORE_DIR)/machine/cchip.c \
431				 $(CORE_DIR)/vidhrdw/minivadr_vidhrdw.c $(CORE_DIR)/drivers/minivadr.c \
432				 $(CORE_DIR)/drivers/ashnojoe.c $(CORE_DIR)/vidhrdw/ashnojoe_vidhrdw.c \
433				 $(CORE_DIR)/machine/volfied_machine.c $(CORE_DIR)/vidhrdw/volfied_vidhrdw.c $(CORE_DIR)/drivers/volfied.c \
434				 $(CORE_DIR)/machine/bonzeadv.c $(CORE_DIR)/vidhrdw/asuka_vidhrdw.c $(CORE_DIR)/drivers/asuka.c \
435				 $(CORE_DIR)/vidhrdw/wgp_vidhrdw.c $(CORE_DIR)/drivers/wgp.c \
436				 $(CORE_DIR)/vidhrdw/slapshot_vidhrdw.c $(CORE_DIR)/drivers/slapshot.c \
437				 $(CORE_DIR)/vidhrdw/ninjaw_vidhrdw.c $(CORE_DIR)/drivers/ninjaw.c \
438				 $(CORE_DIR)/vidhrdw/warriorb_vidhrdw.c $(CORE_DIR)/drivers/warriorb.c \
439				 $(CORE_DIR)/machine/tnzs_machine.c $(CORE_DIR)/vidhrdw/tnzs_vidhrdw.c $(CORE_DIR)/drivers/tnzs.c \
440				 $(CORE_DIR)/machine/buggychl_machine.c $(CORE_DIR)/vidhrdw/buggychl_vidhrdw.c $(CORE_DIR)/drivers/buggychl.c \
441				 $(CORE_DIR)/machine/lkage_machine.c $(CORE_DIR)/vidhrdw/lkage_vidhrdw.c $(CORE_DIR)/drivers/lkage.c \
442				 $(CORE_DIR)/vidhrdw/taitoic.c $(CORE_DIR)/sndhrdw/taitosnd.c \
443				 $(CORE_DIR)/vidhrdw/taito_l_vidhrdw.c $(CORE_DIR)/drivers/taito_l.c \
444				 $(CORE_DIR)/vidhrdw/taito_h_vidhrdw.c $(CORE_DIR)/drivers/taito_h.c \
445				 $(CORE_DIR)/vidhrdw/taito_b_vidhrdw.c $(CORE_DIR)/drivers/taito_b.c \
446				 $(CORE_DIR)/vidhrdw/taito_z_vidhrdw.c $(CORE_DIR)/drivers/taito_z.c \
447				 $(CORE_DIR)/vidhrdw/gunbustr_vidhrdw.c $(CORE_DIR)/drivers/gunbustr.c \
448				 $(CORE_DIR)/vidhrdw/superchs_vidhrdw.c $(CORE_DIR)/drivers/superchs.c \
449				 $(CORE_DIR)/vidhrdw/undrfire_vidhrdw.c $(CORE_DIR)/drivers/undrfire.c \
450				 $(CORE_DIR)/vidhrdw/groundfx_vidhrdw.c $(CORE_DIR)/drivers/groundfx.c \
451				 $(CORE_DIR)/vidhrdw/taito_f2_vidhrdw.c $(CORE_DIR)/drivers/taito_f2.c \
452				 $(CORE_DIR)/vidhrdw/taito_f3_vidhrdw.c $(CORE_DIR)/sndhrdw/taito_f3_sndhrdw.c $(CORE_DIR)/drivers/taito_f3.c \
453				 $(CORE_DIR)/vidhrdw/taitoair_vidhrdw.c $(CORE_DIR)/drivers/taitoair.c \
454				 $(CORE_DIR)/machine/slapfght_machine.c $(CORE_DIR)/vidhrdw/slapfght_vidhrdw.c $(CORE_DIR)/drivers/slapfght.c \
455				 $(CORE_DIR)/machine/twincobr_machine.c $(CORE_DIR)/vidhrdw/twincobr_vidhrdw.c $(CORE_DIR)/drivers/twincobr.c \
456				 $(CORE_DIR)/drivers/wardner.c \
457				 $(CORE_DIR)/drivers/mjsister.c $(CORE_DIR)/vidhrdw/mjsister_vidhrdw.c \
458				 $(CORE_DIR)/machine/toaplan1_machine.c $(CORE_DIR)/vidhrdw/toaplan1_vidhrdw.c $(CORE_DIR)/drivers/toaplan1.c \
459				 $(CORE_DIR)/vidhrdw/snowbros_vidhrdw.c $(CORE_DIR)/drivers/snowbros.c \
460				 $(CORE_DIR)/vidhrdw/toaplan2_vidhrdw.c $(CORE_DIR)/drivers/toaplan2.c \
461				 $(CORE_DIR)/vidhrdw/cave_vidhrdw.c \
462				 $(CORE_DIR)/drivers/cave.c \
463				 $(CORE_DIR)/vidhrdw/kyugo_vidhrdw.c $(CORE_DIR)/machine/kyugo_machine.c $(CORE_DIR)/drivers/kyugo.c \
464				 $(CORE_DIR)/machine/williams_machine.c $(CORE_DIR)/vidhrdw/williams_vidhrdw.c $(CORE_DIR)/sndhrdw/williams_sndhrdw.c $(CORE_DIR)/drivers/williams.c \
465				 $(CORE_DIR)/vidhrdw/vulgus_vidhrdw.c $(CORE_DIR)/drivers/vulgus.c \
466				 $(CORE_DIR)/vidhrdw/sonson_vidhrdw.c $(CORE_DIR)/drivers/sonson.c \
467				 $(CORE_DIR)/vidhrdw/higemaru_vidhrdw.c $(CORE_DIR)/drivers/higemaru.c \
468				 $(CORE_DIR)/vidhrdw/1942_vidhrdw.c $(CORE_DIR)/drivers/1942.c \
469				 $(CORE_DIR)/vidhrdw/exedexes_vidhrdw.c $(CORE_DIR)/drivers/exedexes.c \
470				 $(CORE_DIR)/vidhrdw/commando_vidhrdw.c $(CORE_DIR)/drivers/commando.c \
471				 $(CORE_DIR)/vidhrdw/gng_vidhrdw.c $(CORE_DIR)/drivers/gng.c \
472				 $(CORE_DIR)/vidhrdw/gunsmoke_vidhrdw.c $(CORE_DIR)/drivers/gunsmoke.c \
473				 $(CORE_DIR)/vidhrdw/srumbler_vidhrdw.c $(CORE_DIR)/drivers/srumbler.c \
474				 $(CORE_DIR)/vidhrdw/lwings_vidhrdw.c $(CORE_DIR)/drivers/lwings.c \
475				 $(CORE_DIR)/vidhrdw/sidearms_vidhrdw.c $(CORE_DIR)/drivers/sidearms.c \
476				 $(CORE_DIR)/vidhrdw/bionicc_vidhrdw.c $(CORE_DIR)/drivers/bionicc.c \
477				 $(CORE_DIR)/vidhrdw/1943_vidhrdw.c $(CORE_DIR)/drivers/1943.c \
478				 $(CORE_DIR)/vidhrdw/blktiger_vidhrdw.c $(CORE_DIR)/drivers/blktiger.c \
479				 $(CORE_DIR)/vidhrdw/tigeroad_vidhrdw.c $(CORE_DIR)/drivers/tigeroad.c \
480				 $(CORE_DIR)/vidhrdw/lastduel_vidhrdw.c $(CORE_DIR)/drivers/lastduel.c \
481				 $(CORE_DIR)/vidhrdw/sf1_vidhrdw.c $(CORE_DIR)/drivers/sf1.c \
482				 $(CORE_DIR)/machine/kabuki.c \
483				 $(CORE_DIR)/vidhrdw/mitchell_vidhrdw.c $(CORE_DIR)/drivers/mitchell.c \
484				 $(CORE_DIR)/vidhrdw/cbasebal_vidhrdw.c $(CORE_DIR)/drivers/cbasebal.c \
485				 $(CORE_DIR)/vidhrdw/cps1_vidhrdw.c $(CORE_DIR)/drivers/cps1.c $(CORE_DIR)/drivers/cps2.c \
486				 $(CORE_DIR)/drivers/zn.c \
487				 $(CORE_DIR)/vidhrdw/tms34061_vidhrdw.c \
488				 $(CORE_DIR)/machine/capbowl_machine.c $(CORE_DIR)/vidhrdw/capbowl_vidhrdw.c $(CORE_DIR)/drivers/capbowl.c \
489				 $(CORE_DIR)/vidhrdw/itech8_vidhrdw.c $(CORE_DIR)/drivers/itech8.c \
490				 $(CORE_DIR)/vidhrdw/itech32_vidhrdw.c $(CORE_DIR)/drivers/itech32.c \
491				 $(CORE_DIR)/machine/slikshot.c \
492				 $(CORE_DIR)/vidhrdw/blockade_vidhrdw.c $(CORE_DIR)/drivers/blockade.c \
493				 $(CORE_DIR)/vidhrdw/vicdual_vidhrdw.c $(CORE_DIR)/drivers/vicdual.c \
494				 $(CORE_DIR)/sndhrdw/carnival.c $(CORE_DIR)/sndhrdw/depthch.c $(CORE_DIR)/sndhrdw/invinco.c $(CORE_DIR)/sndhrdw/pulsar.c \
495				 $(CORE_DIR)/machine/segacrpt.c $(CORE_DIR)/sndhrdw/segasnd.c \
496				 $(CORE_DIR)/vidhrdw/sega_vidhrdw.c $(CORE_DIR)/sndhrdw/sega_sndhrdw.c $(CORE_DIR)/machine/sega_machine.c $(CORE_DIR)/drivers/sega.c \
497				 $(CORE_DIR)/vidhrdw/segar_vidhrdw.c $(CORE_DIR)/sndhrdw/segar_sndhrdw.c $(CORE_DIR)/machine/segar_machine.c $(CORE_DIR)/drivers/segar.c \
498				 $(CORE_DIR)/vidhrdw/tms9928a.c $(CORE_DIR)/drivers/sg1000a.c \
499				 $(CORE_DIR)/vidhrdw/zaxxon_vidhrdw.c $(CORE_DIR)/sndhrdw/zaxxon_sndhrdw.c $(CORE_DIR)/drivers/zaxxon.c \
500				 $(CORE_DIR)/machine/turbo_machine.c $(CORE_DIR)/vidhrdw/turbo_vidhrdw.c $(CORE_DIR)/drivers/turbo.c \
501				 $(CORE_DIR)/drivers/kopunch.c $(CORE_DIR)/vidhrdw/kopunch_vidhrdw.c \
502				 $(CORE_DIR)/vidhrdw/suprloco_vidhrdw.c $(CORE_DIR)/drivers/suprloco.c \
503				 $(CORE_DIR)/vidhrdw/dotrikun_vidhrdw.c $(CORE_DIR)/drivers/dotrikun.c \
504				 $(CORE_DIR)/vidhrdw/angelkds_vidhrdw.c $(CORE_DIR)/drivers/angelkds.c \
505				 $(CORE_DIR)/vidhrdw/system1_vidhrdw.c $(CORE_DIR)/drivers/system1.c \
506				 $(CORE_DIR)/vidhrdw/segasyse_vidhrdw.c $(CORE_DIR)/drivers/segasyse.c \
507				 $(CORE_DIR)/machine/system16_machine.c $(CORE_DIR)/vidhrdw/system16_vidhrdw.c $(CORE_DIR)/vidhrdw/sys16spr.c \
508				 $(CORE_DIR)/sndhrdw/system16_sndhrdw.c \
509				 $(CORE_DIR)/drivers/system16.c $(CORE_DIR)/drivers/aburner.c $(CORE_DIR)/drivers/outrun.c \
510				 $(CORE_DIR)/drivers/sharrier.c $(CORE_DIR)/drivers/system18.c \
511				 $(CORE_DIR)/drivers/system24.c $(CORE_DIR)/machine/system24_machine.c $(CORE_DIR)/vidhrdw/system24_vidhrdw.c \
512				 $(CORE_DIR)/vidhrdw/segaic24.c \
513				 $(CORE_DIR)/drivers/system32.c $(CORE_DIR)/drivers/multi32.c $(CORE_DIR)/vidhrdw/system32_vidhrdw.c \
514				 $(CORE_DIR)/vidhrdw/segac2_vidhrdw.c $(CORE_DIR)/drivers/segac2.c \
515				 $(CORE_DIR)/drivers/stv.c $(CORE_DIR)/drivers/stvhacks.c $(CORE_DIR)/machine/stvcd.c \
516				 $(CORE_DIR)/machine/scudsp.c \
517				 $(CORE_DIR)/vidhrdw/stvvdp1_vidhrdw.c $(CORE_DIR)/vidhrdw/stvvdp2_vidhrdw.c \
518				 $(CORE_DIR)/vidhrdw/deniam_vidhrdw.c $(CORE_DIR)/drivers/deniam.c \
519				 $(CORE_DIR)/machine/btime_machine.c $(CORE_DIR)/vidhrdw/btime_vidhrdw.c $(CORE_DIR)/drivers/btime.c \
520				 $(CORE_DIR)/machine/decocass_machine.c $(CORE_DIR)/vidhrdw/decocass_vidhrdw.c $(CORE_DIR)/drivers/decocass.c \
521				 $(CORE_DIR)/vidhrdw/astrof_vidhrdw.c $(CORE_DIR)/sndhrdw/astrof_sndhrdw.c $(CORE_DIR)/drivers/astrof.c \
522				 $(CORE_DIR)/vidhrdw/liberate_vidhrdw.c $(CORE_DIR)/drivers/liberate.c \
523				 $(CORE_DIR)/vidhrdw/bwing_vidhrdw.c $(CORE_DIR)/drivers/bwing.c \
524				 $(CORE_DIR)/vidhrdw/kchamp_vidhrdw.c $(CORE_DIR)/drivers/kchamp.c \
525				 $(CORE_DIR)/vidhrdw/firetrap_vidhrdw.c $(CORE_DIR)/drivers/firetrap.c \
526				 $(CORE_DIR)/vidhrdw/brkthru_vidhrdw.c $(CORE_DIR)/drivers/brkthru.c \
527				 $(CORE_DIR)/vidhrdw/metlclsh_vidhrdw.c $(CORE_DIR)/drivers/metlclsh.c \
528				 $(CORE_DIR)/drivers/compgolf.c \
529				 $(CORE_DIR)/drivers/tryout.c \
530				 $(CORE_DIR)/vidhrdw/shootout_vidhrdw.c $(CORE_DIR)/drivers/shootout.c \
531				 $(CORE_DIR)/vidhrdw/sidepckt_vidhrdw.c $(CORE_DIR)/drivers/sidepckt.c \
532				 $(CORE_DIR)/vidhrdw/exprraid_vidhrdw.c $(CORE_DIR)/drivers/exprraid.c \
533				 $(CORE_DIR)/vidhrdw/pcktgal_vidhrdw.c $(CORE_DIR)/drivers/pcktgal.c \
534				 $(CORE_DIR)/vidhrdw/battlera_vidhrdw.c $(CORE_DIR)/drivers/battlera.c \
535				 $(CORE_DIR)/vidhrdw/actfancr_vidhrdw.c $(CORE_DIR)/drivers/actfancr.c \
536				 $(CORE_DIR)/vidhrdw/dec8_vidhrdw.c $(CORE_DIR)/drivers/dec8.c \
537				 $(CORE_DIR)/vidhrdw/karnov_vidhrdw.c $(CORE_DIR)/drivers/karnov.c \
538				 $(CORE_DIR)/machine/decocrpt.c $(CORE_DIR)/machine/decoprot.c \
539				 $(CORE_DIR)/vidhrdw/deco16ic.c \
540				 $(CORE_DIR)/machine/dec0_machine.c $(CORE_DIR)/vidhrdw/dec0_vidhrdw.c $(CORE_DIR)/drivers/dec0.c \
541				 $(CORE_DIR)/vidhrdw/stadhero_vidhrdw.c $(CORE_DIR)/drivers/stadhero.c \
542				 $(CORE_DIR)/vidhrdw/madmotor_vidhrdw.c $(CORE_DIR)/drivers/madmotor.c \
543				 $(CORE_DIR)/vidhrdw/vaportra_vidhrdw.c $(CORE_DIR)/drivers/vaportra.c \
544				 $(CORE_DIR)/vidhrdw/cbuster_vidhrdw.c $(CORE_DIR)/drivers/cbuster.c \
545				 $(CORE_DIR)/vidhrdw/darkseal_vidhrdw.c $(CORE_DIR)/drivers/darkseal.c \
546				 $(CORE_DIR)/vidhrdw/supbtime_vidhrdw.c $(CORE_DIR)/drivers/supbtime.c \
547				 $(CORE_DIR)/vidhrdw/cninja_vidhrdw.c $(CORE_DIR)/drivers/cninja.c \
548				 $(CORE_DIR)/vidhrdw/dassault_vidhrdw.c $(CORE_DIR)/drivers/dassault.c \
549				 $(CORE_DIR)/vidhrdw/rohga_vidhrdw.c $(CORE_DIR)/drivers/rohga.c \
550				 $(CORE_DIR)/vidhrdw/tumblep_vidhrdw.c $(CORE_DIR)/drivers/tumblep.c \
551				 $(CORE_DIR)/vidhrdw/lemmings_vidhrdw.c $(CORE_DIR)/drivers/lemmings.c \
552				 $(CORE_DIR)/vidhrdw/funkyjet_vidhrdw.c $(CORE_DIR)/drivers/funkyjet.c \
553				 $(CORE_DIR)/vidhrdw/deco32_vidhrdw.c $(CORE_DIR)/drivers/deco32.c \
554				 $(CORE_DIR)/vidhrdw/avengrgs_vidhrdw.c $(CORE_DIR)/drivers/avengrgs.c \
555				 $(CORE_DIR)/vidhrdw/sshangha_vidhrdw.c $(CORE_DIR)/drivers/sshangha.c \
556				 $(CORE_DIR)/sndhrdw/senjyo_sndhrdw.c $(CORE_DIR)/vidhrdw/senjyo_vidhrdw.c $(CORE_DIR)/drivers/senjyo.c \
557				 $(CORE_DIR)/vidhrdw/bombjack_vidhrdw.c $(CORE_DIR)/drivers/bombjack.c \
558				 $(CORE_DIR)/vidhrdw/pbaction_vidhrdw.c $(CORE_DIR)/drivers/pbaction.c \
559				 $(CORE_DIR)/vidhrdw/tehkanwc_vidhrdw.c $(CORE_DIR)/drivers/tehkanwc.c \
560				 $(CORE_DIR)/vidhrdw/solomon_vidhrdw.c $(CORE_DIR)/drivers/solomon.c \
561				 $(CORE_DIR)/vidhrdw/tecmo_vidhrdw.c $(CORE_DIR)/drivers/tecmo.c \
562				 $(CORE_DIR)/vidhrdw/tbowl_vidhrdw.c $(CORE_DIR)/drivers/tbowl.c \
563				 $(CORE_DIR)/vidhrdw/gaiden_vidhrdw.c $(CORE_DIR)/drivers/gaiden.c \
564				 $(CORE_DIR)/vidhrdw/wc90_vidhrdw.c $(CORE_DIR)/drivers/wc90.c \
565				 $(CORE_DIR)/vidhrdw/wc90b_vidhrdw.c $(CORE_DIR)/drivers/wc90b.c \
566				 $(CORE_DIR)/vidhrdw/spbactn_vidhrdw.c $(CORE_DIR)/drivers/spbactn.c \
567				 $(CORE_DIR)/vidhrdw/tecmo16_vidhrdw.c $(CORE_DIR)/drivers/tecmo16.c \
568				 $(CORE_DIR)/drivers/tecmosys.c \
569				 $(CORE_DIR)/machine/scramble_machine.c $(CORE_DIR)/sndhrdw/scramble_sndhrdw.c $(CORE_DIR)/drivers/scramble.c \
570				 $(CORE_DIR)/drivers/frogger.c \
571				 $(CORE_DIR)/drivers/scobra.c \
572				 $(CORE_DIR)/drivers/amidar.c \
573				 $(CORE_DIR)/vidhrdw/fastfred_vidhrdw.c $(CORE_DIR)/drivers/fastfred.c \
574				 $(CORE_DIR)/vidhrdw/tutankhm_vidhrdw.c $(CORE_DIR)/drivers/tutankhm.c \
575				 $(CORE_DIR)/drivers/junofrst.c \
576				 $(CORE_DIR)/vidhrdw/pooyan_vidhrdw.c $(CORE_DIR)/drivers/pooyan.c \
577				 $(CORE_DIR)/vidhrdw/timeplt_vidhrdw.c $(CORE_DIR)/drivers/timeplt.c $(CORE_DIR)/sndhrdw/timeplt_sndhrdw.c \
578				 $(CORE_DIR)/vidhrdw/megazone_vidhrdw.c $(CORE_DIR)/drivers/megazone.c \
579				 $(CORE_DIR)/vidhrdw/pandoras_vidhrdw.c $(CORE_DIR)/drivers/pandoras.c \
580				 $(CORE_DIR)/sndhrdw/gyruss_sndhrdw.c $(CORE_DIR)/vidhrdw/gyruss_vidhrdw.c $(CORE_DIR)/drivers/gyruss.c \
581				 $(CORE_DIR)/machine/konami_machine.c \
582				 $(CORE_DIR)/vidhrdw/trackfld_vidhrdw.c $(CORE_DIR)/sndhrdw/trackfld_sndhrdw.c $(CORE_DIR)/drivers/trackfld.c \
583				 $(CORE_DIR)/vidhrdw/rocnrope_vidhrdw.c $(CORE_DIR)/drivers/rocnrope.c \
584				 $(CORE_DIR)/vidhrdw/circusc_vidhrdw.c $(CORE_DIR)/drivers/circusc.c \
585				 $(CORE_DIR)/vidhrdw/tp84_vidhrdw.c $(CORE_DIR)/drivers/tp84.c \
586				 $(CORE_DIR)/vidhrdw/hyperspt_vidhrdw.c $(CORE_DIR)/drivers/hyperspt.c \
587				 $(CORE_DIR)/vidhrdw/sbasketb_vidhrdw.c $(CORE_DIR)/drivers/sbasketb.c \
588				 $(CORE_DIR)/vidhrdw/mikie_vidhrdw.c $(CORE_DIR)/drivers/mikie.c \
589				 $(CORE_DIR)/vidhrdw/yiear_vidhrdw.c $(CORE_DIR)/drivers/yiear.c \
590				 $(CORE_DIR)/vidhrdw/shaolins_vidhrdw.c $(CORE_DIR)/drivers/shaolins.c \
591				 $(CORE_DIR)/vidhrdw/pingpong_vidhrdw.c $(CORE_DIR)/drivers/pingpong.c \
592				 $(CORE_DIR)/vidhrdw/gberet_vidhrdw.c $(CORE_DIR)/drivers/gberet.c \
593				 $(CORE_DIR)/vidhrdw/jailbrek_vidhrdw.c $(CORE_DIR)/drivers/jailbrek.c \
594				 $(CORE_DIR)/vidhrdw/finalizr_vidhrdw.c $(CORE_DIR)/drivers/finalizr.c \
595				 $(CORE_DIR)/vidhrdw/ironhors_vidhrdw.c $(CORE_DIR)/drivers/ironhors.c \
596				 $(CORE_DIR)/machine/jackal_machine.c $(CORE_DIR)/vidhrdw/jackal_vidhrdw.c $(CORE_DIR)/drivers/jackal.c \
597				 $(CORE_DIR)/vidhrdw/ddrible_vidhrdw.c $(CORE_DIR)/drivers/ddrible.c \
598				 $(CORE_DIR)/vidhrdw/contra_vidhrdw.c $(CORE_DIR)/drivers/contra.c \
599				 $(CORE_DIR)/vidhrdw/combatsc_vidhrdw.c $(CORE_DIR)/drivers/combatsc.c \
600				 $(CORE_DIR)/vidhrdw/hcastle_vidhrdw.c $(CORE_DIR)/drivers/hcastle.c \
601				 $(CORE_DIR)/vidhrdw/nemesis_vidhrdw.c $(CORE_DIR)/drivers/nemesis.c \
602				 $(CORE_DIR)/vidhrdw/konamiic.c \
603				 $(CORE_DIR)/vidhrdw/rockrage_vidhrdw.c $(CORE_DIR)/drivers/rockrage.c \
604				 $(CORE_DIR)/vidhrdw/flkatck_vidhrdw.c $(CORE_DIR)/drivers/flkatck.c \
605				 $(CORE_DIR)/vidhrdw/fastlane_vidhrdw.c $(CORE_DIR)/drivers/fastlane.c \
606				 $(CORE_DIR)/vidhrdw/labyrunr_vidhrdw.c $(CORE_DIR)/drivers/labyrunr.c \
607				 $(CORE_DIR)/vidhrdw/battlnts_vidhrdw.c $(CORE_DIR)/drivers/battlnts.c \
608				 $(CORE_DIR)/vidhrdw/bladestl_vidhrdw.c $(CORE_DIR)/drivers/bladestl.c \
609				 $(CORE_DIR)/machine/ajax_machine.c $(CORE_DIR)/vidhrdw/ajax_vidhrdw.c $(CORE_DIR)/drivers/ajax.c \
610				 $(CORE_DIR)/vidhrdw/thunderx_vidhrdw.c $(CORE_DIR)/drivers/thunderx.c \
611				 $(CORE_DIR)/vidhrdw/mainevt_vidhrdw.c $(CORE_DIR)/drivers/mainevt.c \
612				 $(CORE_DIR)/vidhrdw/88games_vidhrdw.c $(CORE_DIR)/drivers/88games.c \
613				 $(CORE_DIR)/vidhrdw/gbusters_vidhrdw.c $(CORE_DIR)/drivers/gbusters.c \
614				 $(CORE_DIR)/vidhrdw/crimfght_vidhrdw.c $(CORE_DIR)/drivers/crimfght.c \
615				 $(CORE_DIR)/vidhrdw/spy_vidhrdw.c $(CORE_DIR)/drivers/spy.c \
616				 $(CORE_DIR)/vidhrdw/bottom9_vidhrdw.c $(CORE_DIR)/drivers/bottom9.c \
617				 $(CORE_DIR)/vidhrdw/blockhl_vidhrdw.c $(CORE_DIR)/drivers/blockhl.c \
618				 $(CORE_DIR)/vidhrdw/aliens_vidhrdw.c $(CORE_DIR)/drivers/aliens.c \
619				 $(CORE_DIR)/vidhrdw/surpratk_vidhrdw.c $(CORE_DIR)/drivers/surpratk.c \
620				 $(CORE_DIR)/vidhrdw/parodius_vidhrdw.c $(CORE_DIR)/drivers/parodius.c \
621				 $(CORE_DIR)/vidhrdw/rollerg_vidhrdw.c $(CORE_DIR)/drivers/rollerg.c \
622				 $(CORE_DIR)/vidhrdw/xexex_vidhrdw.c $(CORE_DIR)/drivers/xexex.c \
623				 $(CORE_DIR)/vidhrdw/asterix_vidhrdw.c $(CORE_DIR)/drivers/asterix.c \
624				 $(CORE_DIR)/vidhrdw/gijoe_vidhrdw.c $(CORE_DIR)/drivers/gijoe.c \
625				 $(CORE_DIR)/machine/simpsons_machine.c $(CORE_DIR)/vidhrdw/simpsons_vidhrdw.c $(CORE_DIR)/drivers/simpsons.c \
626				 $(CORE_DIR)/vidhrdw/vendetta_vidhrdw.c $(CORE_DIR)/drivers/vendetta.c \
627				 $(CORE_DIR)/vidhrdw/wecleman_vidhrdw.c $(CORE_DIR)/drivers/wecleman.c \
628				 $(CORE_DIR)/vidhrdw/chqflag_vidhrdw.c $(CORE_DIR)/drivers/chqflag.c \
629				 $(CORE_DIR)/vidhrdw/ultraman_vidhrdw.c $(CORE_DIR)/drivers/ultraman.c \
630				 $(CORE_DIR)/vidhrdw/hexion_vidhrdw.c $(CORE_DIR)/drivers/hexion.c \
631				 $(CORE_DIR)/vidhrdw/twin16_vidhrdw.c $(CORE_DIR)/drivers/twin16.c \
632				 $(CORE_DIR)/vidhrdw/tmnt_vidhrdw.c $(CORE_DIR)/drivers/tmnt.c \
633				 $(CORE_DIR)/vidhrdw/xmen_vidhrdw.c $(CORE_DIR)/drivers/xmen.c \
634				 $(CORE_DIR)/vidhrdw/overdriv_vidhrdw.c $(CORE_DIR)/drivers/overdriv.c \
635				 $(CORE_DIR)/vidhrdw/gradius3_vidhrdw.c $(CORE_DIR)/drivers/gradius3.c \
636				 $(CORE_DIR)/vidhrdw/moo_vidhrdw.c $(CORE_DIR)/drivers/moo.c \
637				 $(CORE_DIR)/vidhrdw/mystwarr_vidhrdw.c $(CORE_DIR)/drivers/mystwarr.c \
638				 $(CORE_DIR)/vidhrdw/rungun_vidhrdw.c $(CORE_DIR)/drivers/rungun.c \
639				 $(CORE_DIR)/vidhrdw/dbz2_vidhrdw.c $(CORE_DIR)/drivers/dbz2.c \
640				 $(CORE_DIR)/vidhrdw/bishi_vidhrdw.c $(CORE_DIR)/drivers/bishi.c \
641				 $(CORE_DIR)/machine/konamigx_machine.c $(CORE_DIR)/vidhrdw/konamigx_vidhrdw.c $(CORE_DIR)/drivers/konamigx.c \
642				 $(CORE_DIR)/vidhrdw/djmain_vidhrdw.c $(CORE_DIR)/drivers/djmain.c \
643				 $(CORE_DIR)/vidhrdw/plygonet_vidhrdw.c $(CORE_DIR)/drivers/plygonet.c \
644				 $(CORE_DIR)/drivers/mogura.c \
645				 $(CORE_DIR)/machine/am53cf96.c $(CORE_DIR)/drivers/konamigq.c \
646				 $(CORE_DIR)/machine/carpolo_machine.c $(CORE_DIR)/vidhrdw/carpolo_vidhrdw.c $(CORE_DIR)/drivers/carpolo.c \
647				 $(CORE_DIR)/vidhrdw/exidy_vidhrdw.c $(CORE_DIR)/sndhrdw/exidy_sndhrdw.c $(CORE_DIR)/drivers/exidy.c \
648				 $(CORE_DIR)/sndhrdw/targ.c \
649				 $(CORE_DIR)/vidhrdw/circus_vidhrdw.c $(CORE_DIR)/drivers/circus.c \
650				 $(CORE_DIR)/vidhrdw/starfire_vidhrdw.c $(CORE_DIR)/drivers/starfire.c \
651				 $(CORE_DIR)/vidhrdw/victory_vidhrdw.c $(CORE_DIR)/drivers/victory.c \
652				 $(CORE_DIR)/sndhrdw/exidy440_sndhrdw.c $(CORE_DIR)/vidhrdw/exidy440_vidhrdw.c $(CORE_DIR)/drivers/exidy440.c \
653				 $(CORE_DIR)/machine/atari_vg.c \
654				 $(CORE_DIR)/vidhrdw/tia.c $(CORE_DIR)/drivers/tourtabl.c \
655				 $(CORE_DIR)/machine/asteroid_machine.c $(CORE_DIR)/sndhrdw/asteroid_sndhrdw.c $(CORE_DIR)/drivers/asteroid.c \
656				 $(CORE_DIR)/sndhrdw/llander.c \
657				 $(CORE_DIR)/drivers/bwidow.c \
658				 $(CORE_DIR)/sndhrdw/bzone_sndhrdw.c	$(CORE_DIR)/drivers/bzone.c \
659				 $(CORE_DIR)/sndhrdw/redbaron.c \
660				 $(CORE_DIR)/drivers/tempest.c \
661				 $(CORE_DIR)/machine/starwars_machine.c $(CORE_DIR)/drivers/starwars.c $(CORE_DIR)/sndhrdw/starwars_sndhrdw.c \
662				 $(CORE_DIR)/machine/mhavoc_machine.c $(CORE_DIR)/drivers/mhavoc.c \
663				 $(CORE_DIR)/drivers/quantum.c \
664				 $(CORE_DIR)/vidhrdw/copsnrob_vidhrdw.c $(CORE_DIR)/machine/copsnrob_machine.c $(CORE_DIR)/drivers/copsnrob.c \
665				 $(CORE_DIR)/vidhrdw/flyball_vidhrdw.c $(CORE_DIR)/drivers/flyball.c \
666				 $(CORE_DIR)/vidhrdw/sprint2_vidhrdw.c $(CORE_DIR)/drivers/sprint2.c \
667				 $(CORE_DIR)/vidhrdw/sprint4_vidhrdw.c $(CORE_DIR)/drivers/sprint4.c \
668				 $(CORE_DIR)/vidhrdw/sprint8_vidhrdw.c $(CORE_DIR)/drivers/sprint8.c \
669				 $(CORE_DIR)/vidhrdw/nitedrvr_vidhrdw.c $(CORE_DIR)/machine/nitedrvr_machine.c $(CORE_DIR)/drivers/nitedrvr.c \
670				 $(CORE_DIR)/machine/dominos.c \
671				 $(CORE_DIR)/vidhrdw/triplhnt_vidhrdw.c $(CORE_DIR)/drivers/triplhnt.c \
672				 $(CORE_DIR)/vidhrdw/dragrace_vidhrdw.c $(CORE_DIR)/drivers/dragrace.c \
673				 $(CORE_DIR)/vidhrdw/poolshrk_vidhrdw.c $(CORE_DIR)/drivers/poolshrk.c \
674				 $(CORE_DIR)/vidhrdw/starshp1_vidhrdw.c $(CORE_DIR)/drivers/starshp1.c \
675				 $(CORE_DIR)/vidhrdw/canyon_vidhrdw.c $(CORE_DIR)/drivers/canyon.c \
676				 $(CORE_DIR)/vidhrdw/destroyr_vidhrdw.c $(CORE_DIR)/drivers/destroyr.c \
677				 $(CORE_DIR)/drivers/ultratnk.c \
678				 $(CORE_DIR)/vidhrdw/wolfpack_vidhrdw.c $(CORE_DIR)/drivers/wolfpack.c \
679				 $(CORE_DIR)/vidhrdw/boxer_vidhrdw.c $(CORE_DIR)/drivers/boxer.c \
680				 $(CORE_DIR)/vidhrdw/skyraid_vidhrdw.c $(CORE_DIR)/drivers/skyraid.c \
681				 $(CORE_DIR)/machine/avalnche_machine.c $(CORE_DIR)/vidhrdw/avalnche_vidhrdw.c $(CORE_DIR)/drivers/avalnche.c \
682				 $(CORE_DIR)/drivers/firetrk.c $(CORE_DIR)/vidhrdw/firetrk_vidhrdw.c \
683				 $(CORE_DIR)/vidhrdw/skydiver_vidhrdw.c $(CORE_DIR)/drivers/skydiver.c \
684				 $(CORE_DIR)/machine/sbrkout_machine.c $(CORE_DIR)/vidhrdw/sbrkout_vidhrdw.c $(CORE_DIR)/drivers/sbrkout.c \
685				 $(CORE_DIR)/machine/atarifb_machine.c $(CORE_DIR)/vidhrdw/atarifb_vidhrdw.c $(CORE_DIR)/drivers/atarifb.c \
686				 $(CORE_DIR)/vidhrdw/orbit_vidhrdw.c $(CORE_DIR)/drivers/orbit.c \
687				 $(CORE_DIR)/vidhrdw/videopin_vidhrdw.c $(CORE_DIR)/drivers/videopin.c \
688				 $(CORE_DIR)/machine/subs_machine.c $(CORE_DIR)/vidhrdw/subs_vidhrdw.c $(CORE_DIR)/drivers/subs.c \
689				 $(CORE_DIR)/vidhrdw/bsktball_vidhrdw.c $(CORE_DIR)/machine/bsktball_machine.c $(CORE_DIR)/drivers/bsktball.c \
690				 $(CORE_DIR)/vidhrdw/centiped_vidhrdw.c $(CORE_DIR)/drivers/centiped.c \
691				 $(CORE_DIR)/vidhrdw/runaway_vidhrdw.c $(CORE_DIR)/drivers/runaway.c \
692				 $(CORE_DIR)/machine/missile_machine.c $(CORE_DIR)/vidhrdw/missile_vidhrdw.c $(CORE_DIR)/drivers/missile.c \
693				 $(CORE_DIR)/vidhrdw/foodf_vidhrdw.c $(CORE_DIR)/drivers/foodf.c \
694				 $(CORE_DIR)/drivers/tunhunt.c $(CORE_DIR)/vidhrdw/tunhunt_vidhrdw.c \
695				 $(CORE_DIR)/vidhrdw/liberatr_vidhrdw.c $(CORE_DIR)/drivers/liberatr.c \
696				 $(CORE_DIR)/vidhrdw/ccastles_vidhrdw.c $(CORE_DIR)/drivers/ccastles.c \
697				 $(CORE_DIR)/vidhrdw/cloak_vidhrdw.c $(CORE_DIR)/drivers/cloak.c \
698				 $(CORE_DIR)/vidhrdw/cloud9_vidhrdw.c $(CORE_DIR)/drivers/cloud9.c \
699				 $(CORE_DIR)/vidhrdw/jedi_vidhrdw.c $(CORE_DIR)/drivers/jedi.c \
700				 $(CORE_DIR)/machine/atarigen.c $(CORE_DIR)/sndhrdw/atarijsa.c \
701				 $(CORE_DIR)/vidhrdw/atarimo_vidhrdw.c $(CORE_DIR)/vidhrdw/atarirle_vidhrdw.c \
702				 $(CORE_DIR)/machine/slapstic.c \
703				 $(CORE_DIR)/vidhrdw/atarisy1_vidhrdw.c $(CORE_DIR)/drivers/atarisy1.c \
704				 $(CORE_DIR)/vidhrdw/atarisy2_vidhrdw.c $(CORE_DIR)/drivers/atarisy2.c \
705				 $(CORE_DIR)/machine/irobot_machine.c $(CORE_DIR)/vidhrdw/irobot_vidhrdw.c $(CORE_DIR)/drivers/irobot.c \
706				 $(CORE_DIR)/machine/harddriv_machine.c $(CORE_DIR)/vidhrdw/harddriv_vidhrdw.c $(CORE_DIR)/sndhrdw/harddriv_sndhrdw.c $(CORE_DIR)/drivers/harddriv.c \
707				 $(CORE_DIR)/vidhrdw/gauntlet_vidhrdw.c $(CORE_DIR)/drivers/gauntlet.c \
708				 $(CORE_DIR)/vidhrdw/atetris_vidhrdw.c $(CORE_DIR)/drivers/atetris.c \
709				 $(CORE_DIR)/vidhrdw/toobin_vidhrdw.c $(CORE_DIR)/drivers/toobin.c \
710				 $(CORE_DIR)/vidhrdw/vindictr_vidhrdw.c $(CORE_DIR)/drivers/vindictr.c \
711				 $(CORE_DIR)/vidhrdw/klax_vidhrdw.c $(CORE_DIR)/drivers/klax.c \
712				 $(CORE_DIR)/vidhrdw/blstroid_vidhrdw.c $(CORE_DIR)/drivers/blstroid.c \
713				 $(CORE_DIR)/vidhrdw/xybots_vidhrdw.c $(CORE_DIR)/drivers/xybots.c \
714				 $(CORE_DIR)/vidhrdw/eprom_vidhrdw.c $(CORE_DIR)/drivers/eprom.c \
715				 $(CORE_DIR)/vidhrdw/skullxbo_vidhrdw.c $(CORE_DIR)/drivers/skullxbo.c \
716				 $(CORE_DIR)/vidhrdw/badlands_vidhrdw.c $(CORE_DIR)/drivers/badlands.c \
717				 $(CORE_DIR)/vidhrdw/cyberbal_vidhrdw.c $(CORE_DIR)/sndhrdw/cyberbal_sndhrdw.c $(CORE_DIR)/drivers/cyberbal.c \
718				 $(CORE_DIR)/vidhrdw/rampart_vidhrdw.c $(CORE_DIR)/drivers/rampart.c \
719				 $(CORE_DIR)/vidhrdw/shuuz_vidhrdw.c $(CORE_DIR)/drivers/shuuz.c \
720				 $(CORE_DIR)/vidhrdw/atarig1_vidhrdw.c $(CORE_DIR)/drivers/atarig1.c \
721				 $(CORE_DIR)/vidhrdw/thunderj_vidhrdw.c $(CORE_DIR)/drivers/thunderj.c \
722				 $(CORE_DIR)/vidhrdw/batman_vidhrdw.c $(CORE_DIR)/drivers/batman.c \
723				 $(CORE_DIR)/vidhrdw/relief_vidhrdw.c $(CORE_DIR)/drivers/relief.c \
724				 $(CORE_DIR)/vidhrdw/offtwall_vidhrdw.c $(CORE_DIR)/drivers/offtwall.c \
725				 $(CORE_DIR)/vidhrdw/arcadecl_vidhrdw.c $(CORE_DIR)/drivers/arcadecl.c \
726				 $(CORE_DIR)/vidhrdw/beathead_vidhrdw.c $(CORE_DIR)/drivers/beathead.c \
727				 $(CORE_DIR)/vidhrdw/atarig42_vidhrdw.c $(CORE_DIR)/drivers/atarig42.c \
728				 $(CORE_DIR)/machine/asic65.c \
729				 $(CORE_DIR)/vidhrdw/atarigx2_vidhrdw.c $(CORE_DIR)/drivers/atarigx2.c \
730				 $(CORE_DIR)/vidhrdw/atarigt_vidhrdw.c $(CORE_DIR)/drivers/atarigt.c \
731				 $(CORE_DIR)/vidhrdw/jaguar_vidhrdw.c $(CORE_DIR)/sndhrdw/jaguar_sndhrdw.c $(CORE_DIR)/drivers/cojag.c \
732				 $(CORE_DIR)/sndhrdw/cage_sndhrdw.c \
733				 $(CORE_DIR)/vidhrdw/rockola_vidhrdw.c $(CORE_DIR)/sndhrdw/rockola_sndhrdw.c $(CORE_DIR)/drivers/rockola.c \
734				 $(CORE_DIR)/vidhrdw/lasso_vidhrdw.c $(CORE_DIR)/drivers/lasso.c \
735				 $(CORE_DIR)/drivers/munchmo.c $(CORE_DIR)/vidhrdw/munchmo_vidhrdw.c \
736				 $(CORE_DIR)/vidhrdw/marvins_vidhrdw.c $(CORE_DIR)/drivers/marvins.c \
737				 $(CORE_DIR)/vidhrdw/jcross_vidhrdw.c $(CORE_DIR)/drivers/jcross.c \
738				 $(CORE_DIR)/vidhrdw/mainsnk_vidhrdw.c $(CORE_DIR)/drivers/mainsnk.c \
739				 $(CORE_DIR)/drivers/hal21.c \
740				 $(CORE_DIR)/vidhrdw/snk_vidhrdw.c $(CORE_DIR)/drivers/snk.c \
741				 $(CORE_DIR)/drivers/sgladiat.c \
742				 $(CORE_DIR)/vidhrdw/snk68_vidhrdw.c $(CORE_DIR)/drivers/snk68.c \
743				 $(CORE_DIR)/vidhrdw/prehisle_vidhrdw.c $(CORE_DIR)/drivers/prehisle.c \
744				 $(CORE_DIR)/vidhrdw/bbusters_vidhrdw.c $(CORE_DIR)/drivers/bbusters.c \
745				 $(CORE_DIR)/drivers/shougi.c \
746				 $(CORE_DIR)/machine/equites_machine.c $(CORE_DIR)/vidhrdw/equites_vidhrdw.c $(CORE_DIR)/drivers/equites.c \
747				 $(CORE_DIR)/vidhrdw/alpha68k_vidhrdw.c $(CORE_DIR)/drivers/alpha68k.c \
748				 $(CORE_DIR)/vidhrdw/champbas_vidhrdw.c $(CORE_DIR)/drivers/champbas.c \
749				 $(CORE_DIR)/machine/exctsccr_machine.c $(CORE_DIR)/vidhrdw/exctsccr_vidhrdw.c $(CORE_DIR)/drivers/exctsccr.c \
750				 $(CORE_DIR)/drivers/scregg.c \
751				 $(CORE_DIR)/vidhrdw/tagteam_vidhrdw.c $(CORE_DIR)/drivers/tagteam.c \
752				 $(CORE_DIR)/vidhrdw/ssozumo_vidhrdw.c $(CORE_DIR)/drivers/ssozumo.c \
753				 $(CORE_DIR)/vidhrdw/mystston_vidhrdw.c $(CORE_DIR)/drivers/mystston.c \
754				 $(CORE_DIR)/vidhrdw/dogfgt_vidhrdw.c $(CORE_DIR)/drivers/dogfgt.c \
755				 $(CORE_DIR)/vidhrdw/bogeyman_vidhrdw.c $(CORE_DIR)/drivers/bogeyman.c \
756				 $(CORE_DIR)/vidhrdw/matmania_vidhrdw.c $(CORE_DIR)/drivers/matmania.c $(CORE_DIR)/machine/maniach.c \
757				 $(CORE_DIR)/vidhrdw/renegade_vidhrdw.c $(CORE_DIR)/drivers/renegade.c \
758				 $(CORE_DIR)/vidhrdw/xain_vidhrdw.c $(CORE_DIR)/drivers/xain.c \
759				 $(CORE_DIR)/vidhrdw/battlane_vidhrdw.c $(CORE_DIR)/drivers/battlane.c \
760				 $(CORE_DIR)/vidhrdw/ddragon_vidhrdw.c $(CORE_DIR)/drivers/ddragon.c \
761				 $(CORE_DIR)/drivers/chinagat.c \
762				 $(CORE_DIR)/vidhrdw/spdodgeb_vidhrdw.c $(CORE_DIR)/drivers/spdodgeb.c \
763				 $(CORE_DIR)/vidhrdw/wwfsstar_vidhrdw.c $(CORE_DIR)/drivers/wwfsstar.c \
764				 $(CORE_DIR)/vidhrdw/vball_vidhrdw.c $(CORE_DIR)/drivers/vball.c \
765				 $(CORE_DIR)/vidhrdw/blockout_vidhrdw.c $(CORE_DIR)/drivers/blockout.c \
766				 $(CORE_DIR)/vidhrdw/ddragon3_vidhrdw.c $(CORE_DIR)/drivers/ddragon3.c \
767				 $(CORE_DIR)/vidhrdw/wwfwfest_vidhrdw.c $(CORE_DIR)/drivers/wwfwfest.c \
768				 $(CORE_DIR)/vidhrdw/shadfrce_vidhrdw.c $(CORE_DIR)/drivers/shadfrce.c \
769				 $(CORE_DIR)/machine/berzerk_machine.c $(CORE_DIR)/vidhrdw/berzerk_vidhrdw.c $(CORE_DIR)/sndhrdw/berzerk_sndhrdw.c $(CORE_DIR)/drivers/berzerk.c \
770				 $(CORE_DIR)/drivers/mazerbla.c \
771				 $(CORE_DIR)/drivers/supdrapo.c \
772				 $(CORE_DIR)/drivers/toratora.c \
773				 $(CORE_DIR)/vidhrdw/gameplan_vidhrdw.c $(CORE_DIR)/drivers/gameplan.c \
774				 $(CORE_DIR)/vidhrdw/zac2650_vidhrdw.c $(CORE_DIR)/drivers/zac2650.c \
775				 $(CORE_DIR)/vidhrdw/zaccaria_vidhrdw.c $(CORE_DIR)/drivers/zaccaria.c \
776				 $(CORE_DIR)/vidhrdw/mouser_vidhrdw.c $(CORE_DIR)/drivers/mouser.c \
777				 $(CORE_DIR)/vidhrdw/nova2001_vidhrdw.c $(CORE_DIR)/drivers/nova2001.c \
778				 $(CORE_DIR)/vidhrdw/ninjakid_vidhrdw.c $(CORE_DIR)/drivers/ninjakid.c \
779				 $(CORE_DIR)/vidhrdw/raiders5_vidhrdw.c $(CORE_DIR)/drivers/raiders5.c \
780				 $(CORE_DIR)/vidhrdw/pkunwar_vidhrdw.c $(CORE_DIR)/drivers/pkunwar.c \
781				 $(CORE_DIR)/vidhrdw/xxmissio_vidhrdw.c $(CORE_DIR)/drivers/xxmissio.c \
782				 $(CORE_DIR)/vidhrdw/ninjakd2_vidhrdw.c $(CORE_DIR)/drivers/ninjakd2.c \
783				 $(CORE_DIR)/vidhrdw/mnight_vidhrdw.c $(CORE_DIR)/drivers/mnight.c \
784				 $(CORE_DIR)/vidhrdw/omegaf_vidhrdw.c $(CORE_DIR)/drivers/omegaf.c \
785				 $(CORE_DIR)/vidhrdw/nmk16_vidhrdw.c $(CORE_DIR)/drivers/nmk16.c \
786				 $(CORE_DIR)/drivers/jalmah.c \
787				 $(CORE_DIR)/drivers/quizpani.c $(CORE_DIR)/vidhrdw/quizpani_vidhrdw.c \
788				 $(CORE_DIR)/vidhrdw/macrossp_vidhrdw.c $(CORE_DIR)/drivers/macrossp.c \
789				 $(CORE_DIR)/vidhrdw/quizdna_vidhrdw.c $(CORE_DIR)/drivers/quizdna.c \
790				 $(CORE_DIR)/vidhrdw/jack_vidhrdw.c $(CORE_DIR)/drivers/jack.c \
791				 $(CORE_DIR)/drivers/embargo.c \
792				 $(CORE_DIR)/sndhrdw/cinemat_sndhrdw.c $(CORE_DIR)/drivers/cinemat.c \
793				 $(CORE_DIR)/machine/cchasm_machine.c $(CORE_DIR)/vidhrdw/cchasm_vidhrdw.c $(CORE_DIR)/sndhrdw/cchasm_sndhrdw.c $(CORE_DIR)/drivers/cchasm.c \
794				 $(CORE_DIR)/vidhrdw/thepit_vidhrdw.c $(CORE_DIR)/drivers/thepit.c \
795				 $(CORE_DIR)/vidhrdw/timelimt_vidhrdw.c $(CORE_DIR)/drivers/timelimt.c \
796				 $(CORE_DIR)/machine/bagman_machine.c $(CORE_DIR)/vidhrdw/bagman_vidhrdw.c $(CORE_DIR)/drivers/bagman.c \
797				 $(CORE_DIR)/vidhrdw/tankbust_vidhrdw.c $(CORE_DIR)/drivers/tankbust.c \
798				 $(CORE_DIR)/vidhrdw/wiz_vidhrdw.c $(CORE_DIR)/drivers/wiz.c \
799				 $(CORE_DIR)/vidhrdw/kncljoe_vidhrdw.c $(CORE_DIR)/drivers/kncljoe.c \
800				 $(CORE_DIR)/machine/stfight_machine.c $(CORE_DIR)/vidhrdw/stfight_vidhrdw.c $(CORE_DIR)/drivers/stfight.c \
801				 $(CORE_DIR)/drivers/cshooter.c \
802				 $(CORE_DIR)/sndhrdw/seibu.c \
803				 $(CORE_DIR)/vidhrdw/deadang_vidhrdw.c $(CORE_DIR)/drivers/deadang.c \
804				 $(CORE_DIR)/vidhrdw/dynduke_vidhrdw.c $(CORE_DIR)/drivers/dynduke.c \
805				 $(CORE_DIR)/vidhrdw/raiden_vidhrdw.c $(CORE_DIR)/drivers/raiden.c $(CORE_DIR)/drivers/raiden2.c \
806				 $(CORE_DIR)/vidhrdw/dcon_vidhrdw.c $(CORE_DIR)/drivers/dcon.c \
807				 $(CORE_DIR)/vidhrdw/sengokmj_vidhrdw.c $(CORE_DIR)/drivers/sengokmj.c \
808				 $(CORE_DIR)/vidhrdw/mustache_vidhrdw.c $(CORE_DIR)/drivers/mustache.c \
809				 $(CORE_DIR)/vidhrdw/cabal_vidhrdw.c $(CORE_DIR)/drivers/cabal.c \
810				 $(CORE_DIR)/vidhrdw/toki_vidhrdw.c $(CORE_DIR)/drivers/toki.c \
811				 $(CORE_DIR)/vidhrdw/bloodbro_vidhrdw.c $(CORE_DIR)/drivers/bloodbro.c \
812				 $(CORE_DIR)/vidhrdw/legionna_vidhrdw.c $(CORE_DIR)/drivers/legionna.c \
813				 $(CORE_DIR)/vidhrdw/goal92_vidhrdw.c $(CORE_DIR)/drivers/goal92.c \
814				 $(CORE_DIR)/vidhrdw/exerion_vidhrdw.c $(CORE_DIR)/drivers/exerion.c \
815				 $(CORE_DIR)/drivers/fcombat.c \
816				 $(CORE_DIR)/vidhrdw/aeroboto_vidhrdw.c $(CORE_DIR)/drivers/aeroboto.c \
817				 $(CORE_DIR)/vidhrdw/citycon_vidhrdw.c $(CORE_DIR)/drivers/citycon.c \
818				 $(CORE_DIR)/vidhrdw/momoko_vidhrdw.c $(CORE_DIR)/drivers/momoko.c \
819				 $(CORE_DIR)/vidhrdw/argus_vidhrdw.c $(CORE_DIR)/drivers/argus.c \
820				 $(CORE_DIR)/vidhrdw/psychic5_vidhrdw.c $(CORE_DIR)/drivers/psychic5.c \
821				 $(CORE_DIR)/vidhrdw/ginganin_vidhrdw.c $(CORE_DIR)/drivers/ginganin.c \
822				 $(CORE_DIR)/vidhrdw/skyfox_vidhrdw.c $(CORE_DIR)/drivers/skyfox.c \
823				 $(CORE_DIR)/vidhrdw/homerun_vidhrdw.c $(CORE_DIR)/drivers/homerun.c \
824				 $(CORE_DIR)/vidhrdw/cischeat_vidhrdw.c $(CORE_DIR)/drivers/cischeat.c \
825				 $(CORE_DIR)/vidhrdw/tetrisp2_vidhrdw.c $(CORE_DIR)/drivers/tetrisp2.c \
826				 $(CORE_DIR)/vidhrdw/megasys1_vidhrdw.c $(CORE_DIR)/drivers/megasys1.c \
827				 $(CORE_DIR)/vidhrdw/ms32_vidhrdw.c $(CORE_DIR)/drivers/ms32.c \
828				 $(CORE_DIR)/vidhrdw/bigstrkb_vidhrdw.c $(CORE_DIR)/drivers/bigstrkb.c \
829				 $(CORE_DIR)/vidhrdw/rpunch_vidhrdw.c $(CORE_DIR)/drivers/rpunch.c \
830				 $(CORE_DIR)/vidhrdw/tail2nos_vidhrdw.c $(CORE_DIR)/drivers/tail2nos.c \
831				 $(CORE_DIR)/vidhrdw/ojankohs_vidhrdw.c $(CORE_DIR)/drivers/ojankohs.c \
832				 $(CORE_DIR)/vidhrdw/fromance_vidhrdw.c $(CORE_DIR)/drivers/fromance.c $(CORE_DIR)/drivers/pipedrm.c \
833				 $(CORE_DIR)/vidhrdw/aerofgt_vidhrdw.c $(CORE_DIR)/drivers/aerofgt.c \
834				 $(CORE_DIR)/vidhrdw/welltris_vidhrdw.c $(CORE_DIR)/drivers/welltris.c \
835				 $(CORE_DIR)/vidhrdw/f1gp_vidhrdw.c $(CORE_DIR)/drivers/f1gp.c \
836				 $(CORE_DIR)/vidhrdw/taotaido_vidhrdw.c $(CORE_DIR)/drivers/taotaido.c \
837				 $(CORE_DIR)/vidhrdw/crshrace_vidhrdw.c $(CORE_DIR)/drivers/crshrace.c \
838				 $(CORE_DIR)/vidhrdw/gstriker_vidhrdw.c $(CORE_DIR)/drivers/gstriker.c \
839				 $(CORE_DIR)/vidhrdw/suprslam_vidhrdw.c $(CORE_DIR)/drivers/suprslam.c \
840				 $(CORE_DIR)/vidhrdw/fromanc2_vidhrdw.c $(CORE_DIR)/drivers/fromanc2.c \
841				 $(CORE_DIR)/vidhrdw/inufuku_vidhrdw.c $(CORE_DIR)/drivers/inufuku.c \
842				 $(CORE_DIR)/vidhrdw/psikyo_vidhrdw.c $(CORE_DIR)/drivers/psikyo.c \
843				 $(CORE_DIR)/vidhrdw/psikyosh_vidhrdw.c $(CORE_DIR)/drivers/psikyosh.c \
844				 $(CORE_DIR)/vidhrdw/psikyo4_vidhrdw.c $(CORE_DIR)/drivers/psikyo4.c \
845				 $(CORE_DIR)/machine/8254pit.c $(CORE_DIR)/drivers/leland.c $(CORE_DIR)/vidhrdw/leland_vidhrdw.c $(CORE_DIR)/machine/leland_machine.c $(CORE_DIR)/sndhrdw/leland_sndhrdw.c \
846				 $(CORE_DIR)/drivers/ataxx.c \
847				 $(CORE_DIR)/vidhrdw/marineb_vidhrdw.c $(CORE_DIR)/drivers/marineb.c \
848				 $(CORE_DIR)/vidhrdw/funkybee_vidhrdw.c $(CORE_DIR)/drivers/funkybee.c \
849				 $(CORE_DIR)/vidhrdw/zodiack_vidhrdw.c $(CORE_DIR)/drivers/zodiack.c \
850				 $(CORE_DIR)/vidhrdw/espial_vidhrdw.c $(CORE_DIR)/drivers/espial.c \
851				 $(CORE_DIR)/vidhrdw/vastar_vidhrdw.c $(CORE_DIR)/drivers/vastar.c \
852				 $(CORE_DIR)/vidhrdw/xorworld_vidhrdw.c $(CORE_DIR)/drivers/xorworld.c \
853				 $(CORE_DIR)/vidhrdw/splash_vidhrdw.c $(CORE_DIR)/drivers/splash.c \
854				 $(CORE_DIR)/vidhrdw/thoop2_vidhrdw.c $(CORE_DIR)/drivers/thoop2.c \
855				 $(CORE_DIR)/vidhrdw/gaelco_vidhrdw.c $(CORE_DIR)/drivers/gaelco.c \
856				 $(CORE_DIR)/machine/wrally_machine.c $(CORE_DIR)/vidhrdw/wrally_vidhrdw.c $(CORE_DIR)/drivers/wrally.c \
857				 $(CORE_DIR)/vidhrdw/targeth_vidhrdw.c $(CORE_DIR)/drivers/targeth.c \
858				 $(CORE_DIR)/machine/gaelco2_machine.c $(CORE_DIR)/vidhrdw/gaelco2_vidhrdw.c $(CORE_DIR)/drivers/gaelco2.c \
859				 $(CORE_DIR)/vidhrdw/glass_vidhrdw.c $(CORE_DIR)/drivers/glass.c \
860				 $(CORE_DIR)/vidhrdw/airbustr_vidhrdw.c $(CORE_DIR)/drivers/airbustr.c \
861				 $(CORE_DIR)/vidhrdw/djboy_vidhrdw.c $(CORE_DIR)/drivers/djboy.c \
862				 $(CORE_DIR)/vidhrdw/galpanic_vidhrdw.c $(CORE_DIR)/drivers/galpanic.c \
863				 $(CORE_DIR)/vidhrdw/galpani2_vidhrdw.c $(CORE_DIR)/drivers/galpani2.c \
864				 $(CORE_DIR)/drivers/jchan.c \
865				 $(CORE_DIR)/vidhrdw/kaneko16_vidhrdw.c $(CORE_DIR)/drivers/kaneko16.c \
866				 $(CORE_DIR)/vidhrdw/suprnova_vidhrdw.c $(CORE_DIR)/drivers/suprnova.c \
867				 $(CORE_DIR)/machine/pd4990a.c $(CORE_DIR)/machine/neocrypt.c \
868				 $(CORE_DIR)/machine/neogeo_machine.c $(CORE_DIR)/vidhrdw/neogeo_vidhrdw.c $(CORE_DIR)/drivers/neogeo.c \
869				 $(CORE_DIR)/vidhrdw/hanaawas_vidhrdw.c $(CORE_DIR)/drivers/hanaawas.c \
870				 $(CORE_DIR)/vidhrdw/speedatk_vidhrdw.c $(CORE_DIR)/drivers/speedatk.c \
871				 $(CORE_DIR)/vidhrdw/srmp2_vidhrdw.c $(CORE_DIR)/drivers/srmp2.c \
872				 $(CORE_DIR)/vidhrdw/seta_vidhrdw.c $(CORE_DIR)/drivers/seta.c \
873				 $(CORE_DIR)/vidhrdw/seta2_vidhrdw.c $(CORE_DIR)/drivers/seta2.c \
874				 $(CORE_DIR)/vidhrdw/ssv_vidhrdw.c $(CORE_DIR)/drivers/ssv.c \
875				 $(CORE_DIR)/vidhrdw/powerins_vidhrdw.c $(CORE_DIR)/drivers/powerins.c \
876				 $(CORE_DIR)/vidhrdw/ohmygod_vidhrdw.c $(CORE_DIR)/drivers/ohmygod.c \
877				 $(CORE_DIR)/vidhrdw/blmbycar_vidhrdw.c $(CORE_DIR)/drivers/blmbycar.c \
878				 $(CORE_DIR)/vidhrdw/route16_vidhrdw.c $(CORE_DIR)/drivers/route16.c \
879				 $(CORE_DIR)/vidhrdw/ttmahjng_vidhrdw.c $(CORE_DIR)/drivers/ttmahjng.c \
880				 $(CORE_DIR)/vidhrdw/kangaroo_vidhrdw.c $(CORE_DIR)/drivers/kangaroo.c \
881				 $(CORE_DIR)/vidhrdw/arabian_vidhrdw.c $(CORE_DIR)/drivers/arabian.c \
882				 $(CORE_DIR)/vidhrdw/markham_vidhrdw.c $(CORE_DIR)/drivers/markham.c \
883				 $(CORE_DIR)/vidhrdw/strnskil_vidhrdw.c $(CORE_DIR)/drivers/strnskil.c \
884				 $(CORE_DIR)/vidhrdw/ikki_vidhrdw.c $(CORE_DIR)/drivers/ikki.c \
885				 $(CORE_DIR)/drivers/shanghai.c \
886				 $(CORE_DIR)/vidhrdw/shangha3_vidhrdw.c $(CORE_DIR)/drivers/shangha3.c \
887				 $(CORE_DIR)/vidhrdw/goindol_vidhrdw.c $(CORE_DIR)/drivers/goindol.c \
888				 $(CORE_DIR)/vidhrdw/suna8_vidhrdw.c $(CORE_DIR)/drivers/suna8.c \
889				 $(CORE_DIR)/vidhrdw/suna16_vidhrdw.c $(CORE_DIR)/drivers/suna16.c \
890				 $(CORE_DIR)/vidhrdw/gundealr_vidhrdw.c $(CORE_DIR)/drivers/gundealr.c \
891				 $(CORE_DIR)/vidhrdw/dooyong_vidhrdw.c $(CORE_DIR)/drivers/dooyong.c \
892				 $(CORE_DIR)/machine/leprechn_machine.c $(CORE_DIR)/vidhrdw/leprechn_vidhrdw.c $(CORE_DIR)/drivers/leprechn.c \
893				 $(CORE_DIR)/machine/beezer_machine.c $(CORE_DIR)/vidhrdw/beezer_vidhrdw.c $(CORE_DIR)/drivers/beezer.c \
894				 $(CORE_DIR)/vidhrdw/pushman_vidhrdw.c $(CORE_DIR)/drivers/pushman.c \
895				 $(CORE_DIR)/vidhrdw/zerozone_vidhrdw.c $(CORE_DIR)/drivers/zerozone.c \
896				 $(CORE_DIR)/vidhrdw/galspnbl_vidhrdw.c $(CORE_DIR)/drivers/galspnbl.c \
897				 $(CORE_DIR)/vidhrdw/sslam_vidhrdw.c $(CORE_DIR)/drivers/sslam.c \
898				 $(CORE_DIR)/vidhrdw/playmark_vidhrdw.c $(CORE_DIR)/drivers/playmark.c \
899				 $(CORE_DIR)/vidhrdw/thief_vidhrdw.c $(CORE_DIR)/drivers/thief.c \
900				 $(CORE_DIR)/vidhrdw/mrflea_vidhrdw.c $(CORE_DIR)/drivers/mrflea.c \
901				 $(CORE_DIR)/vidhrdw/holeland_vidhrdw.c $(CORE_DIR)/drivers/holeland.c \
902				 $(CORE_DIR)/vidhrdw/speedbal_vidhrdw.c $(CORE_DIR)/drivers/speedbal.c \
903				 $(CORE_DIR)/vidhrdw/sauro_vidhrdw.c $(CORE_DIR)/drivers/sauro.c \
904				 $(CORE_DIR)/vidhrdw/metro_vidhrdw.c $(CORE_DIR)/drivers/metro.c \
905				 $(CORE_DIR)/vidhrdw/hyprduel_vidhrdw.c $(CORE_DIR)/drivers/hyprduel.c \
906				 $(CORE_DIR)/vidhrdw/spcforce_vidhrdw.c $(CORE_DIR)/drivers/spcforce.c \
907				 $(CORE_DIR)/drivers/looping.c \
908				 $(CORE_DIR)/vidhrdw/paradise_vidhrdw.c $(CORE_DIR)/drivers/paradise.c \
909				 $(CORE_DIR)/vidhrdw/yunsung8_vidhrdw.c $(CORE_DIR)/drivers/yunsung8.c \
910				 $(CORE_DIR)/vidhrdw/yunsun16_vidhrdw.c $(CORE_DIR)/drivers/yunsun16.c \
911				 $(CORE_DIR)/vidhrdw/blueprnt_vidhrdw.c $(CORE_DIR)/drivers/blueprnt.c \
912				 $(CORE_DIR)/vidhrdw/fuukifg2_vidhrdw.c $(CORE_DIR)/drivers/fuukifg2.c \
913				 $(CORE_DIR)/vidhrdw/fuukifg3_vidhrdw.c $(CORE_DIR)/drivers/fuukifg3.c \
914				 $(CORE_DIR)/vidhrdw/drgnmst_vidhrdw.c $(CORE_DIR)/drivers/drgnmst.c \
915				 $(CORE_DIR)/vidhrdw/unico_vidhrdw.c $(CORE_DIR)/drivers/unico.c \
916				 $(CORE_DIR)/vidhrdw/silkroad_vidhrdw.c $(CORE_DIR)/drivers/silkroad.c \
917				 $(CORE_DIR)/vidhrdw/afega_vidhrdw.c $(CORE_DIR)/drivers/afega.c \
918				 $(CORE_DIR)/vidhrdw/esd16_vidhrdw.c $(CORE_DIR)/drivers/esd16.c \
919				 $(CORE_DIR)/drivers/royalmah.c \
920				 $(CORE_DIR)/vidhrdw/hnayayoi_vidhrdw.c $(CORE_DIR)/drivers/hnayayoi.c \
921				 $(CORE_DIR)/vidhrdw/dynax_vidhrdw.c $(CORE_DIR)/drivers/dynax.c \
922				 $(CORE_DIR)/drivers/ddenlovr.c \
923				 $(CORE_DIR)/drivers/realbrk.c $(CORE_DIR)/vidhrdw/realbrk_vidhrdw.c \
924				 $(CORE_DIR)/vidhrdw/crtc6845.c \
925				 $(CORE_DIR)/vidhrdw/nyny_vidhrdw.c $(CORE_DIR)/drivers/nyny.c \
926				 $(CORE_DIR)/drivers/r2dtank.c \
927				 $(CORE_DIR)/machine/spiders_machine.c $(CORE_DIR)/vidhrdw/spiders_vidhrdw.c $(CORE_DIR)/drivers/spiders.c \
928				 $(CORE_DIR)/vidhrdw/iqblock_vidhrdw.c $(CORE_DIR)/drivers/iqblock.c \
929				 $(CORE_DIR)/drivers/chindrag.c \
930				 $(CORE_DIR)/drivers/grtwall.c \
931				 $(CORE_DIR)/vidhrdw/pgm_vidhrdw.c $(CORE_DIR)/drivers/pgm.c \
932				 $(CORE_DIR)/machine/pgmprot_machine.c $(CORE_DIR)/machine/pgmcrypt.c \
933				 $(CORE_DIR)/vidhrdw/hitme_vidhrdw.c $(CORE_DIR)/drivers/hitme.c \
934				 $(CORE_DIR)/vidhrdw/starcrus_vidhrdw.c $(CORE_DIR)/drivers/starcrus.c \
935				 $(CORE_DIR)/vidhrdw/battlex_vidhrdw.c $(CORE_DIR)/drivers/battlex.c \
936				 $(CORE_DIR)/vidhrdw/carjmbre_vidhrdw.c $(CORE_DIR)/drivers/carjmbre.c \
937				 $(CORE_DIR)/vidhrdw/popper_vidhrdw.c $(CORE_DIR)/drivers/popper.c \
938				 $(CORE_DIR)/vidhrdw/speedspn_vidhrdw.c $(CORE_DIR)/drivers/speedspn.c \
939				 $(CORE_DIR)/vidhrdw/kickgoal_vidhrdw.c $(CORE_DIR)/drivers/kickgoal.c \
940				 $(CORE_DIR)/vidhrdw/usgames_vidhrdw.c $(CORE_DIR)/drivers/usgames.c \
941				 $(CORE_DIR)/vidhrdw/mermaid_vidhrdw.c $(CORE_DIR)/drivers/mermaid.c \
942				 $(CORE_DIR)/vidhrdw/drmicro_vidhrdw.c $(CORE_DIR)/drivers/drmicro.c \
943				 $(CORE_DIR)/vidhrdw/appoooh_vidhrdw.c $(CORE_DIR)/drivers/appoooh.c \
944				 $(CORE_DIR)/vidhrdw/bankp_vidhrdw.c $(CORE_DIR)/drivers/bankp.c \
945				 $(CORE_DIR)/vidhrdw/mjkjidai_vidhrdw.c $(CORE_DIR)/drivers/mjkjidai.c \
946				 $(CORE_DIR)/vidhrdw/mayumi_vidhrdw.c $(CORE_DIR)/drivers/mayumi.c \
947				 $(CORE_DIR)/vidhrdw/btoads_vidhrdw.c $(CORE_DIR)/drivers/btoads.c \
948				 $(CORE_DIR)/vidhrdw/kinst_vidhrdw.c $(CORE_DIR)/drivers/kinst.c \
949				 $(CORE_DIR)/vidhrdw/freekick_vidhrdw.c $(CORE_DIR)/drivers/freekick.c \
950				 $(CORE_DIR)/drivers/rmhaihai.c \
951				 $(CORE_DIR)/drivers/hanaroku.c \
952				 $(CORE_DIR)/drivers/yumefuda.c \
953				 $(CORE_DIR)/vidhrdw/homedata_vidhrdw.c $(CORE_DIR)/drivers/homedata.c \
954				 $(CORE_DIR)/vidhrdw/artmagic_vidhrdw.c $(CORE_DIR)/drivers/artmagic.c \
955				 $(CORE_DIR)/vidhrdw/shangkid_vidhrdw.c $(CORE_DIR)/drivers/shangkid.c \
956				 $(CORE_DIR)/vidhrdw/astinvad_vidhrdw.c $(CORE_DIR)/sndhrdw/astinvad_sndhrdw.c $(CORE_DIR)/drivers/astinvad.c \
957				 $(CORE_DIR)/vidhrdw/spacefb_vidhrdw.c $(CORE_DIR)/drivers/spacefb.c \
958				 $(CORE_DIR)/drivers/omegrace.c \
959				 $(CORE_DIR)/vidhrdw/dday_vidhrdw.c $(CORE_DIR)/drivers/dday.c \
960				 $(CORE_DIR)/vidhrdw/hexa_vidhrdw.c $(CORE_DIR)/drivers/hexa.c \
961				 $(CORE_DIR)/vidhrdw/redalert_vidhrdw.c $(CORE_DIR)/sndhrdw/redalert_sndhrdw.c $(CORE_DIR)/drivers/redalert.c \
962				 $(CORE_DIR)/machine/stactics_machine.c $(CORE_DIR)/vidhrdw/stactics_vidhrdw.c $(CORE_DIR)/drivers/stactics.c \
963				 $(CORE_DIR)/vidhrdw/kingobox_vidhrdw.c $(CORE_DIR)/drivers/kingobox.c \
964				 $(CORE_DIR)/vidhrdw/ambush_vidhrdw.c $(CORE_DIR)/drivers/ambush.c \
965				 $(CORE_DIR)/drivers/dlair.c \
966				 $(CORE_DIR)/vidhrdw/aztarac_vidhrdw.c $(CORE_DIR)/sndhrdw/aztarac_sndhrdw.c $(CORE_DIR)/drivers/aztarac.c \
967				 $(CORE_DIR)/vidhrdw/mole_vidhrdw.c $(CORE_DIR)/drivers/mole.c \
968				 $(CORE_DIR)/vidhrdw/gotya_vidhrdw.c $(CORE_DIR)/sndhrdw/gotya_sndhrdw.c $(CORE_DIR)/drivers/gotya.c \
969				 $(CORE_DIR)/vidhrdw/mrjong_vidhrdw.c $(CORE_DIR)/drivers/mrjong.c \
970				 $(CORE_DIR)/vidhrdw/polyplay_vidhrdw.c $(CORE_DIR)/sndhrdw/polyplay_sndhrdw.c $(CORE_DIR)/drivers/polyplay.c \
971				 $(CORE_DIR)/vidhrdw/amspdwy_vidhrdw.c $(CORE_DIR)/drivers/amspdwy.c \
972				 $(CORE_DIR)/vidhrdw/othldrby_vidhrdw.c $(CORE_DIR)/drivers/othldrby.c \
973				 $(CORE_DIR)/vidhrdw/mosaic_vidhrdw.c $(CORE_DIR)/drivers/mosaic.c \
974				 $(CORE_DIR)/drivers/spdbuggy.c \
975				 $(CORE_DIR)/vidhrdw/sprcros2_vidhrdw.c $(CORE_DIR)/drivers/sprcros2.c \
976				 $(CORE_DIR)/vidhrdw/mugsmash_vidhrdw.c $(CORE_DIR)/drivers/mugsmash.c \
977				 $(CORE_DIR)/vidhrdw/stlforce_vidhrdw.c $(CORE_DIR)/drivers/stlforce.c \
978				 $(CORE_DIR)/vidhrdw/gcpinbal_vidhrdw.c $(CORE_DIR)/drivers/gcpinbal.c \
979				 $(CORE_DIR)/vidhrdw/aquarium_vidhrdw.c $(CORE_DIR)/drivers/aquarium.c \
980				 $(CORE_DIR)/vidhrdw/policetr_vidhrdw.c $(CORE_DIR)/drivers/policetr.c \
981				 $(CORE_DIR)/vidhrdw/pass_vidhrdw.c $(CORE_DIR)/drivers/pass.c \
982				 $(CORE_DIR)/vidhrdw/news_vidhrdw.c $(CORE_DIR)/drivers/news.c \
983				 $(CORE_DIR)/vidhrdw/taxidrvr_vidhrdw.c $(CORE_DIR)/drivers/taxidrvr.c \
984				 $(CORE_DIR)/vidhrdw/xyonix_vidhrdw.c $(CORE_DIR)/drivers/xyonix.c \
985				 $(CORE_DIR)/drivers/findout.c \
986				 $(CORE_DIR)/vidhrdw/dribling_vidhrdw.c $(CORE_DIR)/drivers/dribling.c \
987				 $(CORE_DIR)/drivers/ace.c \
988				 $(CORE_DIR)/vidhrdw/clayshoo_vidhrdw.c $(CORE_DIR)/machine/clayshoo_machine.c $(CORE_DIR)/drivers/clayshoo.c \
989				 $(CORE_DIR)/vidhrdw/pirates_vidhrdw.c $(CORE_DIR)/drivers/pirates.c \
990				 $(CORE_DIR)/vidhrdw/fitfight_vidhrdw.c $(CORE_DIR)/drivers/fitfight.c \
991				 $(CORE_DIR)/vidhrdw/flower_vidhrdw.c $(CORE_DIR)/sndhrdw/flower_sndhrdw.c $(CORE_DIR)/drivers/flower.c \
992				 $(CORE_DIR)/vidhrdw/diverboy_vidhrdw.c $(CORE_DIR)/drivers/diverboy.c \
993				 $(CORE_DIR)/vidhrdw/beaminv_vidhrdw.c $(CORE_DIR)/drivers/beaminv.c \
994				 $(CORE_DIR)/vidhrdw/mcatadv_vidhrdw.c $(CORE_DIR)/drivers/mcatadv.c \
995				 $(CORE_DIR)/vidhrdw/4enraya_vidhrdw.c $(CORE_DIR)/drivers/4enraya.c \
996				 $(CORE_DIR)/vidhrdw/oneshot_vidhrdw.c $(CORE_DIR)/drivers/oneshot.c \
997				 $(CORE_DIR)/drivers/tugboat.c \
998				 $(CORE_DIR)/vidhrdw/gotcha_vidhrdw.c $(CORE_DIR)/drivers/gotcha.c \
999				 $(CORE_DIR)/drivers/coolpool.c \
1000				 $(CORE_DIR)/vidhrdw/gumbo_vidhrdw.c $(CORE_DIR)/drivers/gumbo.c \
1001				 $(CORE_DIR)/drivers/statriv2.c \
1002				 $(CORE_DIR)/vidhrdw/tickee_vidhrdw.c $(CORE_DIR)/drivers/tickee.c \
1003				 $(CORE_DIR)/vidhrdw/crgolf_vidhrdw.c $(CORE_DIR)/drivers/crgolf.c \
1004				 $(CORE_DIR)/vidhrdw/truco_vidhrdw.c $(CORE_DIR)/drivers/truco.c \
1005				 $(CORE_DIR)/vidhrdw/thedeep_vidhrdw.c $(CORE_DIR)/drivers/thedeep.c \
1006				 $(CORE_DIR)/vidhrdw/fantland_vidhrdw.c $(CORE_DIR)/drivers/fantland.c \
1007				 $(CORE_DIR)/drivers/wallc.c \
1008				 $(CORE_DIR)/drivers/skyarmy.c \
1009				 $(CORE_DIR)/vidhrdw/lethalj_vidhrdw.c $(CORE_DIR)/drivers/lethalj.c \
1010				 $(CORE_DIR)/vidhrdw/sbugger_vidhrdw.c $(CORE_DIR)/drivers/sbugger.c \
1011				 $(CORE_DIR)/vidhrdw/portrait_vidhrdw.c $(CORE_DIR)/drivers/portrait.c \
1012				 $(CORE_DIR)/drivers/enigma2.c \
1013				 $(CORE_DIR)/drivers/ltcasino.c \
1014				 $(CORE_DIR)/drivers/vamphalf.c \
1015				 $(CORE_DIR)/drivers/strvmstr.c \
1016				 $(CORE_DIR)/vidhrdw/dorachan_vidhrdw.c $(CORE_DIR)/drivers/dorachan.c \
1017				 $(CORE_DIR)/vidhrdw/ladyfrog_vidhrdw.c $(CORE_DIR)/drivers/ladyfrog.c \
1018				 $(CORE_DIR)/drivers/rabbit.c \
1019				 $(CORE_DIR)/drivers/malzak.c $(CORE_DIR)/vidhrdw/malzak_vidhrdw.c \
1020				 $(CORE_DIR)/drivers/supertnk.c \
1021				 $(CORE_DIR)/drivers/crospang.c \
1022				 $(CORE_DIR)/drivers/funybubl.c
1023
1024
1025# List of CPU core (and, for a debug build, disassembler) object files
1026#
1027CPU=$(strip $(findstring ADSP2100@,$(CPUS)))
1028ifneq ($(CPU),)
1029HAS_ADSP2100 = 1
1030CPUDEFS += -DHAS_ADSP2100=1
1031else
1032CPUDEFS += -DHAS_ADSP2100=0
1033endif
1034
1035CPU=$(strip $(findstring ADSP2101@,$(CPUS)))
1036ifneq ($(CPU),)
1037CPUDEFS += -DHAS_ADSP2101=1
1038HAS_ADSP2100 = 1
1039else
1040CPUDEFS += -DHAS_ADSP2101=0
1041endif
1042
1043
1044CPU=$(strip $(findstring ADSP2104@,$(CPUS)))
1045ifneq ($(CPU),)
1046CPUDEFS += -DHAS_ADSP2104=1
1047HAS_ADSP2100 = 1
1048else
1049CPUDEFS += -DHAS_ADSP2104=0
1050endif
1051
1052CPU=$(strip $(findstring ADSP2105@,$(CPUS)))
1053ifneq ($(CPU),)
1054CPUDEFS += -DHAS_ADSP2105=1
1055HAS_ADSP2100 = 1
1056else
1057CPUDEFS += -DHAS_ADSP2105=0
1058endif
1059
1060CPU=$(strip $(findstring ADSP2115@,$(CPUS)))
1061ifneq ($(CPU),)
1062CPUDEFS += -DHAS_ADSP2115=1
1063HAS_ADSP2100 = 1
1064else
1065CPUDEFS += -DHAS_ADSP2115=0
1066endif
1067
1068CPU=$(strip $(findstring Z80@,$(CPUS)))
1069ifneq ($(CPU),)
1070CPUDEFS += -DHAS_Z80=1
1071HAS_Z80 = 1
1072else
1073CPUDEFS += -DHAS_Z80=0
1074endif
1075
1076ifeq ($(HAS_Z80),1)
1077SOURCES_C += $(CORE_DIR)/cpu/z80/z80.c
1078ifeq ($(DEBUGGER),1)
1079SOURCES_C += $(CORE_DIR)/cpu/z80/z80dasm.c
1080endif
1081endif
1082
1083ifeq ($(HAS_ADSP2100),1)
1084SOURCES_C += $(CORE_DIR)/cpu/adsp2100/adsp2100.c
1085ifeq ($(DEBUGGER),1)
1086SOURCES_C += $(CORE_DIR)/cpu/adsp2100/2100dasm.c
1087endif
1088endif
1089
1090CPU=$(strip $(findstring Z180@,$(CPUS)))
1091ifneq ($(CPU),)
1092CPUDEFS += -DHAS_Z180=1
1093SOURCES_C += $(CORE_DIR)/cpu/z180/z180.c
1094ifeq ($(DEBUGGER),1)
1095SOURCES_C += $(CORE_DIR)/cpu/z180/z180dasm.c
1096endif
1097else
1098CPUDEFS += -DHAS_Z180=0
1099endif
1100
1101CPU=$(strip $(findstring 8080@,$(CPUS)))
1102ifneq ($(CPU),)
1103CPUDEFS += -DHAS_8080=1
1104HAS_8085=1
1105else
1106CPUDEFS += -DHAS_8080=0
1107endif
1108
1109CPU=$(strip $(findstring 8085A@,$(CPUS)))
1110ifneq ($(CPU),)
1111CPUDEFS += -DHAS_8085A=1
1112HAS_8085=1
1113else
1114CPUDEFS += -DHAS_8085A=0
1115endif
1116
1117ifeq ($(HAS_8085),1)
1118SOURCES_C += $(CORE_DIR)/cpu/i8085/i8085.c
1119ifeq ($(DEBUGGER),1)
1120SOURCES_C += $(CORE_DIR)/cpu/i8085/8085dasm.c
1121endif
1122endif
1123
1124CPU=$(strip $(findstring M6502@,$(CPUS)))
1125ifneq ($(CPU),)
1126CPUDEFS += -DHAS_M6502=1
1127HAS_M6502_COMMON=1
1128else
1129CPUDEFS += -DHAS_M6502=0
1130endif
1131
1132CPU=$(strip $(findstring M65C02@,$(CPUS)))
1133ifneq ($(CPU),)
1134CPUDEFS += -DHAS_M65C02=1
1135HAS_M6502_COMMON=1
1136else
1137CPUDEFS += -DHAS_M65C02=0
1138endif
1139
1140CPU=$(strip $(findstring M65SC02@,$(CPUS)))
1141ifneq ($(CPU),)
1142CPUDEFS += -DHAS_M65SC02=1
1143HAS_M6502_COMMON=1
1144else
1145CPUDEFS += -DHAS_M65SC02=0
1146endif
1147
1148CPU=$(strip $(findstring M65CE02@,$(CPUS)))
1149ifneq ($(CPU),)
1150CPUDEFS += -DHAS_M65CE02=1
1151SOURCES_C += $(CORE_DIR)/cpu/m6502/m65ce02.c
1152HAS_M6502_COMMON=1
1153else
1154CPUDEFS += -DHAS_M65CE02=0
1155endif
1156
1157CPU=$(strip $(findstring M6509@,$(CPUS)))
1158ifneq ($(CPU),)
1159CPUDEFS += -DHAS_M6509=1
1160SOURCES_C += $(CORE_DIR)/cpu/m6502/m6509.c
1161HAS_M6502_COMMON=1
1162else
1163CPUDEFS += -DHAS_M6509=0
1164endif
1165
1166CPU=$(strip $(findstring M6510@,$(CPUS)))
1167ifneq ($(CPU),)
1168CPUDEFS += -DHAS_M6510=1
1169HAS_M6502_COMMON=1
1170else
1171CPUDEFS += -DHAS_M6510=0
1172endif
1173
1174CPU=$(strip $(findstring M6510T@,$(CPUS)))
1175ifneq ($(CPU),)
1176CPUDEFS += -DHAS_M6510=1 -DHAS_M6510T=1
1177HAS_M6502_COMMON=1
1178else
1179CPUDEFS += -DHAS_M6510T=0
1180endif
1181
1182CPU=$(strip $(findstring M7501@,$(CPUS)))
1183ifneq ($(CPU),)
1184CPUDEFS += -DHAS_M6510=1 -DHAS_M7501=1
1185HAS_M6502_COMMON=1
1186else
1187CPUDEFS += -DHAS_M7501=0
1188endif
1189
1190CPU=$(strip $(findstring M8502@,$(CPUS)))
1191ifneq ($(CPU),)
1192CPUDEFS += -DHAS_M6510=1 -DHAS_M8502=1
1193HAS_M6502_COMMON=1
1194else
1195CPUDEFS += -DHAS_M8502=0
1196endif
1197
1198CPU=$(strip $(findstring N2A03@,$(CPUS)))
1199ifneq ($(CPU),)
1200CPUDEFS += -DHAS_N2A03=1
1201HAS_M6502_COMMON=1
1202else
1203CPUDEFS += -DHAS_N2A03=0
1204endif
1205
1206CPU=$(strip $(findstring DECO16@,$(CPUS)))
1207ifneq ($(CPU),)
1208OBJDIRS += $(CORE_DIR)/cpu/m6502
1209CPUDEFS += -DHAS_DECO16=1
1210HAS_M6502_COMMON=1
1211else
1212CPUDEFS += -DHAS_DECO16=0
1213endif
1214
1215CPU=$(strip $(findstring M4510@,$(CPUS)))
1216ifneq ($(CPU),)
1217OBJDIRS += $(CORE_DIR)/cpu/m6502
1218CPUDEFS += -DHAS_M4510=1
1219SOURCES_C += $(CORE_DIR)/cpu/m6502/m4510.c
1220HAS_M6502_COMMON=1
1221else
1222CPUDEFS += -DHAS_M4510=0
1223endif
1224
1225ifeq ($(HAS_M6502_COMMON),1)
1226SOURCES_C += $(CORE_DIR)/cpu/m6502/m6502.c
1227ifeq ($(DEBUGGER),1)
1228SOURCES_C += $(CORE_DIR)/cpu/m6502/6502dasm.c
1229endif
1230endif
1231
1232CPU=$(strip $(findstring H6280@,$(CPUS)))
1233ifneq ($(CPU),)
1234OBJDIRS += $(CORE_DIR)/cpu/h6280
1235CPUDEFS += -DHAS_H6280=1
1236SOURCES_C += $(CORE_DIR)/cpu/h6280/h6280.c
1237ifeq ($(DEBUGGER),1)
1238SOURCES_C += $(CORE_DIR)/cpu/h6280/6280dasm.c
1239endif
1240else
1241CPUDEFS += -DHAS_H6280=0
1242endif
1243
1244CPU=$(strip $(findstring I86@,$(CPUS)))
1245ifneq ($(CPU),)
1246OBJDIRS += $(CORE_DIR)/cpu/i86
1247CPUDEFS += -DHAS_I86=1
1248HAS_I86=1
1249else
1250CPUDEFS += -DHAS_I86=0
1251endif
1252
1253CPU=$(strip $(findstring I88@,$(CPUS)))
1254ifneq ($(CPU),)
1255OBJDIRS += $(CORE_DIR)/cpu/i86
1256CPUDEFS += -DHAS_I88=1
1257HAS_I86=1
1258else
1259CPUDEFS += -DHAS_I88=0
1260endif
1261
1262CPU=$(strip $(findstring I186@,$(CPUS)))
1263ifneq ($(CPU),)
1264OBJDIRS += $(CORE_DIR)/cpu/i86
1265CPUDEFS += -DHAS_I186=1
1266HAS_I86=1
1267else
1268CPUDEFS += -DHAS_I186=0
1269endif
1270
1271CPU=$(strip $(findstring I188@,$(CPUS)))
1272ifneq ($(CPU),)
1273OBJDIRS += $(CORE_DIR)/cpu/i86
1274CPUDEFS += -DHAS_I188=1
1275HAS_I86=1
1276else
1277CPUDEFS += -DHAS_I188=0
1278endif
1279
1280CPU=$(strip $(findstring I286@,$(CPUS)))
1281ifneq ($(CPU),)
1282OBJDIRS += $(CORE_DIR)/cpu/i86
1283CPUDEFS += -DHAS_I286=1
1284HAS_I86=1
1285SOURCES_C += $(CORE_DIR)/cpu/i86/i286.c
1286else
1287CPUDEFS += -DHAS_I286=0
1288endif
1289
1290ifeq ($(HAS_I86),1)
1291SOURCES_C += $(CORE_DIR)/cpu/i86/i86.c
1292ifeq ($(DEBUGGER),1)
1293SOURCES_C += $(CORE_DIR)/cpu/i86/i86dasm.c
1294endif
1295endif
1296
1297CPU=$(strip $(findstring V20@,$(CPUS)))
1298ifneq ($(CPU),)
1299OBJDIRS += $(CORE_DIR)/cpu/nec
1300CPUDEFS += -DHAS_V20=1
1301HAS_V30=1
1302else
1303CPUDEFS += -DHAS_V20=0
1304endif
1305
1306CPU=$(strip $(findstring V30@,$(CPUS)))
1307ifneq ($(CPU),)
1308OBJDIRS += $(CORE_DIR)/cpu/nec
1309CPUDEFS += -DHAS_V30=1
1310HAS_V30=1
1311else
1312CPUDEFS += -DHAS_V30=0
1313endif
1314
1315CPU=$(strip $(findstring V33@,$(CPUS)))
1316ifneq ($(CPU),)
1317OBJDIRS += $(CORE_DIR)/cpu/nec
1318CPUDEFS += -DHAS_V33=1
1319HAS_V30=1
1320else
1321CPUDEFS += -DHAS_V33=0
1322endif
1323
1324ifeq ($(HAS_V30),1)
1325SOURCES_C += $(CORE_DIR)/cpu/nec/nec.c
1326ifeq ($(DEBUGGER),1)
1327SOURCES_C += $(CORE_DIR)/cpu/nec/necdasm.c
1328endif
1329endif
1330
1331CPU=$(strip $(findstring V60@,$(CPUS)))
1332ifneq ($(CPU),)
1333OBJDIRS += $(CORE_DIR)/cpu/v60
1334CPUDEFS += -DHAS_V60=1
1335HAS_V60=1
1336else
1337CPUDEFS += -DHAS_V60=0
1338endif
1339
1340CPU=$(strip $(findstring V70@,$(CPUS)))
1341ifneq ($(CPU),)
1342OBJDIRS += $(CORE_DIR)/cpu/v60
1343CPUDEFS += -DHAS_V70=1
1344HAS_V60=1
1345else
1346CPUDEFS += -DHAS_V70=0
1347endif
1348
1349ifeq ($(HAS_V60),1)
1350SOURCES_C += $(CORE_DIR)/cpu/v60/v60.c
1351SOURCES_C += $(CORE_DIR)/cpu/v60/v60d.c
1352endif
1353
1354CPU=$(strip $(findstring I8035@,$(CPUS)))
1355ifneq ($(CPU),)
1356OBJDIRS += $(CORE_DIR)/cpu/i8039
1357CPUDEFS += -DHAS_I8035=1
1358HAS_I8039=1
1359else
1360CPUDEFS += -DHAS_I8035=0
1361endif
1362
1363CPU=$(strip $(findstring I8039@,$(CPUS)))
1364ifneq ($(CPU),)
1365OBJDIRS += $(CORE_DIR)/cpu/i8039
1366CPUDEFS += -DHAS_I8039=1
1367HAS_I8039=1
1368else
1369CPUDEFS += -DHAS_I8039=0
1370endif
1371
1372CPU=$(strip $(findstring I8048@,$(CPUS)))
1373ifneq ($(CPU),)
1374OBJDIRS += $(CORE_DIR)/cpu/i8039
1375CPUDEFS += -DHAS_I8048=1
1376HAS_I8039=1
1377else
1378CPUDEFS += -DHAS_I8048=0
1379endif
1380
1381CPU=$(strip $(findstring N7751@,$(CPUS)))
1382ifneq ($(CPU),)
1383OBJDIRS += $(CORE_DIR)/cpu/i8039
1384CPUDEFS += -DHAS_N7751=1
1385else
1386CPUDEFS += -DHAS_N7751=0
1387endif
1388
1389ifeq ($(HAS_I8039),1)
1390SOURCES_C += $(CORE_DIR)/cpu/i8039/i8039.c
1391ifeq ($(DEBUGGER),1)
1392SOURCES_C += $(CORE_DIR)/cpu/i8039/8039dasm.c
1393endif
1394endif
1395
1396CPU=$(strip $(findstring I8X41@,$(CPUS)))
1397ifneq ($(CPU),)
1398OBJDIRS += $(CORE_DIR)/cpu/i8x41
1399CPUDEFS += -DHAS_I8X41=1
1400SOURCES_C += $(CORE_DIR)/cpu/i8x41/i8x41.c
1401ifeq ($(DEBUGGER),1)
1402SOURCES_C += $(CORE_DIR)/cpu/i8x41/8x41dasm.c
1403endif
1404else
1405CPUDEFS += -DHAS_I8X41=0
1406endif
1407
1408CPU=$(strip $(findstring M6800@,$(CPUS)))
1409ifneq ($(CPU),)
1410OBJDIRS += $(CORE_DIR)/cpu/m6800
1411CPUDEFS += -DHAS_M6800=1
1412HAS_M6800COMMON=1
1413else
1414CPUDEFS += -DHAS_M6800=0
1415endif
1416
1417CPU=$(strip $(findstring M6801@,$(CPUS)))
1418ifneq ($(CPU),)
1419OBJDIRS += $(CORE_DIR)/cpu/m6800
1420CPUDEFS += -DHAS_M6801=1
1421HAS_M6800COMMON=1
1422else
1423CPUDEFS += -DHAS_M6801=0
1424endif
1425
1426CPU=$(strip $(findstring M6802@,$(CPUS)))
1427ifneq ($(CPU),)
1428OBJDIRS += $(CORE_DIR)/cpu/m6800
1429CPUDEFS += -DHAS_M6802=1
1430HAS_M6800COMMON=1
1431else
1432CPUDEFS += -DHAS_M6802=0
1433endif
1434
1435CPU=$(strip $(findstring M6803@,$(CPUS)))
1436ifneq ($(CPU),)
1437OBJDIRS += $(CORE_DIR)/cpu/m6800
1438CPUDEFS += -DHAS_M6803=1
1439HAS_M6800COMMON=1
1440else
1441CPUDEFS += -DHAS_M6803=0
1442endif
1443
1444
1445CPU=$(strip $(findstring M6808@,$(CPUS)))
1446ifneq ($(CPU),)
1447OBJDIRS += $(CORE_DIR)/cpu/m6800
1448CPUDEFS += -DHAS_M6808=1
1449HAS_M6800COMMON=1
1450else
1451CPUDEFS += -DHAS_M6808=0
1452endif
1453
1454CPU=$(strip $(findstring HD63701@,$(CPUS)))
1455ifneq ($(CPU),)
1456OBJDIRS += $(CORE_DIR)/cpu/m6800
1457CPUDEFS += -DHAS_HD63701=1
1458HAS_M6800COMMON=1
1459else
1460CPUDEFS += -DHAS_HD63701=0
1461endif
1462
1463CPU=$(strip $(findstring NSC8105@,$(CPUS)))
1464ifneq ($(CPU),)
1465OBJDIRS += $(CORE_DIR)/cpu/m6800
1466CPUDEFS += -DHAS_NSC8105=1
1467HAS_M6800COMMON=1
1468else
1469CPUDEFS += -DHAS_NSC8105=0
1470endif
1471
1472ifeq ($(HAS_M6800COMMON),1)
1473SOURCES_C += $(CORE_DIR)/cpu/m6800/m6800.c
1474ifeq ($(DEBUGGER),1)
1475SOURCES_C += $(CORE_DIR)/cpu/m6800/6800dasm.c
1476endif
1477endif
1478
1479CPU=$(strip $(findstring M6805@,$(CPUS)))
1480ifneq ($(CPU),)
1481OBJDIRS += $(CORE_DIR)/cpu/m6805
1482CPUDEFS += -DHAS_M6805=1
1483HAS_M6805=1
1484else
1485CPUDEFS += -DHAS_M6805=0
1486endif
1487
1488CPU=$(strip $(findstring M68705@,$(CPUS)))
1489ifneq ($(CPU),)
1490OBJDIRS += $(CORE_DIR)/cpu/m6805
1491CPUDEFS += -DHAS_M68705=1
1492HAS_M6805=1
1493else
1494CPUDEFS += -DHAS_M68705=0
1495endif
1496
1497CPU=$(strip $(findstring HD63705@,$(CPUS)))
1498ifneq ($(CPU),)
1499OBJDIRS += $(CORE_DIR)/cpu/m6805
1500CPUDEFS += -DHAS_HD63705=1
1501HAS_M6805=1
1502else
1503CPUDEFS += -DHAS_HD63705=0
1504endif
1505
1506ifeq ($(HAS_M6805),1)
1507SOURCES_C += $(CORE_DIR)/cpu/m6805/m6805.c
1508ifeq ($(DEBUGGER),1)
1509SOURCES_C += $(CORE_DIR)/cpu/m6805/6805dasm.c
1510endif
1511endif
1512
1513CPU=$(strip $(findstring HD6309@,$(CPUS)))
1514ifneq ($(CPU),)
1515OBJDIRS += $(CORE_DIR)/cpu/hd6309
1516CPUDEFS += -DHAS_HD6309=1
1517SOURCES_C += $(CORE_DIR)/cpu/hd6309/hd6309.c
1518ifeq ($(DEBUGGER),1)
1519SOURCES_C += $(CORE_DIR)/cpu/hd6309/6309dasm.c
1520endif
1521else
1522CPUDEFS += -DHAS_HD6309=0
1523endif
1524
1525CPU=$(strip $(findstring M6809@,$(CPUS)))
1526ifneq ($(CPU),)
1527OBJDIRS += $(CORE_DIR)/cpu/m6809
1528CPUDEFS += -DHAS_M6809=1
1529SOURCES_C += $(CORE_DIR)/cpu/m6809/m6809.c
1530ifeq ($(DEBUGGER),1)
1531SOURCES_C += $(CORE_DIR)/cpu/m6809/6809dasm.c
1532endif
1533else
1534CPUDEFS += -DHAS_M6809=0
1535endif
1536
1537CPU=$(strip $(findstring KONAMI@,$(CPUS)))
1538ifneq ($(CPU),)
1539OBJDIRS += $(CORE_DIR)/cpu/konami
1540CPUDEFS += -DHAS_KONAMI=1
1541SOURCES_C += $(CORE_DIR)/cpu/konami/konami.c
1542ifeq ($(DEBUGGER),1)
1543SOURCES_C += $(CORE_DIR)/cpu/konami/knmidasm.c
1544endif
1545else
1546CPUDEFS += -DHAS_KONAMI=0
1547endif
1548
1549CPU=$(strip $(findstring M68000@,$(CPUS)))
1550ifneq ($(CPU),)
1551OBJDIRS += $(CORE_DIR)/cpu/m68000
1552CPUDEFS += -DHAS_M68000=1
1553ifdef X86_ASM_68000
1554SOURCES_C += $(CORE_DIR)/cpu/m68000/asmintf.c $(CORE_DIR)/cpu/m68000/68000.c
1555ASMDEFS += -DA68K0
1556else
1557HAS_M68KCOMMON=1
1558endif
1559else
1560CPUDEFS += -DHAS_M68000=0
1561endif
1562
1563CPU=$(strip $(findstring M68010@,$(CPUS)))
1564ifneq ($(CPU),)
1565OBJDIRS += $(CORE_DIR)/cpu/m68000
1566CPUDEFS += -DHAS_M68010=1
1567ifdef X86_ASM_68000
1568SOURCES_C += $(CORE_DIR)/cpu/m68000/asmintf.c $(CORE_DIR)/cpu/m68000/68000.c
1569ASMDEFS += -DA68K0
1570$(CORE_DIR)/cpu/m68000/68kem.c: $(CORE_DIR)/cpu/m68000/68kem.asm make68k.c
1571else
1572HAS_M68KCOMMON=1
1573endif
1574else
1575CPUDEFS += -DHAS_M68010=0
1576endif
1577
1578CPU=$(strip $(findstring M68EC020@,$(CPUS)))
1579ifneq ($(CPU),)
1580OBJDIRS += $(CORE_DIR)/cpu/m68000
1581CPUDEFS += -DHAS_M68EC020=1
1582ifdef X86_ASM_68020
1583ASMDEFS += -DA68K2
1584SOURCES_C += $(CORE_DIR)/cpu/m68000/asmintf.c $(CORE_DIR)/cpu/m68000/68020.c
1585ASMDEFS += -DA68KEM
1586$(CORE_DIR)/cpu/m68000/68kem.c: $(CORE_DIR)/cpu/m68000/68kem.asm make68k.c
1587else
1588HAS_M68KCOMMON=1
1589endif
1590else
1591CPUDEFS += -DHAS_M68EC020=0
1592endif
1593
1594
1595CPU=$(strip $(findstring M68020@,$(CPUS)))
1596ifneq ($(CPU),)
1597OBJDIRS += $(CORE_DIR)/cpu/m68000
1598CPUDEFS += -DHAS_M68020=1
1599ifdef X86_ASM_68020
1600ASMDEFS += -DA68K2
1601SOURCES_C += $(CORE_DIR)/cpu/m68000/asmintf.c $(CORE_DIR)/cpu/m68000/68020.c
1602ASMDEFS += -DA68KEM
1603$(CORE_DIR)/cpu/m68000/68kem.c: $(CORE_DIR)/cpu/m68000/68kem.asm make68k.c
1604else
1605HAS_M68KCOMMON=1
1606endif
1607else
1608CPUDEFS += -DHAS_M68020=0
1609endif
1610
1611ifeq ($(HAS_M68KCOMMON),1)
1612SOURCES_C += $(CORE_DIR)/cpu/m68000/m68kops.c $(CORE_DIR)/cpu/m68000/m68kopac.c \
1613				 $(CORE_DIR)/cpu/m68000/m68kopdm.c $(CORE_DIR)/cpu/m68000/m68kopnz.c \
1614				 $(CORE_DIR)/cpu/m68000/m68kcpu.c $(CORE_DIR)/cpu/m68000/m68kmame.c
1615ifeq ($(DEBUGGER),1)
1616SOURCES_C += $(CORE_DIR)/cpu/m68000/m68kdasm.c
1617endif
1618endif
1619
1620CPU=$(strip $(findstring T11@,$(CPUS)))
1621ifneq ($(CPU),)
1622OBJDIRS += $(CORE_DIR)/cpu/t11
1623CPUDEFS += -DHAS_T11=1
1624SOURCES_C += $(CORE_DIR)/cpu/t11/t11.c
1625ifeq ($(DEBUGGER),1)
1626SOURCES_C += $(CORE_DIR)/cpu/t11/t11dasm.c
1627endif
1628else
1629CPUDEFS += -DHAS_T11=0
1630endif
1631
1632CPU=$(strip $(findstring S2650@,$(CPUS)))
1633ifneq ($(CPU),)
1634OBJDIRS += $(CORE_DIR)/cpu/s2650
1635CPUDEFS += -DHAS_S2650=1
1636SOURCES_C += $(CORE_DIR)/cpu/s2650/s2650.c
1637ifeq ($(DEBUGGER),1)
1638SOURCES_C += $(CORE_DIR)/cpu/s2650/2650dasm.c
1639endif
1640else
1641CPUDEFS += -DHAS_S2650=0
1642endif
1643
1644CPU=$(strip $(findstring TMS34010@,$(CPUS)))
1645ifneq ($(CPU),)
1646OBJDIRS += $(CORE_DIR)/cpu/tms34010
1647CPUDEFS += -DHAS_TMS34010=1
1648HAS_TMS=1
1649else
1650CPUDEFS += -DHAS_TMS34010=0
1651endif
1652
1653CPU=$(strip $(findstring TMS34020@,$(CPUS)))
1654ifneq ($(CPU),)
1655OBJDIRS += $(CORE_DIR)/cpu/tms34020
1656CPUDEFS += -DHAS_TMS34020=1
1657HAS_TMS=1
1658else
1659CPUDEFS += -DHAS_TMS34020=0
1660endif
1661
1662ifeq ($(HAS_TMS),1)
1663SOURCES_C += $(CORE_DIR)/cpu/tms34010/tms34010.c $(CORE_DIR)/cpu/tms34010/34010fld.c
1664ifeq ($(DEBUGGER),1)
1665SOURCES_C += $(CORE_DIR)/cpu/tms34010/34010dsm.c
1666endif
1667endif
1668
1669CPU=$(strip $(findstring TMS9900@,$(CPUS)))
1670ifneq ($(CPU),)
1671OBJDIRS += $(CORE_DIR)/cpu/tms9900
1672CPUDEFS += -DHAS_TMS9900=1
1673HAS_TMS9900=1
1674else
1675CPUDEFS += -DHAS_TMS9900=0
1676endif
1677
1678CPU=$(strip $(findstring TMS9940@,$(CPUS)))
1679ifneq ($(CPU),)
1680OBJDIRS += $(CORE_DIR)/cpu/tms9900
1681HAS_TMS9900=1
1682CPUDEFS += -DHAS_TMS9940=1
1683else
1684CPUDEFS += -DHAS_TMS9940=0
1685endif
1686
1687
1688CPU=$(strip $(findstring TMS9980@,$(CPUS)))
1689ifneq ($(CPU),)
1690OBJDIRS += $(CORE_DIR)/cpu/tms9900
1691CPUDEFS += -DHAS_TMS9980=1
1692SOURCES_C += $(CORE_DIR)/cpu/tms9900/tms9980a.c
1693HAS_TMS9900=1
1694else
1695CPUDEFS += -DHAS_TMS9980=0
1696endif
1697
1698CPU=$(strip $(findstring TMS9985@,$(CPUS)))
1699ifneq ($(CPU),)
1700OBJDIRS += $(CORE_DIR)/cpu/tms9900
1701CPUDEFS += -DHAS_TMS9985=1
1702SOURCES_C += $(CORE_DIR)/cpu/tms9900/tms9980a.c
1703HAS_TMS9900=1
1704else
1705CPUDEFS += -DHAS_TMS9985=0
1706endif
1707
1708CPU=$(strip $(findstring TMS9989@,$(CPUS)))
1709ifneq ($(CPU),)
1710OBJDIRS += $(CORE_DIR)/cpu/tms9900
1711CPUDEFS += -DHAS_TMS9989=1
1712SOURCES_C += $(CORE_DIR)/cpu/tms9900/tms9980a.c
1713HAS_TMS9900=1
1714else
1715CPUDEFS += -DHAS_TMS9989=0
1716endif
1717
1718CPU=$(strip $(findstring TMS9995@,$(CPUS)))
1719ifneq ($(CPU),)
1720OBJDIRS += $(CORE_DIR)/cpu/tms9900
1721CPUDEFS += -DHAS_TMS9995=1
1722SOURCES_C += $(CORE_DIR)/cpu/tms9900/tms9995.c
1723HAS_TMS9900=1
1724else
1725CPUDEFS += -DHAS_TMS9995=0
1726endif
1727
1728CPU=$(strip $(findstring TMS99010@,$(CPUS)))
1729ifneq ($(CPU),)
1730OBJDIRS += $(CORE_DIR)/cpu/tms9900
1731CPUDEFS += -DHAS_TI990_10=1
1732SOURCES_C += $(CORE_DIR)/cpu/tms9900/ti990_10.c
1733HAS_TMS9900=1
1734else
1735CPUDEFS += -DHAS_TI990_10=0
1736endif
1737
1738CPU=$(strip $(findstring TMS99105A@,$(CPUS)))
1739ifneq ($(CPU),)
1740OBJDIRS += $(CORE_DIR)/cpu/tms9900
1741CPUDEFS += -DHAS_TMS99105A=1
1742SOURCES_C += $(CORE_DIR)/cpu/tms9900/tms9995.c
1743HAS_TMS9900=1
1744else
1745CPUDEFS += -DHAS_TMS99105A=0
1746endif
1747
1748CPU=$(strip $(findstring TMS99110A@,$(CPUS)))
1749ifneq ($(CPU),)
1750OBJDIRS += $(CORE_DIR)/cpu/tms9900
1751CPUDEFS += -DHAS_TMS99110A=1
1752SOURCES_C += $(CORE_DIR)/cpu/tms9900/tms9995.c
1753HAS_TMS9900=1
1754else
1755CPUDEFS += -DHAS_TMS99110A=0
1756endif
1757
1758ifeq ($(HAS_TMS9900),1)
1759SOURCES_C += $(CORE_DIR)/cpu/tms9900/tms9900.c
1760ifeq ($(DEBUGGER),1)
1761SOURCES_C += $(CORE_DIR)/cpu/tms9900/9900dasm.c
1762endif
1763endif
1764
1765CPU=$(strip $(findstring Z8000@,$(CPUS)))
1766ifneq ($(CPU),)
1767OBJDIRS += $(CORE_DIR)/cpu/z8000
1768CPUDEFS += -DHAS_Z8000=1
1769SOURCES_C += $(CORE_DIR)/cpu/z8000/z8000.c
1770ifeq ($(DEBUGGER),1)
1771SOURCES_C += $(CORE_DIR)/cpu/z8000/8000dasm.c
1772endif
1773else
1774CPUDEFS += -DHAS_Z8000=0
1775endif
1776
1777CPU=$(strip $(findstring TMS32010@,$(CPUS)))
1778ifneq ($(CPU),)
1779OBJDIRS += $(CORE_DIR)/cpu/tms32010
1780CPUDEFS += -DHAS_TMS32010=1
1781SOURCES_C += $(CORE_DIR)/cpu/tms32010/tms32010.c
1782ifeq ($(DEBUGGER),1)
1783SOURCES_C += $(CORE_DIR)/cpu/tms32010/32010dsm.c
1784endif
1785else
1786CPUDEFS += -DHAS_TMS32010=0
1787endif
1788
1789CPU=$(strip $(findstring TMS32025@,$(CPUS)))
1790ifneq ($(CPU),)
1791OBJDIRS += $(CORE_DIR)/cpu/tms32025
1792CPUDEFS += -DHAS_TMS32025=1
1793SOURCES_C += $(CORE_DIR)/cpu/tms32025/tms32025.c
1794ifeq ($(DEBUGGER),1)
1795SOURCES_C += $(CORE_DIR)/cpu/tms32025/32025dsm.c
1796endif
1797else
1798CPUDEFS += -DHAS_TMS32025=0
1799endif
1800
1801CPU=$(strip $(findstring TMS32031@,$(CPUS)))
1802ifneq ($(CPU),)
1803OBJDIRS += $(CORE_DIR)/cpu/tms32031
1804CPUDEFS += -DHAS_TMS32031=1
1805SOURCES_C += $(CORE_DIR)/cpu/tms32031/tms32031.c
1806ifeq ($(DEBUGGER),1)
1807SOURCES_C += $(CORE_DIR)/cpu/tms32031/dis32031.c
1808endif
1809else
1810CPUDEFS += -DHAS_TMS32031=0
1811endif
1812
1813CPU=$(strip $(findstring CCPU@,$(CPUS)))
1814ifneq ($(CPU),)
1815OBJDIRS += $(CORE_DIR)/cpu/ccpu
1816CPUDEFS += -DHAS_CCPU=1
1817SOURCES_C += $(CORE_DIR)/cpu/ccpu/ccpu.c $(CORE_DIR)/vidhrdw/cinemat_vidhrdw.c
1818ifeq ($(DEBUGGER),1)
1819SOURCES_C += $(CORE_DIR)/cpu/ccpu/ccpudasm.c
1820endif
1821else
1822CPUDEFS += -DHAS_CCPU=0
1823endif
1824
1825
1826CPU=$(strip $(findstring PSXCPU@,$(CPUS)))
1827ifneq ($(CPU),)
1828OBJDIRS += $(CORE_DIR)/cpu/mips
1829CPUDEFS += -DHAS_PSXCPU=1
1830SOURCES_C += $(CORE_DIR)/cpu/mips/psx_cpu.c
1831ifeq ($(DEBUGGER),1)
1832SOURCES_C += $(CORE_DIR)/cpu/mips/mipsdasm.c
1833endif
1834else
1835CPUDEFS += -DHAS_PSXCPU=0
1836endif
1837
1838CPU=$(strip $(findstring ASAP@,$(CPUS)))
1839ifneq ($(CPU),)
1840OBJDIRS += $(CORE_DIR)/cpu/asap
1841CPUDEFS += -DHAS_ASAP=1
1842SOURCES_C += $(CORE_DIR)/cpu/asap/asap.c
1843ifeq ($(DEBUGGER),1)
1844SOURCES_C += $(CORE_DIR)/cpu/asap/asapdasm.c
1845endif
1846else
1847CPUDEFS += -DHAS_ASAP=0
1848endif
1849
1850CPU=$(strip $(findstring UPD7810@,$(CPUS)))
1851ifneq ($(CPU),)
1852OBJDIRS += $(CORE_DIR)/cpu/upd7810
1853CPUDEFS += -DHAS_UPD7810=1
1854HAS_UPD7810=1
1855else
1856CPUDEFS += -DHAS_UPD7810=0
1857endif
1858
1859CPU=$(strip $(findstring UPD7807@,$(CPUS)))
1860ifneq ($(CPU),)
1861OBJDIRS += $(CORE_DIR)/cpu/upd7810
1862CPUDEFS += -DHAS_UPD7807=1
1863HAS_UPD7810=1
1864else
1865CPUDEFS += -DHAS_UPD7807=0
1866endif
1867
1868ifeq ($(HAS_UPD7810),1)
1869SOURCES_C += $(CORE_DIR)/cpu/upd7810/upd7810.c
1870ifeq ($(DEBUGGER),1)
1871SOURCES_C += $(CORE_DIR)/cpu/upd7810/7810dasm.c
1872endif
1873endif
1874
1875CPU=$(strip $(findstring ARM@,$(CPUS)))
1876ifneq ($(CPU),)
1877OBJDIRS += $(CORE_DIR)/cpu/arm
1878CPUDEFS += -DHAS_ARM=1
1879SOURCES_C += $(CORE_DIR)/cpu/arm/arm.c
1880ifeq ($(DEBUGGER),1)
1881SOURCES_C += $(CORE_DIR)/cpu/arm/armdasm.c
1882endif
1883else
1884CPUDEFS += -DHAS_ARM=0
1885endif
1886
1887CPU=$(strip $(findstring JAGUAR@,$(CPUS)))
1888ifneq ($(CPU),)
1889OBJDIRS += $(CORE_DIR)/cpu/jaguar
1890CPUDEFS += -DHAS_JAGUAR=1
1891SOURCES_C += $(CORE_DIR)/cpu/jaguar/jaguar.c
1892ifeq ($(DEBUGGER),1)
1893SOURCES_C += $(CORE_DIR)/cpu/jaguar/jagdasm.c
1894endif
1895else
1896CPUDEFS += -DHAS_JAGUAR=0
1897endif
1898
1899CPU=$(strip $(findstring R3000@,$(CPUS)))
1900ifneq ($(CPU),)
1901OBJDIRS += $(CORE_DIR)/cpu/r3000
1902CPUDEFS += -DHAS_R3000=1
1903SOURCES_C += $(CORE_DIR)/cpu/mips/r3000.c
1904ifeq ($(DEBUGGER),1)
1905SOURCES_C += $(CORE_DIR)/cpu/mips/r3kdasm.c
1906endif
1907else
1908CPUDEFS += -DHAS_R3000=0
1909endif
1910
1911CPU=$(strip $(findstring R4600@,$(CPUS)))
1912ifneq ($(CPU),)
1913OBJDIRS += $(CORE_DIR)/cpu/mips
1914CPUDEFS += -DHAS_R4600=1
1915HAS_MIPS3=1
1916else
1917CPUDEFS += -DHAS_R4600=0
1918endif
1919
1920CPU=$(strip $(findstring R5000@,$(CPUS)))
1921ifneq ($(CPU),)
1922OBJDIRS += $(CORE_DIR)/cpu/mips
1923CPUDEFS += -DHAS_R5000=1
1924else
1925CPUDEFS += -DHAS_R5000=0
1926endif
1927
1928ifeq ($(HAS_MIPS3),1)
1929ifdef X86_MIPS3_DRC
1930SOURCES_C += $(CORE_DIR)/cpu/mips/mips3drc.c
1931else
1932SOURCES_C += $(CORE_DIR)/cpu/mips/mips3.c
1933endif
1934ifeq ($(DEBUGGER),1)
1935SOURCES_C += $(CORE_DIR)/cpu/mips/mips3dsm.c
1936endif
1937endif
1938
1939CPU=$(strip $(findstring SH2@,$(CPUS)))
1940ifneq ($(CPU),)
1941OBJDIRS += $(CORE_DIR)/cpu/sh2
1942CPUDEFS += -DHAS_SH2=1
1943SOURCES_C += $(CORE_DIR)/cpu/sh2/sh2.c
1944ifeq ($(DEBUGGER),1)
1945SOURCES_C += $(CORE_DIR)/cpu/sh2/sh2dasm.c
1946endif
1947else
1948CPUDEFS += -DHAS_SH2=0
1949endif
1950
1951CPU=$(strip $(findstring DSP32C@,$(CPUS)))
1952ifneq ($(CPU),)
1953OBJDIRS += $(CORE_DIR)/cpu/dsp32
1954CPUDEFS += -DHAS_DSP32C=1
1955SOURCES_C += $(CORE_DIR)/cpu/dsp32/dsp32.c
1956ifeq ($(DEBUGGER),1)
1957SOURCES_C += $(CORE_DIR)/cpu/dsp32/dsp32dis.c
1958endif
1959else
1960CPUDEFS += -DHAS_DSP32C=0
1961endif
1962
1963CPU=$(strip $(findstring PIC16C54@,$(CPUS)))
1964ifneq ($(CPU),)
1965OBJDIRS += $(CORE_DIR)/cpu/pic16c5x
1966CPUDEFS += -DHAS_PIC16C54=1
1967HAS_PIC16C58=1
1968else
1969CPUDEFS += -DHAS_PIC16C54=0
1970endif
1971
1972CPU=$(strip $(findstring PIC16C55@,$(CPUS)))
1973ifneq ($(CPU),)
1974OBJDIRS += $(CORE_DIR)/cpu/pic16c5x
1975CPUDEFS += -DHAS_PIC16C55=1
1976HAS_PIC16C58=1
1977else
1978CPUDEFS += -DHAS_PIC16C55=0
1979endif
1980
1981CPU=$(strip $(findstring PIC16C56@,$(CPUS)))
1982ifneq ($(CPU),)
1983OBJDIRS += $(CORE_DIR)/cpu/pic16c5x
1984CPUDEFS += -DHAS_PIC16C56=1
1985HAS_PIC16C58=1
1986else
1987CPUDEFS += -DHAS_PIC16C56=0
1988endif
1989
1990CPU=$(strip $(findstring PIC16C57@,$(CPUS)))
1991ifneq ($(CPU),)
1992OBJDIRS += $(CORE_DIR)/cpu/pic16c5x
1993CPUDEFS += -DHAS_PIC16C57=1
1994HAS_PIC16C58=1
1995else
1996CPUDEFS += -DHAS_PIC16C57=0
1997endif
1998
1999CPU=$(strip $(findstring PIC16C58@,$(CPUS)))
2000ifneq ($(CPU),)
2001OBJDIRS += $(CORE_DIR)/cpu/pic16c5x
2002CPUDEFS += -DHAS_PIC16C58=1
2003HAS_PIC16C58=1
2004else
2005CPUDEFS += -DHAS_PIC16C58=0
2006endif
2007
2008ifeq ($(HAS_PIC16C58),1)
2009SOURCES_C += $(CORE_DIR)/cpu/pic16c5x/pic16c5x.c
2010ifeq ($(DEBUGGER),1)
2011SOURCES_C += $(CORE_DIR)/cpu/pic16c5x/16c5xdsm.c
2012endif
2013endif
2014
2015CPU=$(strip $(findstring G65816@,$(CPUS)))
2016ifneq ($(CPU),)
2017G6D = cpu/g65816
2018OBJDIRS += $(CORE_DIR)/$(G6D)
2019CPUDEFS += -DHAS_G65816=1
2020SOURCES_C += $(CORE_DIR)/$(G6D)/g65816.c
2021SOURCES_C += $(CORE_DIR)/$(G6D)/g65816o0.c
2022SOURCES_C += $(CORE_DIR)/$(G6D)/g65816o1.c
2023SOURCES_C += $(CORE_DIR)/$(G6D)/g65816o2.c
2024SOURCES_C += $(CORE_DIR)/$(G6D)/g65816o3.c
2025SOURCES_C += $(CORE_DIR)/$(G6D)/g65816o4.c
2026SOURCES_C += $(CORE_DIR)/$(G6D)/g65816ds.c
2027else
2028CPUDEFS += -DHAS_G65816=0
2029endif
2030
2031CPU=$(strip $(findstring SPC700@,$(CPUS)))
2032ifneq ($(CPU),)
2033SPCD = cpu/spc700
2034CPUDEFS += -DHAS_SPC700=1
2035SOURCES_C += $(CORE_DIR)/$(SPCD)/spc700.c
2036SOURCES_C += $(CORE_DIR)/$(SPCD)/spc700ds.c
2037else
2038CPUDEFS += -DHAS_SPC700=0
2039endif
2040
2041CPU=$(strip $(findstring E132XS@,$(CPUS)))
2042ifneq ($(CPU),)
2043CPUDEFS += -DHAS_E132XS=1
2044SOURCES_C += $(CORE_DIR)/cpu/e132xs/e132xs.c
2045ifeq ($(DEBUGGER),1)
2046SOURCES_C += $(CORE_DIR)/cpu/e132xs/32xsdasm.c
2047endif
2048else
2049CPUDEFS += -DHAS_E132XS=0
2050endif
2051
2052SOUND=$(strip $(findstring CUSTOM@,$(SOUNDS)))
2053ifneq ($(SOUND),)
2054SOUNDDEFS += -DHAS_CUSTOM=1
2055else
2056SOUNDDEFS += -DHAS_CUSTOM=0
2057endif
2058
2059SOUND=$(strip $(findstring SAMPLES@,$(SOUNDS)))
2060ifneq ($(SOUND),)
2061SOUNDDEFS += -DHAS_SAMPLES=1
2062SOURCES_C += $(CORE_DIR)/sound/samples.c
2063else
2064SOUNDDEFS += -DHAS_SAMPLES=0
2065endif
2066
2067SOUND=$(strip $(findstring DAC@,$(SOUNDS)))
2068ifneq ($(SOUND),)
2069SOUNDDEFS += -DHAS_DAC=1
2070SOURCES_C += $(CORE_DIR)/sound/dac.c
2071else
2072SOUNDDEFS += -DHAS_DAC=0
2073endif
2074
2075SOUND=$(strip $(findstring DISCRETE@,$(SOUNDS)))
2076ifneq ($(SOUND),)
2077SOUNDDEFS += -DHAS_DISCRETE=1
2078SOURCES_C += $(CORE_DIR)/sound/discrete.c
2079else
2080SOUNDDEFS += -DHAS_DISCRETE=0
2081endif
2082
2083SOUND=$(strip $(findstring AY8910@,$(SOUNDS)))
2084ifneq ($(SOUND),)
2085SOUNDDEFS += -DHAS_AY8910=1
2086HAS_YMCOMMON = 1
2087else
2088SOUNDDEFS += -DHAS_AY8910=0
2089endif
2090
2091SOUND=$(strip $(findstring YM2203@,$(SOUNDS)))
2092ifneq ($(SOUND),)
2093SOUNDDEFS += -DHAS_YM2203=1
2094SOURCES_C += $(CORE_DIR)/sound/2203intf.c
2095HAS_YMCOMMON=1
2096else
2097SOUNDDEFS += -DHAS_YM2203=0
2098endif
2099
2100SOUND=$(strip $(findstring YM2151@,$(SOUNDS)))
2101ifneq ($(SOUND),)
2102SOUNDDEFS += -DHAS_YM2151=1
2103SOURCES_C += $(CORE_DIR)/sound/2151intf.c $(CORE_DIR)/sound/ym2151.c $(CORE_DIR)/sound/fm.c
2104else
2105SOUNDDEFS += -DHAS_YM2151=0
2106endif
2107
2108SOUND=$(strip $(findstring YM2151_ALT@,$(SOUNDS)))
2109ifneq ($(SOUND),)
2110SOUNDDEFS += -DHAS_YM2151_ALT=1
2111SOURCES_C += $(CORE_DIR)/sound/2151intf.c $(CORE_DIR)/sound/ym2151.c
2112else
2113SOUNDDEFS += -DHAS_YM2151_ALT=0
2114endif
2115
2116SOUND=$(strip $(findstring YM2608@,$(SOUNDS)))
2117ifneq ($(SOUND),)
2118SOUNDDEFS += -DHAS_YM2608=1
2119HAS_YMDELTAT=1
2120SOURCES_C += $(CORE_DIR)/sound/2608intf.c
2121HAS_YMCOMMON = 1
2122else
2123SOUNDDEFS += -DHAS_YM2608=0
2124endif
2125
2126SOUND=$(strip $(findstring YM2610@,$(SOUNDS)))
2127ifneq ($(SOUND),)
2128SOUNDDEFS += -DHAS_YM2610=1
2129HAS_YMDELTAT=1
2130HAS_YM2610INTF=1
2131HAS_YMCOMMON=1
2132else
2133SOUNDDEFS += -DHAS_YM2610=0
2134endif
2135
2136SOUND=$(strip $(findstring YM2610B@,$(SOUNDS)))
2137ifneq ($(SOUND),)
2138SOUNDDEFS += -DHAS_YM2610B=1
2139HAS_YMDELTAT=1
2140HAS_YM2610INTF=1
2141HAS_YMCOMMON=1
2142else
2143SOUNDDEFS += -DHAS_YM2610B=0
2144endif
2145
2146
2147SOUND=$(strip $(findstring YM2612@,$(SOUNDS)))
2148ifneq ($(SOUND),)
2149SOUNDDEFS += -DHAS_YM2612=1
2150HAS_YM2612INTF=1
2151HAS_YMCOMMON=1
2152else
2153SOUNDDEFS += -DHAS_YM2612=0
2154endif
2155
2156
2157SOUND=$(strip $(findstring YM3438@,$(SOUNDS)))
2158ifneq ($(SOUND),)
2159SOUNDDEFS += -DHAS_YM3438=1
2160HAS_YM2612INTF=1
2161HAS_YMCOMMON=1
2162else
2163SOUNDDEFS += -DHAS_YM3438=0
2164endif
2165
2166ifeq ($(HAS_YM2610INTF),1)
2167SOURCES_C += $(CORE_DIR)/sound/2610intf.c
2168endif
2169
2170ifeq ($(HAS_YM2612INTF),1)
2171SOURCES_C += $(CORE_DIR)/sound/2612intf.c
2172endif
2173
2174ifeq ($(HAS_YMCOMMON),1)
2175SOURCES_C += $(CORE_DIR)/sound/ay8910.c $(CORE_DIR)/sound/fm.c
2176endif
2177
2178SOUND=$(strip $(findstring YM2413@,$(SOUNDS)))
2179ifneq ($(SOUND),)
2180SOUNDDEFS += -DHAS_YM2413=1
2181SOURCES_C += $(CORE_DIR)/sound/2413intf.c $(CORE_DIR)/sound/ym2413.c
2182else
2183SOUNDDEFS += -DHAS_YM2413=0
2184endif
2185
2186SOUND=$(strip $(findstring YM3812@,$(SOUNDS)))
2187ifneq ($(SOUND),)
2188SOUNDDEFS += -DHAS_YM3812=1
2189HAS_FMOPL=1
2190HAS_YM3812INTF=1
2191else
2192SOUNDDEFS += -DHAS_YM3812=0
2193endif
2194
2195SOUND=$(strip $(findstring YM3526@,$(SOUNDS)))
2196ifneq ($(SOUND),)
2197SOUNDDEFS += -DHAS_YM3526=1
2198HAS_FMOPL=1
2199HAS_YM3812INTF=1
2200else
2201SOUNDDEFS += -DHAS_YM3526=0
2202endif
2203
2204SOUND=$(strip $(findstring YMZ280B@,$(SOUNDS)))
2205ifneq ($(SOUND),)
2206SOUNDDEFS += -DHAS_YMZ280B=1
2207SOURCES_C += $(CORE_DIR)/sound/ymz280b.c
2208else
2209SOUNDDEFS += -DHAS_YMZ280B=0
2210endif
2211
2212SOUND=$(strip $(findstring Y8950@,$(SOUNDS)))
2213ifneq ($(SOUND),)
2214SOUNDDEFS += -DHAS_Y8950=1
2215HAS_YMDELTAT=1
2216HAS_FMOPL=1
2217HAS_YM3812INTF=1
2218else
2219SOUNDDEFS += -DHAS_Y8950=0
2220endif
2221
2222ifeq ($(HAS_YM3812INTF),1)
2223SOURCES_C += $(CORE_DIR)/sound/3812intf.c
2224endif
2225
2226ifeq ($(HAS_FMOPL),1)
2227SOURCES_C += $(CORE_DIR)/sound/fmopl.c
2228endif
2229
2230ifeq ($(HAS_YMDELTAT),1)
2231SOURCES_C += $(CORE_DIR)/sound/ymdeltat.c
2232endif
2233
2234SOUND=$(strip $(findstring SN76477@,$(SOUNDS)))
2235ifneq ($(SOUND),)
2236SOUNDDEFS += -DHAS_SN76477=1
2237SOURCES_C += $(CORE_DIR)/sound/sn76477.c
2238else
2239SOUNDDEFS += -DHAS_SN76477=0
2240endif
2241
2242SOUND=$(strip $(findstring SN76496@,$(SOUNDS)))
2243ifneq ($(SOUND),)
2244SOUNDDEFS += -DHAS_SN76496=1
2245SOURCES_C += $(CORE_DIR)/sound/sn76496.c
2246else
2247SOUNDDEFS += -DHAS_SN76496=0
2248endif
2249
2250SOUND=$(strip $(findstring POKEY@,$(SOUNDS)))
2251ifneq ($(SOUND),)
2252SOUNDDEFS += -DHAS_POKEY=1
2253SOURCES_C += $(CORE_DIR)/sound/pokey.c
2254else
2255SOUNDDEFS += -DHAS_POKEY=0
2256endif
2257
2258SOUND=$(strip $(findstring TIA@,$(SOUNDS)))
2259ifneq ($(SOUND),)
2260SOUNDDEFS += -DHAS_TIA=1
2261SOURCES_C += $(CORE_DIR)/sound/tiasound.c $(CORE_DIR)/sound/tiaintf.c
2262else
2263SOUNDDEFS += -DHAS_TIA=0
2264endif
2265
2266SOUND=$(strip $(findstring NES@,$(SOUNDS)))
2267ifneq ($(SOUND),)
2268SOUNDDEFS += -DHAS_NES=1
2269ifndef MESS
2270SOURCES_C += $(CORE_DIR)/sound/nes_apu.c
2271else
2272SOURCES_C += $(CORE_DIR)/mess/sound/nes_apu2.c $(CORE_DIR)/mess/sound/nesintf.c
2273endif
2274else
2275SOUNDDEFS += -DHAS_NES=0
2276endif
2277
2278SOUND=$(strip $(findstring ASTROCADE@,$(SOUNDS)))
2279ifneq ($(SOUND),)
2280SOUNDDEFS += -DHAS_ASTROCADE=1
2281SOURCES_C += $(CORE_DIR)/sound/astrocde_snd.c
2282else
2283SOUNDDEFS += -DHAS_ASTROCADE=0
2284endif
2285
2286SOUND=$(strip $(findstring NAMCO@,$(SOUNDS)))
2287ifneq ($(SOUND),)
2288SOUNDDEFS += -DHAS_NAMCO=1
2289SOURCES_C += $(CORE_DIR)/sound/namco.c
2290else
2291SOUNDDEFS += -DHAS_NAMCO=0
2292endif
2293
2294SOUND=$(strip $(findstring NAMCONA@,$(SOUNDS)))
2295ifneq ($(SOUND),)
2296SOUNDDEFS += -DHAS_NAMCONA=1
2297SOURCES_C += $(CORE_DIR)/sound/namcona.c
2298else
2299SOUNDDEFS += -DHAS_NAMCONA=0
2300endif
2301
2302SOUND=$(strip $(findstring TMS36XX@,$(SOUNDS)))
2303ifneq ($(SOUND),)
2304SOUNDDEFS += -DHAS_TMS36XX=1
2305SOURCES_C += $(CORE_DIR)/sound/tms36xx.c
2306else
2307SOUNDDEFS += -DHAS_TMS36XX=0
2308endif
2309
2310SOUND=$(strip $(findstring TMS5110@,$(SOUNDS)))
2311ifneq ($(SOUND),)
2312SOUNDDEFS += -DHAS_TMS5110=1
2313SOURCES_C += $(CORE_DIR)/sound/tms5110.c $(CORE_DIR)/sound/5110intf.c
2314else
2315SOUNDDEFS += -DHAS_TMS5110=0
2316endif
2317
2318SOUND=$(strip $(findstring TMS5220@,$(SOUNDS)))
2319ifneq ($(SOUND),)
2320SOUNDDEFS += -DHAS_TMS5220=1
2321SOURCES_C += $(CORE_DIR)/sound/tms5220.c $(CORE_DIR)/sound/5220intf.c
2322else
2323SOUNDDEFS += -DHAS_TMS5220=0
2324endif
2325
2326SOUND=$(strip $(findstring VLM5030@,$(SOUNDS)))
2327ifneq ($(SOUND),)
2328SOUNDDEFS += -DHAS_VLM5030=1
2329SOURCES_C += $(CORE_DIR)/sound/vlm5030.c
2330else
2331SOUNDDEFS += -DHAS_VLM5030=0
2332endif
2333
2334SOUND=$(strip $(findstring ADPCM@,$(SOUNDS)))
2335ifneq ($(SOUND),)
2336SOUNDDEFS += -DHAS_ADPCM=1
2337HAS_ADPCM=1
2338else
2339SOUNDDEFS += -DHAS_ADPCM=0
2340endif
2341
2342SOUND=$(strip $(findstring OKIM6295@,$(SOUNDS)))
2343ifneq ($(SOUND),)
2344SOUNDDEFS += -DHAS_OKIM6295=1
2345HAS_ADPCM=1
2346else
2347SOUNDDEFS += -DHAS_OKIM6295=0
2348endif
2349
2350ifeq ($(HAS_ADPCM),1)
2351SOURCES_C += $(CORE_DIR)/sound/adpcm.c
2352endif
2353
2354SOUND=$(strip $(findstring MSM5205@,$(SOUNDS)))
2355ifneq ($(SOUND),)
2356SOUNDDEFS += -DHAS_MSM5205=1
2357SOURCES_C += $(CORE_DIR)/sound/msm5205.c
2358else
2359SOUNDDEFS += -DHAS_MSM5205=0
2360endif
2361
2362SOUND=$(strip $(findstring MSM5232@,$(SOUNDS)))
2363ifneq ($(SOUND),)
2364SOUNDDEFS += -DHAS_MSM5232=1
2365SOURCES_C += $(CORE_DIR)/sound/msm5232.c
2366else
2367SOUNDDEFS += -DHAS_MSM5232=0
2368endif
2369
2370SOUND=$(strip $(findstring UPD7759@,$(SOUNDS)))
2371ifneq ($(SOUND),)
2372SOUNDDEFS += -DHAS_UPD7759=1
2373SOURCES_C += $(CORE_DIR)/sound/upd7759.c
2374else
2375SOUNDDEFS += -DHAS_UPD7759=0
2376endif
2377
2378SOUND=$(strip $(findstring HC55516@,$(SOUNDS)))
2379ifneq ($(SOUND),)
2380SOUNDDEFS += -DHAS_HC55516=1
2381SOURCES_C += $(CORE_DIR)/sound/hc55516.c
2382else
2383SOUNDDEFS += -DHAS_HC55516=0
2384endif
2385
2386SOUND=$(strip $(findstring K005289@,$(SOUNDS)))
2387ifneq ($(SOUND),)
2388SOUNDDEFS += -DHAS_K005289=1
2389SOURCES_C += $(CORE_DIR)/sound/k005289.c
2390else
2391SOUNDDEFS += -DHAS_K005289=0
2392endif
2393
2394SOUND=$(strip $(findstring K007232@,$(SOUNDS)))
2395ifneq ($(SOUND),)
2396SOUNDDEFS += -DHAS_K007232=1
2397SOURCES_C += $(CORE_DIR)/sound/k007232.c
2398else
2399SOUNDDEFS += -DHAS_K007232=0
2400endif
2401
2402SOUND=$(strip $(findstring K051649@,$(SOUNDS)))
2403ifneq ($(SOUND),)
2404SOUNDDEFS += -DHAS_K051649=1
2405SOURCES_C += $(CORE_DIR)/sound/k051649.c
2406else
2407SOUNDDEFS += -DHAS_K051649=0
2408endif
2409
2410SOUND=$(strip $(findstring K053260@,$(SOUNDS)))
2411ifneq ($(SOUND),)
2412SOUNDDEFS += -DHAS_K053260=1
2413SOURCES_C += $(CORE_DIR)/sound/k053260.c
2414else
2415SOUNDDEFS += -DHAS_K053260=0
2416endif
2417
2418SOUND=$(strip $(findstring K054539@,$(SOUNDS)))
2419ifneq ($(SOUND),)
2420SOUNDDEFS += -DHAS_K054539=1
2421SOURCES_C += $(CORE_DIR)/sound/k054539.c
2422else
2423SOUNDDEFS += -DHAS_K054539=0
2424endif
2425
2426SOUND=$(strip $(findstring SEGAPCM@,$(SOUNDS)))
2427ifneq ($(SOUND),)
2428SOUNDDEFS += -DHAS_SEGAPCM=1
2429SOURCES_C += $(CORE_DIR)/sound/segapcm.c
2430else
2431SOUNDDEFS += -DHAS_SEGAPCM=0
2432endif
2433
2434SOUND=$(strip $(findstring RF5C68@,$(SOUNDS)))
2435ifneq ($(SOUND),)
2436SOUNDDEFS += -DHAS_RF5C68=1
2437SOURCES_C += $(CORE_DIR)/sound/rf5c68.c
2438else
2439SOUNDDEFS += -DHAS_RF5C68=0
2440endif
2441
2442SOUND=$(strip $(findstring CEM3394@,$(SOUNDS)))
2443ifneq ($(SOUND),)
2444SOUNDDEFS += -DHAS_CEM3394=1
2445SOURCES_C += $(CORE_DIR)/sound/cem3394.c
2446else
2447SOUNDDEFS += -DHAS_CEM3394=0
2448endif
2449
2450SOUND=$(strip $(findstring C140@,$(SOUNDS)))
2451ifneq ($(SOUND),)
2452SOUNDDEFS += -DHAS_C140=1
2453SOURCES_C += $(CORE_DIR)/sound/c140.c
2454else
2455SOUNDDEFS += -DHAS_C140=0
2456endif
2457
2458SOUND=$(strip $(findstring QSOUND@,$(SOUNDS)))
2459ifneq ($(SOUND),)
2460SOUNDDEFS += -DHAS_QSOUND=1
2461SOURCES_C += $(CORE_DIR)/sound/qsound.c
2462else
2463SOUNDDEFS += -DHAS_QSOUND=0
2464endif
2465
2466SOUND=$(strip $(findstring SAA1099@,$(SOUNDS)))
2467ifneq ($(SOUND),)
2468SOUNDDEFS += -DHAS_SAA1099=1
2469SOURCES_C += $(CORE_DIR)/sound/saa1099.c
2470else
2471SOUNDDEFS += -DHAS_SAA1099=0
2472endif
2473
2474SOUND=$(strip $(findstring IREMGA20@,$(SOUNDS)))
2475ifneq ($(SOUND),)
2476SOUNDDEFS += -DHAS_IREMGA20=1
2477SOURCES_C += $(CORE_DIR)/sound/iremga20.c
2478else
2479SOUNDDEFS += -DHAS_IREMGA20=0
2480endif
2481
2482SOUND=$(strip $(findstring ES5505@,$(SOUNDS)))
2483ifneq ($(SOUND),)
2484SOUNDDEFS += -DHAS_ES5505=1
2485HAS_ES5505=1
2486else
2487SOUNDDEFS += -DHAS_ES5505=0
2488endif
2489
2490SOUND=$(strip $(findstring ES5506@,$(SOUNDS)))
2491ifneq ($(SOUND),)
2492SOUNDDEFS += -DHAS_ES5506=1
2493HAS_ES5505=1
2494else
2495SOUNDDEFS += -DHAS_ES5506=0
2496endif
2497
2498ifeq ($(HAS_ES5505),1)
2499SOURCES_C += $(CORE_DIR)/sound/es5506.c
2500endif
2501
2502SOUND=$(strip $(findstring BSMT2000@,$(SOUNDS)))
2503ifneq ($(SOUND),)
2504SOUNDDEFS += -DHAS_BSMT2000=1
2505SOURCES_C += $(CORE_DIR)/sound/bsmt2000.c
2506else
2507SOUNDDEFS += -DHAS_BSMT2000=0
2508endif
2509
2510SOUND=$(strip $(findstring YMF262@,$(SOUNDS)))
2511ifneq ($(SOUND),)
2512SOUNDDEFS += -DHAS_YMF262=1
2513SOURCES_C += $(CORE_DIR)/sound/ymf262.c $(CORE_DIR)/sound/262intf.c
2514else
2515SOUNDDEFS += -DHAS_YMF262=0
2516endif
2517
2518SOUND=$(strip $(findstring YMF278B@,$(SOUNDS)))
2519ifneq ($(SOUND),)
2520SOUNDDEFS += -DHAS_YMF278B=1
2521SOURCES_C += $(CORE_DIR)/sound/ymf278b.c
2522else
2523SOUNDDEFS += -DHAS_YMF278B=0
2524endif
2525
2526SOUND=$(strip $(findstring GAELCO_CG1V@,$(SOUNDS)))
2527ifneq ($(SOUND),)
2528SOUNDDEFS += -DHAS_GAELCO_CG1V=1
2529HAS_GAELCO_GAE1=1
2530else
2531SOUNDDEFS += -DHAS_GAELCO_CG1V=0
2532endif
2533
2534SOUND=$(strip $(findstring GAELCO_GAE1@,$(SOUNDS)))
2535ifneq ($(SOUND),)
2536SOUNDDEFS += -DHAS_GAELCO_GAE1=1
2537HAS_GAELCO_GAE1=1
2538else
2539SOUNDDEFS += -DHAS_GAELCO_GAE1=0
2540endif
2541
2542ifeq ($(HAS_GAELCO_GAE1),1)
2543SOURCES_C += $(CORE_DIR)/sound/gaelco_snd.c
2544endif
2545
2546SOUND=$(strip $(findstring X1_010@,$(SOUNDS)))
2547ifneq ($(SOUND),)
2548SOUNDDEFS += -DHAS_X1_010=1
2549SOURCES_C += $(CORE_DIR)/sound/x1_010.c
2550else
2551SOUNDDEFS += -DHAS_X1_010=0
2552endif
2553
2554SOUND=$(strip $(findstring MULTIPCM@,$(SOUNDS)))
2555ifneq ($(SOUND),)
2556SOUNDDEFS += -DHAS_MULTIPCM=1
2557SOURCES_C += $(CORE_DIR)/sound/multipcm.c
2558else
2559SOUNDDEFS += -DHAS_MULTIPCM=0
2560endif
2561
2562SOUND=$(strip $(findstring C6280@,$(SOUNDS)))
2563ifneq ($(SOUND),)
2564SOUNDDEFS += -DHAS_C6280=1
2565SOURCES_C += $(CORE_DIR)/sound/c6280.c
2566else
2567SOUNDDEFS += -DHAS_C6280=0
2568endif
2569
2570SOUND=$(strip $(findstring SP0250@,$(SOUNDS)))
2571ifneq ($(SOUND),)
2572SOUNDDEFS += -DHAS_SP0250=1
2573SOURCES_C += $(CORE_DIR)/sound/sp0250.c
2574else
2575SOUNDDEFS += -DHAS_SP0250=0
2576endif
2577
2578SOUND=$(strip $(findstring SCSP@,$(SOUNDS)))
2579ifneq ($(SOUND),)
2580SOUNDDEFS += -DHAS_SCSP=1
2581SOURCES_C += $(CORE_DIR)/sound/scsp.c
2582else
2583SOUNDDEFS += -DHAS_SCSP=0
2584endif
2585
2586SOUND=$(strip $(findstring PSXSPU@,$(SOUNDS)))
2587ifneq ($(SOUND),)
2588SOUNDDEFS += -DHAS_PSXSPU=1
2589SOURCES_C += $(CORE_DIR)/sound/psx.c
2590else
2591SOUNDDEFS += -DHAS_PSXSPU=0
2592endif
2593
2594SOUND=$(strip $(findstring YMF271@,$(SOUNDS)))
2595ifneq ($(SOUND),)
2596SOUNDDEFS += -DHAS_YMF271=1
2597SOURCES_C += $(CORE_DIR)/sound/ymf271.c
2598else
2599SOUNDDEFS += -DHAS_YMF271=0
2600endif
2601
2602SOURCES_C += \
2603	$(CORE_DIR)/lib/mame-chd/chd.c \
2604	$(CORE_DIR)/lib/mame-chd/mame_sha1.c
2605
2606SOURCES_C += \
2607	$(CORE_DIR)/libretro-deps/libFLAC/bitmath.c \
2608	$(CORE_DIR)/libretro-deps/libFLAC/bitreader.c \
2609	$(CORE_DIR)/libretro-deps/libFLAC/bitwriter.c \
2610	$(CORE_DIR)/libretro-deps/libFLAC/cpu.c \
2611	$(CORE_DIR)/libretro-deps/libFLAC/crc.c \
2612	$(CORE_DIR)/libretro-deps/libFLAC/fixed.c \
2613	$(CORE_DIR)/libretro-deps/libFLAC/float.c \
2614	$(CORE_DIR)/libretro-deps/libFLAC/format.c \
2615	$(CORE_DIR)/libretro-deps/libFLAC/lpc.c \
2616	$(CORE_DIR)/libretro-deps/libFLAC/md5.c \
2617	$(CORE_DIR)/libretro-deps/libFLAC/memory.c \
2618	$(CORE_DIR)/libretro-deps/libFLAC/stream_decoder.c \
2619	$(CORE_DIR)/libretro-deps/libFLAC/stream_encoder.c \
2620	$(CORE_DIR)/libretro-deps/libFLAC/stream_encoder_framing.c \
2621	$(CORE_DIR)/libretro-deps/libFLAC/window.c
2622
2623ifeq ($(STATIC_LINKING),1)
2624else
2625SOURCES_C += \
2626	$(LIBRETRO_COMM_DIR)/compat/compat_posix_string.c \
2627	$(LIBRETRO_COMM_DIR)/compat/compat_snprintf.c \
2628	$(LIBRETRO_COMM_DIR)/compat/compat_strcasestr.c \
2629	$(LIBRETRO_COMM_DIR)/compat/compat_strl.c \
2630	$(LIBRETRO_COMM_DIR)/compat/fopen_utf8.c \
2631	$(LIBRETRO_COMM_DIR)/encodings/encoding_utf.c \
2632	$(LIBRETRO_COMM_DIR)/file/file_path.c \
2633	$(LIBRETRO_COMM_DIR)/file/file_path_io.c \
2634	$(LIBRETRO_COMM_DIR)/streams/file_stream.c \
2635	$(LIBRETRO_COMM_DIR)/string/stdstring.c \
2636	$(LIBRETRO_COMM_DIR)/utils/md5.c \
2637	$(LIBRETRO_COMM_DIR)/vfs/vfs_implementation.c \
2638	$(LIBRETRO_COMM_DIR)/time/rtime.c \
2639	$(CORE_DIR)/lib/zlib/adler32.c \
2640	$(CORE_DIR)/lib/zlib/compress.c \
2641	$(CORE_DIR)/lib/zlib/crc32.c \
2642	$(CORE_DIR)/lib/zlib/deflate.c \
2643	$(CORE_DIR)/lib/zlib/gzclose.c \
2644	$(CORE_DIR)/lib/zlib/gzlib.c \
2645	$(CORE_DIR)/lib/zlib/gzread.c \
2646	$(CORE_DIR)/lib/zlib/gzwrite.c \
2647	$(CORE_DIR)/lib/zlib/inffast.c \
2648	$(CORE_DIR)/lib/zlib/inflate.c \
2649	$(CORE_DIR)/lib/zlib/inftrees.c \
2650	$(CORE_DIR)/lib/zlib/ioapi.c \
2651	$(CORE_DIR)/lib/zlib/trees.c \
2652	$(CORE_DIR)/lib/zlib/uncompr.c \
2653	$(CORE_DIR)/lib/zlib/unzip.c \
2654	$(CORE_DIR)/lib/zlib/zutil.c
2655endif
2656
2657ifeq ($(USE_CYCLONE), 1)
2658	CPUDEFS += -DHAS_CYCLONE=1
2659	SOURCES_ASM += $(CORE_DIR)/cpu/m68000_cyclone/cyclone.s
2660	SOURCES_C += $(CORE_DIR)/cpu/m68000_cyclone/c68000.c
2661endif
2662
2663ifeq ($(USE_DRZ80), 1)
2664	CPUDEFS += -DHAS_DRZ80=1
2665	SOURCES_ASM += $(CORE_DIR)/cpu/z80_drz80/drz80.s
2666	SOURCES_C += $(CORE_DIR)/cpu/z80_drz80/drz80_z80.c
2667endif
2668