include ../../Makefile.config
endif
-OCAMLCFLAGS ?= -g -dtypes
-OPTFLAGS ?= -g -dtypes
+OCAMLCFLAGS ?= -g
+OPTFLAGS ?= -g
VERSION=7.0.5
SEXPDIR=sexplib-$(VERSION)
SEXPMARKER=$(SEXPDIR)/.marker
PP_CMD=$(CPP) -x c -w -traditional -undef
-OCAMLC_CMD=$(OCAMLC) $(OCAMLCFLAGS) -I $(SEXPLIB) -thread -pp "${PP_CMD}"
-OCAMLOPT_CMD=$(OCAMLOPT) $(OPTFLAGS) -I $(SEXPLIB) -thread -pp "${PP_CMD}"
+OCAMLC_CMD=$(OCAMLC) $(OCAMLCFLAGS) -I $(SEXPLIB) -pp "${PP_CMD}"
+OCAMLOPT_CMD=$(OCAMLOPT) $(OPTFLAGS) -I $(SEXPLIB) -pp "${PP_CMD}"
OCAMLDEP_CMD=$(OCAMLDEP) -I $(SEXPLIB) -pp "${PP_CMD}"
all: .depend
@$(MAKE) all-opt-build
all-opt-build: .depend $(SEXPMARKER) sexplib.cmxa META
+# prepares the source bundle for building.
+.prepare: $(SEXPMARKER)
+ touch .prepare
+
clean:
rm -f sexplib.cma sexplib.cmxa META \
$(SEXPLIB)/*.cm[ioxa] \
distclean: clean
rm -rf $(SEXPDIR)
+ rm -f .prepare
$(SEXPMARKER): $(SEXPDIR).tar.gz sexp-3.10-compat.patch
$(TAR) xfvz $<
ifneq ($(MAKECMDGOALS),clean)
ifneq ($(MAKECMDGOALS),distclean)
ifneq ($(MAKECMDGOALS),depend-build)
-include .depend
+ifneq ($(FEATURE_OCAMLBUILD),yes)
+-include .depend
+endif
endif
endif
endif