-
Notifications
You must be signed in to change notification settings - Fork 5
/
Makefile
53 lines (38 loc) · 1.56 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
all: console console_test desktop
console: Files/ZanbarBone80.cpp Console/CityOfThievesConsole
console_test: Files/ZanbarBone80.cpp Console/CityOfThievesConsoleTest
desktop: Files/ZanbarBone80.cpp Desktop/CityOfThievesDesktop
nds: build/devkitpro-pacman.deb ../libnds/lib/libnds7.a
cd Nds && ./build_music.sh
export DEVKITPRO=/opt/devkitpro ; \
export DEVKITARM=/opt/devkitpro/devkitARM ; \
cd Nds && $(MAKE)
../libnds/lib/libnds7.a: ../libnds/Makefile
export DEVKITPRO=/opt/devkitpro ; \
export DEVKITARM=/opt/devkitpro/devkitARM ; \
cd ../libnds && $(MAKE)
../libnds/Makefile:
cd .. && git clone https://github.com/devkitPro/libnds.git
build/devkitpro-pacman.deb:
mkdir -p build
cd build && wget https://github.com/devkitPro/pacman/releases/download/devkitpro-pacman-1.0.1/devkitpro-pacman.deb
cd build && sudo dpkg -i devkitpro-pacman.deb
sudo dkp-pacman -S nds-dev
Console/CityOfThievesConsole: Console/CityOfThievesConsole.pro
cd Console && qmake CityOfThievesConsole.pro && $(MAKE) release
Console/CityOfThievesConsoleTest: Console/CityOfThievesConsoleTest.pro
cd Console && qmake CityOfThievesConsoleTest.pro && $(MAKE) debug
Desktop/CityOfThievesDesktop: Desktop/CityOfThievesDesktop.pro
cd Desktop && qmake CityOfThievesDesktop.pro && $(MAKE) release
Files/ZanbarBone80.cpp:
cd Files && $(MAKE)
zip:
zip CityOfThieves.zip \
Console/CityOfThievesConsole \
Console/CityOfThievesConsoleTest \
Desktop/CityOfThievesDesktop \
Nds/CityOfThieves.nds
clean:
cd Files && $(MAKE) clean
cd Console && $(MAKE) clean
cd Desktop && $(MAKE) clean