-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
84 lines (69 loc) · 1.82 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
## ########################################################################## ##
## Project: La Vie Est Un Jeu - Public API, example with OCaml ##
## Description: Makefile compiling the OCaml example of the API ##
## Author: Tuxkowo ##
## Modified by: db0 ([email protected], http://db0.fr/) ##
## Latest Version is on GitHub: https://github.com/Life-the-game/SDK-OCaml ##
## ########################################################################## ##
NAME = api.cma
SRC = \
apiError.ml \
apiTypes.ml \
apiConf.ml \
apiDump.ml \
api.ml \
\
apiMedia.ml \
apiUser.ml \
apiAuth.ml \
apiAchievement.ml \
apiComment.ml \
apiAchievementStatus.ml \
apiNews.ml \
apiPlayground.ml \
apiFeed.ml \
apiGameNetwork.ml \
apiRoles.ml \
\
SRCI = \
apiError.mli \
apiTypes.mli \
apiDump.mli \
api.mli \
\
apiMedia.mli \
apiUser.mli \
apiAuth.mli \
apiAchievement.mli \
apiComment.mli \
apiAchievementStatus.mli \
apiNews.mli \
apiPlayground.mli \
apiFeed.mli \
apiGameNetwork.mli \
apiRoles.mli \
\
SRCDOC = $(SRCI) $(SRC)
PACKS = extlib,curl,yojson,calendar
TEST_NAME = example
TEST_SRC = example.ml
VERSION = 1.0.0
FLAGS = -linkpkg
CMO = $(SRC:.ml=.cmo)
CMI = $(SRC:.ml=.cmi)
COMPILER = ocamlc
DOCCOMPILER = ocamldoc
OCAMLFIND = ocamlfind
RM = rm -f
all :
$(OCAMLFIND) $(COMPILER) -a -o $(NAME) -package $(PACKS) $(SRCI) $(SRC) $(FLAGS)
doc : all
mkdir -p html/
$(OCAMLFIND) $(DOCCOMPILER) -html -package $(PACKS) $(SRCDOC) -d html/
$(TEST_NAME) : all
$(OCAMLFIND) $(COMPILER) -o $(TEST_NAME) $(NAME) $(TEST_SRC) $(FLAGS)
clean :
$(RM) $(CMI) $(CMO) example.cmi
fclean : clean
$(RM) $(NAME)
re : fclean all