18 IMPLEMENTATION_FILES = \
19 nCic.ml $(INTERFACE_FILES:%.mli=%.ml)
20 EXTRA_OBJECTS_TO_INSTALL =
21 EXTRA_OBJECTS_TO_CLEAN =
22 %.cmo: OCAMLOPTIONS += -w Ae
23 %.cmi: OCAMLOPTIONS += -w Ae
24 %.cmx: OCAMLOPTIONS += -w Ae
27 %: %.ml $(PACKAGE).cma
28 $(OCAMLC) -package helm-$(PACKAGE) -linkpkg -o $@ $<
29 all.opt opt: rt.opt check.opt
30 %.opt: %.ml $(PACKAGE).cmxa
31 $(OCAMLOPT) -package helm-$(PACKAGE) -linkpkg -o $@ $<
33 depend.dot: $(IMPLEMENTATION_FILES) $(INTERFACE_FILES)
34 ocamldoc -o depend.dot -rectypes -I ../extlib/ -I ../cic -I ../cic_proof_checking/ -I ../urimanager/ -I ../logger/ -I ../registry/ -I ../getter/ -I ../hmysql/ -I ../library/ -I ../metadata/ -dot nUri.ml nReference.ml nCic.ml nCicPp.ml nCicEnvironment.ml nCicSubstitution.ml nCicReduction.ml nCicTypeChecker.ml nCicUtils.ml nCicLibrary.ml
35 cat depend.dot | grep -v "^}$$" > /tmp/depend.dot && mv /tmp/depend.dot .
36 for i in `cat depend.dot | grep darkturquoise | cut -d '"' -f 2`; do j=`echo $$i | sed s/^N/n/g`; size=`cat $$j.ml | wc -l`; funs=`cat $$j.mli | grep "^val " | wc -l`; size=`expr $$size - 13`; echo "\"$$i\" [ label=\"$$i\\n$$size lines,\\n$$funs functions\"];"; done >> depend.dot
37 echo "}" >> depend.dot
38 cat depend.dot | grep -v "darkturquoise" > /tmp/depend.dot && mv /tmp/depend.dot .
40 tred < depend.dot > /tmp/depend.dot && mv /tmp/depend.dot .
41 cat depend.dot | grep -v "^}$$" > /tmp/depend.dot && mv /tmp/depend.dot .
42 echo " NCicEnvironment -> NCicTypeChecker;" >> depend.dot
43 cat depend.dot | grep -v "NCicEnvironment -> NCic;" > /tmp/depend.dot && mv /tmp/depend.dot .
44 echo "NCicLibrary [ style=dashed ];" >> depend.dot
45 echo "NCicPp [ style=dashed ];" >> depend.dot
46 echo "}" >> depend.dot
47 cat depend.dot | grep -v "rotate" > /tmp/depend.dot && mv /tmp/depend.dot .
49 depend.png depend.eps: depend.dot
50 dot -Tpng > depend.png < depend.dot
51 dot -Tps > depend.eps < depend.dot
53 include ../../Makefile.defs
54 include ../Makefile.common