Add ocamlbuild detection to configure.in
[tatoo.git] / Makefile.in
1 CAMLP4FLAGS=@CAMLP4FLAGS@
2 PPOPTSFLAGS= $($CAMLP4FLAGS:%=ppopt(%))
3 OCAMLBUILDFLAGS=-j 0 -use-ocamlfind @OCAMLBUILDFLAGS@
4 OCAMLBUILD=@OCAMLBUILD@
5
6 TARGETS=tatoo.native
7 ifeq ($(BYTE), true)
8         TARGETS += tatoo.byte
9 endif
10 INLINE=@INLINE@
11 TAGS= inline($INLINE)
12
13
14 .PHONY: clean distclean
15
16 all: $(TARGETS)
17         @
18
19 %:
20         @ $(OCAMLBUILD) $(OCAMLBUILDFLAGS)  $(PPOPTFLAGS:%=-tag %) $@
21
22 clean:
23         @ $(OCAMLBUILD) $(OCAMLBUILDFLAGS) -clean
24
25 distclean: clean
26         @ rm -rf configure config.log config.status autom4te.cache Makefile