-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmakefile
More file actions
46 lines (37 loc) · 876 Bytes
/
Copy pathmakefile
File metadata and controls
46 lines (37 loc) · 876 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
44
45
46
# ----------------------------
# group nb 1
# 42191600 : Alexandre Gobeaux
# 24321600 : Gilles Peiffer
#
# ----------------------------
UNAME_S := $(shell uname -s)
ifeq ($(UNAME_S), Darwin)
C = /Applications/Mozart2.app/Contents/Resources/bin/ozc -c
X = /Applications/Mozart2.app/Contents/Resources/bin/ozengine
else
C = ozc -c
X = ozengine
endif
all:
#make clean
make compileAll
make run
compileAll:
@$(C) Input.oz
make compile
compile:
@$(C) PlayerManager.oz
make compilePlayers
@$(C) GUI.oz
@$(C) Main.oz
compilePlayers:
@$(C) Player001*.oz
*.ozf:
@$(C) *.oz
run:
@$(X) Main.ozf
zip:
rm -rf project.zip
zip -r project.zip GUI.oz Main.oz PlayerManager.oz Player001*.oz Input.oz makefile img/*.gif
clean: # Delete every file except .ozf for which we don't have .oz files
ls *.ozf | grep -v Player000bomber.ozf | grep -v Projet2019util.ozf | xargs rm