-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
87 lines (72 loc) · 4.21 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
85
86
87
################################################################################
# #
# oooooo oooooo oooo o8o A project by students EPITA #
# `888. `888. .8' `"' in infosup 2017 #
# `888. .8888. .8' oooo ooo. .oo. .oooo.o #
# `888 .8'`888. .8' `888 `888P"Y88b d88( "8 #
# Wins `888.8' `888.8' 888 888 888 `"Y88b. #
# is not `888' `888' 888 888 888 o. )88b #
# Scumm ! `8' `8' o888o o888o o888o 8""888P' #
# Programmed by #
# Philémon "Phil Gekni" Gardet [[email protected]] #
# Rafael "Yayg" Gozlan [[email protected]] #
# with help #
# Lorry "Bardaf" Guedj [[email protected]] #
# Alexandre "Stawayld" Starck [[email protected]] #
# #
################################################################################
# Wins is a "Point and Click" Game Motor written with OCaml #
# Copyright (C) 2013 Philémon Gardet [[email protected]] #
# Rafael Gozlan [[email protected]] #
# #
# This program is free software: you can redistribute it and/or modify #
# it under the terms of the GNU General Public License as published by #
# the Free Software Foundation, either version 3 of the License, or #
# (at your option) any later version. #
# #
# This program is distributed in the hope that it will be useful, #
# but WITHOUT ANY WARRANTY; without even the implied warranty of #
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
# GNU General Public License for more details. #
# #
# You should have received a copy of the GNU General Public License #
# along with this program. If not, see <http://www.gnu.org/licenses/>. #
################################################################################
### Dependencies ###############################################################
# OCamlSDL.....(in Ubuntu depots)
# OCaml-Lua....(http://ocaml-lua.forge.ocamlcore.org/)
# OCaml-Expat..(http://mmzeeman.home.xs4all.nl/ocaml/)
### Info #######################################################################
RESULT = wins
SOURCES = tool.ml wally.ml zak.ml jed.ml bobbin.ml woop.ml main.ml
INCDIRS_OTHER = -I +sdl -I +lua -I +expat
INCDIRS_UBUNTU = -I +sdl -I /usr/local/lib/ocaml/3.12.1/lua/ -I +expat
LIBSOPT = unix.cmxa threads.cmxa bigarray.cmxa sdl.cmxa sdlloader.cmxa\
sdlttf.cmxa sdlmixer.cmxa lua.cmxa expat.cmxa str.cmxa
LIBSTOP = unix.cma threads.cma bigarray.cma sdl.cma sdlloader.cma sdlttf.cma\
sdlmixer.cma lua.cma expat.cma str.cma
DOCDIR = ./doc
OCAMLOPT = ocamlopt.opt
OCAMLC = ocamlc
OCAMLDOC = ocamldoc.opt
OCAMLTOP = ocamlmktop
D = ubuntu
### Making #####################################################################
.PHONY: doc clean
ifeq ($(D),ubuntu)
INCDIRS = $(INCDIRS_UBUNTU)
else
INCDIRS = $(INCDIRS_OTHER)
endif
${RESULT}: ${SOURCES}
${OCAMLOPT} -thread $(INCDIRS) $(LIBSOPT) ${SOURCES} -o $@
debug: mrproper
${OCAMLC} -thread $(INCDIRS) $(LIBSTOP) -g ${SOURCES} -o $@
top: mrproper
${OCAMLTOP} -thread -custom $(INCDIRS) $(LIBSTOP) ${SOURCES} -o $@
doc:
${OCAMLDOC} -g ${DOCDIR} $(INCDIRS) ${SOURCES}
clean:
rm -rf *.cmi rm -rf *.cmx rm -rf *.o rm -rf *.cmo
mrproper: clean
rm -rf $(RESULT) rm -rf top rm -rf debug