-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
executable file
·43 lines (30 loc) · 930 Bytes
/
Makefile
File metadata and controls
executable file
·43 lines (30 loc) · 930 Bytes
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
CC=dmcs
RR=mono
FILES = $(wildcard shared-files/*.cs)
GAMEMAIN=single-game/SingleGame.cs
TESTMAIN=test/Test.cs
WARMAIN=war/War.cs
GAMEEXE=simgle-game.exe
TESTEXE=test.exe
WAREXE=war.exe
game: clean compile-game run-game
test: clean compile-test run-test
war: clean compile-war run-war
compile-game:
@echo '************ TEST VERSION ************'
$(CC) -out:$(GAMEEXE) -reference:Microsoft.Solver.Foundation.dll -optimize+ $(GAMEMAIN) $(FILES)
compile-test:
$(CC) -out:$(TESTEXE) -reference:Microsoft.Solver.Foundation.dll -optimize+ $(TESTMAIN) $(FILES)
compile-war:
$(CC) -out:$(WAREXE) -reference:Microsoft.Solver.Foundation.dll -optimize+ $(WARMAIN) $(FILES)
run-game:
time $(RR) $(GAMEEXE)
run-test:
time $(RR) $(TESTEXE)
run-test-profiled:
time $(RR) --gc=sgen --profile=log:noalloc $(TESTEXE)
run-war:
time $(RR) $(WAREXE)
clean:
rm -rf *.exe
rm -rf *.mlpd