Debian Codegraph @

sfc/Makefile

raw
1 sfc_objects := sfc-interface sfc-system sfc-controller
2 sfc_objects += sfc-cartridge sfc-cheat
3 sfc_objects += sfc-memory sfc-cpu sfc-smp sfc-dsp sfc-ppu
4 sfc_objects += sfc-satellaviewbase
5 sfc_objects += sfc-icd2 sfc-bsx sfc-nss sfc-event
6 sfc_objects += sfc-sa1 sfc-superfx
7 sfc_objects += sfc-armdsp sfc-hitachidsp sfc-necdsp
8 sfc_objects += sfc-epsonrtc sfc-sharprtc
9 sfc_objects += sfc-spc7110 sfc-sdd1 sfc-obc1
10 sfc_objects += sfc-hsu1 sfc-msu1
11 sfc_objects += sfc-satellaviewcart sfc-sufamiturbo
12 sfc_objects += sfc-hledsp1 sfc-hledsp2 sfc-hledsp3 sfc-hledsp4
13 sfc_objects += sfc-hlecx4 sfc-hlest0010
14 sfc_objects += sfc-sgbexternal
15
16 ifeq ($(profile),accuracy)
17 profflags := -DPROFILE_ACCURACY
18 sfccpu := $(sfc)/cpu
19 sfcsmp := $(sfc)/smp
20 sfcdsp := $(sfc)/dsp
21 sfcppu := $(sfc)/ppu
22 else ifeq ($(profile),balanced)
23 profflags := -DPROFILE_BALANCED
24 sfccpu := $(sfc)/cpu
25 sfcsmp := $(sfc)/smp
26 sfcdsp := $(sfc)/alt/dsp
27 sfcppu := $(sfc)/alt/ppu-balanced
28 else ifeq ($(profile),performance)
29 profflags := -DPROFILE_PERFORMANCE
30 sfccpu := $(sfc)/alt/cpu
31 sfcsmp := $(sfc)/alt/smp
32 sfcdsp := $(sfc)/alt/dsp
33 sfcppu := $(sfc)/alt/ppu-performance
34 else
35 $(error unknown profile.)
36 endif
37
38 ifeq ($(sfc_lagfix),1)
39 flags += -DSFC_LAGFIX
40 endif
41
42 obj/sfc-interface-$(profile).o: $(sfc)/interface/interface.cpp $(call rwildcard,$(sfc)/interface)
43 obj/sfc-system-$(profile).o: $(sfc)/system/system.cpp $(call rwildcard,$(sfc)/system/)
44 obj/sfc-controller-$(profile).o: $(sfc)/controller/controller.cpp $(call rwildcard,$(sfc)/controller/)
45 obj/sfc-cartridge-$(profile).o: $(sfc)/cartridge/cartridge.cpp $(sfc)/cartridge/*
46 obj/sfc-cheat-$(profile).o: $(sfc)/cheat/cheat.cpp $(sfc)/cheat/*
47 obj/sfc-memory-$(profile).o: $(sfc)/memory/memory.cpp $(call rwildcard,$(sfc)/memory/)
48 obj/sfc-cpu-$(profile).o: $(sfccpu)/cpu.cpp $(call rwildcard,$(sfccpu)/)
49 obj/sfc-smp-$(profile).o: $(sfcsmp)/smp.cpp $(call rwildcard,$(sfcsmp)/)
50 obj/sfc-dsp-$(profile).o: $(sfcdsp)/dsp.cpp $(call rwildcard,$(sfcdsp)/)
51 obj/sfc-ppu-$(profile).o: $(sfcppu)/ppu.cpp $(call rwildcard,$(sfcppu)/)
52
53 obj/sfc-satellaviewbase-$(profile).o: $(sfc)/base/satellaview/satellaview.cpp $(call rwildcard,$(sfc)/base/satellaview/)
54
55 obj/sfc-icd2-$(profile).o: $(sfc)/chip/icd2/icd2.cpp $(call rwildcard,$(sfc)/chip/icd2/)
56 obj/sfc-bsx-$(profile).o: $(sfc)/chip/bsx/bsx.cpp $(call rwildcard,$(sfc)/chip/bsx/)
57 obj/sfc-nss-$(profile).o: $(sfc)/chip/nss/nss.cpp $(call rwildcard,$(sfc)/chip/nss/)
58 obj/sfc-event-$(profile).o: $(sfc)/chip/event/event.cpp $(call rwildcard,$(sfc)/chip/event/)
59
60 obj/sfc-sa1-$(profile).o: $(sfc)/chip/sa1/sa1.cpp $(call rwildcard,$(sfc)/chip/sa1/)
61 obj/sfc-superfx-$(profile).o: $(sfc)/chip/superfx/superfx.cpp $(call rwildcard,$(sfc)/chip/superfx/)
62
63 obj/sfc-armdsp-$(profile).o: $(sfc)/chip/armdsp/armdsp.cpp $(call rwildcard,$(sfc)/chip/armdsp/)
64 obj/sfc-hitachidsp-$(profile).o: $(sfc)/chip/hitachidsp/hitachidsp.cpp $(call rwildcard,$(sfc)/chip/hitachidsp/)
65 obj/sfc-necdsp-$(profile).o: $(sfc)/chip/necdsp/necdsp.cpp $(call rwildcard,$(sfc)/chip/necdsp/)
66
67 obj/sfc-epsonrtc-$(profile).o: $(sfc)/chip/epsonrtc/epsonrtc.cpp $(call rwildcard,$(sfc)/chip/epsonrtc/)
68 obj/sfc-sharprtc-$(profile).o: $(sfc)/chip/sharprtc/sharprtc.cpp $(call rwildcard,$(sfc)/chip/sharprtc/)
69
70 obj/sfc-spc7110-$(profile).o: $(sfc)/chip/spc7110/spc7110.cpp $(sfc)/chip/spc7110/*
71 obj/sfc-sdd1-$(profile).o: $(sfc)/chip/sdd1/sdd1.cpp $(sfc)/chip/sdd1/*
72 obj/sfc-obc1-$(profile).o: $(sfc)/chip/obc1/obc1.cpp $(sfc)/chip/obc1/*
73
74 obj/sfc-hsu1-$(profile).o: $(sfc)/chip/hsu1/hsu1.cpp $(sfc)/chip/hsu1/*
75 obj/sfc-msu1-$(profile).o: $(sfc)/chip/msu1/msu1.cpp $(sfc)/chip/msu1/*
76
77 obj/sfc-satellaviewcart-$(profile).o: $(sfc)/slot/satellaview/satellaview.cpp $(call rwildcard,$(sfc)/slot/satellaview/)
78 obj/sfc-sufamiturbo-$(profile).o: $(sfc)/slot/sufamiturbo/sufamiturbo.cpp $(call rwildcard,$(sfc)/slot/sufamiturbo/)
79
80 obj/sfc-hledsp1-$(profile).o: $(sfc)/chip/dsp1/dsp1.cpp $(sfc)/chip/dsp1/*
81 obj/sfc-hledsp2-$(profile).o: $(sfc)/chip/dsp2/dsp2.cpp $(sfc)/chip/dsp2/*
82 obj/sfc-hledsp3-$(profile).o: $(sfc)/chip/dsp3/dsp3.cpp $(sfc)/chip/dsp3/*
83 obj/sfc-hledsp4-$(profile).o: $(sfc)/chip/dsp4/dsp4.cpp $(sfc)/chip/dsp4/*
84
85 obj/sfc-hlecx4-$(profile).o: $(sfc)/chip/cx4/cx4.cpp $(sfc)/chip/cx4/*
86 obj/sfc-hlest0010-$(profile).o: $(sfc)/chip/st0010/st0010.cpp $(sfc)/chip/st0010/*
87
88 obj/sfc-sgbexternal-$(profile).o: $(sfc)/chip/sgb-external/sgb-external.cpp $(sfc)/chip/sgb-external/*