]> matita.cs.unibo.it Git - helm.git/blob - helm/ocaml/Makefile.in
paramodulation now compiles with ocaml 3.09 in opt mode (added -for-pack)
[helm.git] / helm / ocaml / Makefile.in
1 # Warning: the modules must be in compilation order
2 NULL =
3 MODULES =                       \
4         extlib                  \
5         xml                     \
6         hgdome                  \
7         registry                \
8         hmysql                  \
9         utf8_macros             \
10         thread                  \
11         xmldiff                 \
12         urimanager              \
13         logger                  \
14         getter                  \
15         cic                     \
16         cic_proof_checking      \
17         cic_acic                \
18         acic_content            \
19         content_pres            \
20         grafite                 \
21         metadata                \
22         library                 \
23         cic_unification         \
24         whelp                   \
25         tactics                 \
26         paramodulation          \
27         cic_disambiguation      \
28         lexicon                 \
29         grafite_engine          \
30         grafite_parser          \
31         $(NULL)
32
33 OCAMLFIND_DEST_DIR = @OCAMLFIND_DEST_DIR@
34 OCAMLPATH = @OCAMLFIND_META_DIR@
35 OCAMLFIND = OCAMLPATH=$(OCAMLPATH):$$OCAMLPATH @OCAMLFIND@
36
37 METAS = $(MODULES:%=METAS/META.helm-%) METAS/META.helm-cic_disambiguation
38
39 all: metas $(MODULES:%=%.all)
40 opt: metas $(MODULES:%=%.opt)
41 world: all opt
42 metas: $(METAS)
43 depend: $(MODULES:%=%.depend)
44 install: $(MODULES:%=%.install)
45 uninstall: $(MODULES:%=%.uninstall)
46 clean: $(MODULES:%=%.clean)
47 clean_metas:
48         rm -f $(METAS)
49 distclean: clean clean_metas
50         rm -f Makefile Makefile.common configure config.log config.cache config.status
51
52 .PHONY: all opt world metas depend install uninstall clean clean_metas distclean
53
54 %.all:
55         OCAMLPATH=$(OCAMLPATH):$$OCAMLPATH $(MAKE) -C $* all
56 %.opt:
57         OCAMLPATH=$(OCAMLPATH):$$OCAMLPATH $(MAKE) -C $* opt
58 %.clean:
59         OCAMLPATH=$(OCAMLPATH):$$OCAMLPATH $(MAKE) -C $* clean
60 %.depend:
61         OCAMLPATH=$(OCAMLPATH):$$OCAMLPATH $(MAKE) -C $* depend
62
63 $(MODULES:%=%.install):
64         cd $(@:%.install=%) && make install
65         export TARGET=$(OCAMLFIND_META_DIR)/$(@:%.install=META.helm-%) ; \
66         cp METAS/$(@:%.install=meta.helm-%.src) $$TARGET && \
67         echo "directory=\"$(OCAMLFIND_DEST_DIR)/$(@:%.install=%)\"" >> $$TARGET
68 $(MODULES:%=%.uninstall):
69         cd $(@:%.uninstall=%) && make uninstall
70         rm -f $(OCAMLFIND_META_DIR)/$(@:%.uninstall=META.helm-%)
71 METAS/META.helm-%: METAS/meta.helm-%.src
72         cp $< $@ && echo "directory=\"$(shell pwd)/$*\"" >> $@
73
74 .PHONY: .dep.dot
75 .dep.dot:
76         echo "digraph G {" > $@
77         echo "   rankdir = TB ;" >> $@
78         for i in $(MODULES); do $(OCAMLFIND) query helm-$$i -recursive -p-format | grep helm | sed "s/^helm-/ \"$$i\" -> \"/g" | sed "s/$$/\";/g" >> $@ ; done
79         mv $@ $@.old ; ./simplify_deps/simplify_deps.opt < $@.old > $@ ; rm $@.old
80         echo "}" >> $@
81
82 .PHONY: .alldep.dot
83 .alldep.dot:
84         echo "digraph G {" > $@
85         echo "   rankdir = TB ;" >> $@
86         for i in $(MODULES); do $(OCAMLFIND) query helm-$$i -recursive -p-format | grep -v "pxp-" | sed "s/^pxp/pxp[-*]/g" | sed "s/^/ \"helm-$$i\" -> \"/g" | sed "s/$$/\";/g" >> $@ ; done
87         mv $@ $@.old ; ./simplify_deps/simplify_deps.opt < $@.old > $@ ; rm $@.old
88         for i in $(MODULES); do echo "\"helm-$$i\" [shape=box,style=filled,fillcolor=yellow];" >> $@ ; done
89         echo "}" >> $@
90
91 .extdep.dot: .dep.dot
92         ./patch_deps.sh $< $@
93 .clustersdep.dot: .dep.dot
94         USE_CLUSTERS=yes ./patch_deps.sh $< $@
95
96 libraries.ps: .dep.dot
97         dot -Tps -o $@ $<
98 libraries-ext.ps: .extdep.dot
99         dot -Tps -o $@ $<
100 libraries-clusters.ps: .clustersdep.dot
101         dot -Tps -o $@ $<
102 libraries-complete.ps: .alldep.dot
103         dot -Tps -o $@ $<
104
105 ps: libraries.ps libraries-ext.ps libraries-clusters.ps
106
107 tags: TAGS
108 .PHONY: TAGS
109 TAGS:
110         otags -vi -r .
111