Commit 04564cfb authored by Maximilien Colange's avatar Maximilien Colange

Improve the way Makefile calls ocamlbuild.

parent 3d577242
......@@ -14,13 +14,15 @@ CXX_FLAGS=-std=c++11 -O3 -DNDEBUG @TIAMO_MACROS@ -I$(UTAP_INCLUDEDIR) -I@abs_top
XML_LINK_FLAGS=$(foreach i,$(XML_LIBS),-cclib $i)
SUFFIXES = .native .ml
all-local: tiamo
tiamo: src/main.native
cp `readlink -f $(BUILDDIR)/src/main.native` tiamo
cp `readlink -f $(BUILDDIR)/$<` tiamo
%.native:
CXX_FLAGS="$(CXX_FLAGS)" $(OCAMLBUILD) -cflags "-noassert -I $(INCLUDEDIR)" -lflags "$(INCLUDEDIR)/udbml.cmxa $(UTAP_LIB) $(XML_LINK_FLAGS) -cclib -L$(INCLUDEDIR)" $@
.ml.native:
CXX_FLAGS="$(CXX_FLAGS)" $(OCAMLBUILD) -cflags "-I $(INCLUDEDIR)" -lflags "$(INCLUDEDIR)/udbml.cmxa $(UTAP_LIB) $(XML_LINK_FLAGS) -cclib -L$(INCLUDEDIR)" $@
clean-local:
$(OCAMLBUILD) -clean
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment