-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
52 lines (44 loc) · 1.1 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
help:
@echo "make [target]"
@echo "Targets:"
@echo "- clean - Clean the enviroment"
@echo "- all - Build all targets at the same time"
@echo "- linux - Build for linux (gcc)"
@echo "- dos - Build for dos (djgpp)"
@echo "- nds - Build for Nintendo DS (libnds)"
@echo "- wii - Build for Nintendo WII (libogc)"
build:
@mkdir build
all: linux dos nds wii
linux: build
@echo "------------------------------"
@echo "Building for $@"
@echo "------------------------------"
@cd build; cmake ..
@cmake --build ./build
.PHONY: linux
dos:
@echo "------------------------------"
@echo "Building for $@"
@echo "------------------------------"
@touch LOG.TXT
@dosbox -c "scripts\dos.bat"
@echo "------------------------------"
@cat LOG.TXT
@rm LOG.TXT
.PHONY:dos
nds: build
@echo "------------------------------"
@echo "Building for $@"
@echo "------------------------------"
@make -f targets/nds.mak
.PHONY:nds
wii: build
@echo "------------------------------"
@echo "Building for $@"
@echo "------------------------------"
@make -f "targets/wii.mak"
.PHONY:wii
clean:
rm -rf build BUILD
.PHONY: clean