-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
executable file
·46 lines (32 loc) · 999 Bytes
/
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
.PHONY: nemu clean run test testkernel testgame do_not_call_me_testcase do_not_call_me_kernel do_not_call_me_game
include Makefile.git
nemu:
$(call git_commit, "nemu")
cd nemu && make
run: nemu do_not_call_me_testcase
$(call git_commit, "run")
./nemu/nemu -run hello-inline
test: nemu do_not_call_me_testcase
$(call git_commit, "test")
./nemu/nemu -autorun
testkernel: nemu do_not_call_me_testcase do_not_call_me_kernel
$(call git_commit, "testkernel")
./nemu/nemu -kernel-test
testgame: nemu do_not_call_me_kernel do_not_call_me_game
$(call git_commit, "testgame")
./nemu/nemu -game
clean:
cd nemu && make clean
cd testcase && make clean
cd kernel && make clean
cd game && make clean
submit: clean
cd .. && tar cvj $(shell pwd | grep -o '[^/]*$$') > $(STU_ID).tar.bz2
#### do not use the following targets directly ####
do_not_call_me_game:
cd game && make
do_not_call_me_testcase:
cd testcase && make
do_not_call_me_kernel:
cd testcase && make
cd kernel && make