ocaml-lib / makefile

OCAMLFIND=ocamlfind
OCAMLLEX=ocamllex
OCAMLC=$(OCAMLFIND) ocamlc
OCAMLOPT=$(OCAMLFIND) ocamlopt
INCLUDES= -package dbm           # 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 bintree.cmo lSet.cmo cis.cmi cis.cmo iterator.cmo intmap.cmo intset.cmo intrel.cmo intrel2.cmo intreln.cmo text_index.cmo setset.cmo cache.cmi cache.cmo ext.cmo suffix_tree.cmo index.cmo seq.cmo persindex.cmo genid.cmo persintset.cmo persintset.cmo stringset.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]
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.