summaryrefslogtreecommitdiff
path: root/src/Makefile
diff options
context:
space:
mode:
authorAlex AUVOLAT <alex.auvolat@ens.fr>2014-05-25 21:54:20 +0200
committerAlex AUVOLAT <alex.auvolat@ens.fr>2014-05-25 21:54:20 +0200
commit8456506c0b9c8e78eec2cc464851cef36ca03398 (patch)
tree497522a4422a1290ac3dae006c2808c293216c5d /src/Makefile
parent60ba54ffe01be85ec6f1d6948c1ca4b6db1cf165 (diff)
downloadSystemeReseaux-Projet-8456506c0b9c8e78eec2cc464851cef36ca03398.tar.gz
SystemeReseaux-Projet-8456506c0b9c8e78eec2cc464851cef36ca03398.zip
Revise build system.
Diffstat (limited to 'src/Makefile')
-rw-r--r--src/Makefile16
1 files changed, 9 insertions, 7 deletions
diff --git a/src/Makefile b/src/Makefile
index dca72f6..0662993 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -1,13 +1,15 @@
-OCAMLBUILD=ocamlbuild -classic-display \
- -tags annot,debug,thread \
- -libs unix
+CAML=example.ml primes.ml \
+ manager.ml poolserver.ml poolclient.ml \
+ kahn_pipe.ml kahn_seq.ml kahn_stdio.ml \
+ proto.ml util.ml
-all: primes.native example.native manager.native poolserver.native poolclient.native
+BIN=example.native primes.native \
+ manager.native poolserver.native poolclient.native
-%.native: %.ml kahn_pipe.ml kahn_seq.ml kahn_stdio.ml proto.ml util.ml
- $(OCAMLBUILD) $@
+all: $(CAML)
+ ocamlbuild $(BIN)
clean:
- $(OCAMLBUILD) -clean
+ ocamlbuild -clean