Coccinelle release 1.0.0-rc12
[bpt/coccinelle.git] / bundles / extlib / extlib-1.5.2 / Makefile
diff --git a/bundles/extlib/extlib-1.5.2/Makefile b/bundles/extlib/extlib-1.5.2/Makefile
new file mode 100644 (file)
index 0000000..b50f463
--- /dev/null
@@ -0,0 +1,30 @@
+# Makefile contributed by Alain Frisch
+
+MODULES = \
+ enum bitSet dynArray extArray extHashtbl extList extString global IO option \
+ pMap std uChar uTF8 base64 unzip refList optParse dllist
+
+# the list is topologically sorted
+
+MLI = $(MODULES:=.mli)
+SRC = $(MLI) $(MODULES:=.ml) extLib.ml
+
+all: 
+       ocamlc -a -o extLib.cma $(SRC)
+opt: 
+       ocamlopt -a -o extLib.cmxa $(SRC)
+doc:
+       ocamlc -c $(MODULES:=.mli)
+       mkdir -p doc/
+       ocamldoc -sort -html -d doc/ $(MODULES:=.mli)
+       cp odoc_style.css doc/style.css
+
+install:
+       ocamlfind install extlib META *.cmi *.cma $(MLI) $(wildcard *.cmxa) $(wildcard *.a)
+
+uninstall:
+       ocamlfind remove extlib
+
+clean:
+       rm -f *.cmo *.cmx *.o *.cmi *.cma *.cmxa *.a
+       rm -Rf doc