-
Notifications
You must be signed in to change notification settings - Fork 1
/
makefile
129 lines (98 loc) · 3.01 KB
/
makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
# Main Makefile for FB Alpha, execute an appropriate system-specific makefile
export
#
# Declare variables
#
# Make a special build, pass the quoted text as comment (use FORCE_UPDATE declaration below to force recompilation of resources)
# SPECIALBUILD = "This text will appear in the property sheet of the .exe file"
#
# Flags. Uncomment any of these declarations to enable their function.
#
# Inluclude Unicode support
#UNICODE = 1
# Include symbols and other debug information in the executable
#SYMBOL = 1
# Include features for debugging drivers
#DEBUG = 1
# Include rom set verifying features (comment this for release builds)
#ROM_VERIFY = 1
# Force recompilation of files that need it (i.e. use __TIME__, __DATE__, SPECIALBUILD).
#FORCE_UPDATE = 1
# Use the __fastcall calling convention when interfacing with A68K/Musashi/Doze
#FASTCALL = 1
# Compress executable with upx (the DEBUG option ignores this)
# COMPRESS = 1
# Perl is available
PERL = 1
NDSSDK = /usr/local/ds2sdk
PATH := $(NDSSDK)/tools:/opt/dstwo-toolchain/bin:$(PATH)
#
# execute an appropriate system-specific makefile
#
all: FORCE
@$(MAKE) -f makefile.all
test: FORCE
@$(MAKE) -f makefile.test
psikyo: FORCE
@$(MAKE) -s -f makefile.psikyo
mid: FORCE
@$(MAKE) -s -f makefile.mid
small: FORCE
@$(MAKE) -s -f makefile.small
cave: FORCE
@$(MAKE) -s -f makefile.cave
pgm: FORCE
@$(MAKE) -s -f makefile.pgm
pgm_new: FORCE
@$(MAKE) -s -f makefile.pgm_new
sega: FORCE
@$(MAKE) -s -f makefile.sega
cps: FORCE
@$(MAKE) -s -f makefile.cps
clean:
@echo Removing all files from ./obj...
-@rm -f -r obj
-@rm -f -r bin
-@rm -f -r src/generated
-@rm -f -r $(ctv.h)
-@rm -f start.o
-@rm -f _dstwoplug/fba4dstwo.plg
alltarget : FORCE
-@rm -f -r obj/nds/nds
-@rm -f -r obj/nds/burn/burn*
-@rm -f -r src/generated/driverlist.h
@$(MAKE) -s -f makefile.pgm
-@rm -f -r obj/nds/nds
-@rm -f -r obj/nds/burn/burn*
-@rm -f -r src/generated/driverlist.h
@$(MAKE) -s -f makefile.pgm_new
-@rm -f -r obj/nds/nds
-@rm -f -r obj/nds/burn/burn*
-@rm -f -r src/generated/driverlist.h
@$(MAKE) -s -f makefile.cave
-@rm -f -r obj/nds/nds
-@rm -f -r obj/nds/burn/burn*
-@rm -f -r src/generated/driverlist.h
@$(MAKE) -s -f makefile.cps
-@rm -f -r obj/nds/nds
-@rm -f -r obj/nds/burn/burn*
-@rm -f -r src/generated/driverlist.h
@$(MAKE) -s -f makefile.sega
-@rm -f -r obj/nds/nds
-@rm -f -r obj/nds/burn/burn*
-@rm -f -r src/generated/driverlist.h
@$(MAKE) -s -f makefile.small
-@rm -f -r obj/nds/nds
-@rm -f -r obj/nds/burn/burn*
-@rm -f -r src/generated/driverlist.h
@$(MAKE) -s -f makefile.mid
-@rm -f -r obj/nds/nds
-@rm -f -r obj/nds/burn/burn*
-@rm -f -r src/generated/driverlist.h
@$(MAKE) -s -f makefile.all
FORCE:
# @$(MAKE) -C src/nds/me/mediaengineprx clean
# @$(MAKE) -C src/nds/me/mediaengineprx
# @$(MAKE) -C src/nds/me/me_load
# @cp src/nds/me/mediaengineprx/mediaengine.prx bin/
# @cp src/nds/me/me_load/me_load.bin bin/