1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50
|
include ../Makefile.config
OCAMLC := ${OCAMLFIND} ocamlc
OCAMLOPT := ${OCAMLFIND} ocamlopt
OCAMLDEP := ${OCAMLFIND} ocamldep
PP := -package camlp4 -ppopt ../syntax/pa_deriving.cma -syntax camlp4o
LIBS := -I ../lib -package num
OCAMLFLAGS = -w Aef
SOURCES = defs.ml \
bimap.ml \
sigs.ml \
pickle_tests.ml \
typeable_tests.ml \
bounded_tests.ml \
eq_tests.ml \
dump_tests.ml \
enum_tests.ml \
functor_tests.ml \
show_tests.ml \
exp.ml \
inline.ml \
##
tests${EXEEXT}: ${SOURCES:.ml=.cmo}
${OCAMLC} -o $@ ${LIBS} -linkpkg deriving.cma $^
# Common rules
%.cmi: %.mli
${OCAMLC} ${OCAMLFLAGS} ${PP} ${LIBS} -c $<
%.cmo: %.ml
${OCAMLC} ${OCAMLFLAGS} ${PP} ${LIBS} -c $<
%.cmx: %.ml
${OCAMLOPT} ${OCAMLFLAGS} ${PP} ${LIBS} -c $<
# Clean up
clean:
-rm -f *.cm[ioax] *.cmxa *.cmxs *${OBJEXT} *${LIBEXT} *.annot
-rm -f tests${EXEEXT}
distclean: clean
-rm -f *~ \#* .\#*
# Dependencies
depend:
${OCAMLDEP} ${PP} *.ml *.mli > .depend
-include .depend
|