Source

ocaml-lib / makefile

Full commit
OCAMLLEX=ocamllex
OCAMLC=ocamlc
OCAMLOPT=ocamlopt
INCLUDES=            # all relevant -I options here
#OCAMLFLAGS= -pp "camlp4o pa_op.cmo" -thread $(INCLUDES)    # add other options for ocamlc here
OCAMLFLAGS= -pp camlp4o -thread $(INCLUDES)    # add other options for ocamlc here

.SUFFIXES: .mll .ml .mli .cmo .cmi

# Make all
all: common.cmo threads_common.cmo unicode.cmo tokens.cmo lexer.cmo syntax.cmo bintree.cmo lSet.cmo cis.cmi cis.cmo iterator.cmo intmap.cmo intset.cmo intrel.cmo intreln.cmo text_index.cmo setset.cmo term.cmo cache.cmi cache.cmo ext.cmo logdag.cmi logdag.cmo suffix_tree.cmo index.cmo persindex.cmo genid.cmo persintset.cmo stringset.cmo seq.cmo seqset.cmo
	echo

# archiving
lib.tgz:
	tar cfz lib.tgz make* *,v *.mll *.ml *.mli */config* */make* */Make* */*.c */*.h */*.ml */*.mli  

# Common rules

%.ml: %.mll
	$(OCAMLLEX) $<

%.cmo: %.ml
	$(OCAMLC) $(OCAMLFLAGS) -c $<
	$(OCAMLOPT) $(OCAMLFLAGS) -c $<

%.cmi: %.mli
	$(OCAMLC) $(OCAMLFLAGS) -c $<


# Clean up
clean:
	rm -f *.cm[ioax]