Preliminary migration to ocamlbuild.
[tatoo.git] / Makefile.in
index 1f30a3a..d8797be 100644 (file)
@@ -1,3 +1,26 @@
-all:
+CAMLP4FLAGS=@CAMLP4FLAGS@
+PPOPTSFLAGS= $($CAMLP4FLAGS:%=ppopt(%))
+OCAMLBUILDFLAGS=-j 0 -use-ocamlfind @OCAMLBUILDFLAGS@
+
+
+TARGETS=tatoo.native
+ifeq ($(BYTE), true)
+       TARGETS += tatoo.byte
+endif
+INLINE=@INLINE@
+TAGS= inline($INLINE)
+
+
+.PHONY: clean distclean
+
+all: $(TARGETS)
+       @
+
 %:
-       @ ./remake -j $@
+       @ ocamlbuild $(OCAMLBUILDFLAGS)  $(PPOPTFLAGS:%=-tag %) $@
+
+clean:
+       @ ocamlbuild $(OCAMLBUILDFLAGS) -clean
+
+distclean: clean
+       @ rm -rf configure config.log config.status autom4te.cache Makefile