forked from JoeDralliam/Ocsfml
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
71 lines (42 loc) · 1.46 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
OCAMLBUILD=ocamlbuild -use-ocamlfind -j 4
OCAMLBUILD_DIR=$(shell ocamlc -where)/ocamlbuild
all:plugin byte native
plugin-hack:
(mkdir _build &> /dev/null) ; \
cp myocamlbuild.ml _build/myocamlbuild.ml && \
cd _build && \
ocamlfind ocamlopt -linkpkg -package ocamlbuildcpp -package ocamlbuild myocamlbuild.ml $(OCAMLBUILD_DIR)/ocamlbuild.cmx -o myocamlbuild && \
cd ..
plugin:
$(OCAMLBUILD) -plugin-tag "package(ocamlbuildcpp)" -just-plugin
native:system-nat window-nat graphics-nat audio-nat network-nat
system-nat:
$(OCAMLBUILD) OcsfmlSystem/ocsfmlsystem.cmxa
window-nat:
$(OCAMLBUILD) OcsfmlWindow/ocsfmlwindow.cmxa
graphics-nat:
$(OCAMLBUILD) OcsfmlGraphics/ocsfmlgraphics.cmxa
audio-nat:
$(OCAMLBUILD) OcsfmlAudio/ocsfmlaudio.cmxa
network-nat:
$(OCAMLBUILD) OcsfmlNetwork/ocsfmlnetwork.cmxa
byte:system-byte window-byte graphics-byte audio-byte network-byte
system-byte:
$(OCAMLBUILD) OcsfmlSystem/ocsfmlsystem.cma
window-byte:
$(OCAMLBUILD) OcsfmlWindow/ocsfmlwindow.cma
graphics-byte:
$(OCAMLBUILD) OcsfmlGraphics/ocsfmlgraphics.cma
audio-byte:
$(OCAMLBUILD) OcsfmlAudio/ocsfmlaudio.cma
network-byte:
$(OCAMLBUILD) OcsfmlNetwork/ocsfmlnetwork.cma
install:
ocamlfind install ocsfml META _build/Ocsfml*/*ocsfml*.*
uninstall:
ocamlfind remove "ocsfml"
clean:
$(OCAMLBUILD) -clean
doc:plugin
$(OCAMLBUILD) -use-ocamlfind ocsfml.docdir/index.html
.PHONY:install uninstall