-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
186 lines (158 loc) · 5.12 KB
/
Makefile
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
#############################################################################
## v # The Coq Proof Assistant ##
## <O___,, # INRIA - CNRS - LIX - LRI - PPS ##
## \VV/ # ##
## // # Makefile automagically generated by coq_makefile V8.3pl1 ##
#############################################################################
# WARNING
#
# This Makefile has been automagically generated
# Edit at your own risks !
#
# END OF WARNING
#
# This Makefile was generated by the command line :
# coq_makefile -f Make -o Makefile
#
#
# This Makefile may take 3 arguments passed as environment variables:
# - COQBIN to specify the directory where Coq binaries resides;
# - CAMLBIN and CAMLP4BIN to give the path for the OCaml and Camlp4/5 binaries.
COQLIB:=$(shell $(COQBIN)coqtop -where | sed -e 's/\\/\\\\/g')
CAMLP4:="$(shell $(COQBIN)coqtop -config | awk -F = '/CAMLP4=/{print $$2}')"
ifndef CAMLP4BIN
CAMLP4BIN:=$(CAMLBIN)
endif
CAMLP4LIB:=$(shell $(CAMLP4BIN)$(CAMLP4) -where)
##########################
# #
# Libraries definitions. #
# #
##########################
OCAMLLIBS:=-I Lib\
-I Semantics\
-I ALEA
COQSRCLIBS:=-I $(COQLIB)/kernel -I $(COQLIB)/lib \
-I $(COQLIB)/library -I $(COQLIB)/parsing \
-I $(COQLIB)/pretyping -I $(COQLIB)/interp \
-I $(COQLIB)/proofs -I $(COQLIB)/tactics \
-I $(COQLIB)/toplevel \
-I $(COQLIB)/plugins/cc \
-I $(COQLIB)/plugins/dp \
-I $(COQLIB)/plugins/extraction \
-I $(COQLIB)/plugins/field \
-I $(COQLIB)/plugins/firstorder \
-I $(COQLIB)/plugins/fourier \
-I $(COQLIB)/plugins/funind \
-I $(COQLIB)/plugins/groebner \
-I $(COQLIB)/plugins/interface \
-I $(COQLIB)/plugins/micromega \
-I $(COQLIB)/plugins/nsatz \
-I $(COQLIB)/plugins/omega \
-I $(COQLIB)/plugins/quote \
-I $(COQLIB)/plugins/ring \
-I $(COQLIB)/plugins/romega \
-I $(COQLIB)/plugins/rtauto \
-I $(COQLIB)/plugins/setoid_ring \
-I $(COQLIB)/plugins/subtac \
-I $(COQLIB)/plugins/subtac/test \
-I $(COQLIB)/plugins/syntax \
-I $(COQLIB)/plugins/xml
COQLIBS:=-I Lib\
-I Semantics\
-I ALEA
COQDOCLIBS:=
##########################
# #
# Variables definitions. #
# #
##########################
ZFLAGS=$(OCAMLLIBS) $(COQSRCLIBS) -I $(CAMLP4LIB)
OPT:=
COQFLAGS:=-q $(OPT) $(COQLIBS) $(OTHERFLAGS) $(COQ_XML)
ifdef CAMLBIN
COQMKTOPFLAGS:=-camlbin $(CAMLBIN) -camlp4bin $(CAMLP4BIN)
endif
COQC:=$(COQBIN)coqc
COQDEP:=$(COQBIN)coqdep -c
GALLINA:=$(COQBIN)gallina
COQDOC:=$(COQBIN)coqdoc
COQMKTOP:=$(COQBIN)coqmktop
CAMLLIB:=$(shell $(CAMLBIN)ocamlc.opt -where)
CAMLC:=$(CAMLBIN)ocamlc.opt -c -rectypes
CAMLOPTC:=$(CAMLBIN)ocamlopt.opt -c -rectypes
CAMLLINK:=$(CAMLBIN)ocamlc.opt -rectypes
CAMLOPTLINK:=$(CAMLBIN)ocamlopt.opt -rectypes
GRAMMARS:=grammar.cma
CAMLP4EXTEND:=pa_extend.cmo pa_macro.cmo q_MLast.cmo
CAMLP4OPTIONS:=
PP:=-pp "$(CAMLP4BIN)$(CAMLP4)o -I $(CAMLLIB) -I . $(COQSRCLIBS) $(CAMLP4EXTEND) $(GRAMMARS) $(CAMLP4OPTIONS) -impl"
###################################
# #
# Definition of the "all" target. #
# #
###################################
all: ALEA\
Lib\
Semantics\
Examples
###################
# #
# Subdirectories. #
# #
###################
ALEA:
cd ALEA ; $(MAKE) all
Lib:
cd Lib ; $(MAKE) all
Semantics:
cd Semantics ; $(MAKE) all
Examples:
cd Examples ; $(MAKE) all
####################
# #
# Special targets. #
# #
####################
.PHONY: all opt byte archclean clean install depend html ALEA Lib Semantics Examples
byte:
$(MAKE) all "OPT:=-byte"
opt:
$(MAKE) all "OPT:=-opt"
install:
mkdir -p $(COQLIB)/user-contrib
(cd ALEA; $(MAKE) INSTALLDEFAULTROOT=$(INSTALLDEFAULTROOT)/ALEA install)
(cd Lib; $(MAKE) INSTALLDEFAULTROOT=$(INSTALLDEFAULTROOT)/Lib install)
(cd Semantics; $(MAKE) INSTALLDEFAULTROOT=$(INSTALLDEFAULTROOT)/Semantics install)
(cd Examples; $(MAKE) INSTALLDEFAULTROOT=$(INSTALLDEFAULTROOT)/Examples install)
clean:
rm -f $(CMOFILES) $(CMIFILES) $(CMXFILES) $(CMXSFILES) $(OFILES) $(VOFILES) $(VIFILES) $(GFILES) $(MLFILES:.ml=.cmo) $(MLFILES:.ml=.cmx) *~
rm -f all.ps all-gal.ps all.pdf all-gal.pdf all.glob $(VFILES:.v=.glob) $(HTMLFILES) $(GHTMLFILES) $(VFILES:.v=.tex) $(VFILES:.v=.g.tex) $(VFILES:.v=.v.d)
- rm -rf html
(cd ALEA ; $(MAKE) clean)
(cd Lib ; $(MAKE) clean)
(cd Semantics ; $(MAKE) clean)
(cd Examples ; $(MAKE) clean)
archclean:
rm -f *.cmx *.o
(cd ALEA ; $(MAKE) archclean)
(cd Lib ; $(MAKE) archclean)
(cd Semantics ; $(MAKE) archclean)
(cd Examples ; $(MAKE) archclean)
printenv:
@echo CAMLC = $(CAMLC)
@echo CAMLOPTC = $(CAMLOPTC)
@echo CAMLP4LIB = $(CAMLP4LIB)
Makefile: Make
mv -f Makefile Makefile.bak
$(COQBIN)coq_makefile -f Make -o Makefile
(cd ALEA ; $(MAKE) Makefile)
(cd Lib ; $(MAKE) Makefile)
(cd Semantics ; $(MAKE) Makefile)
(cd Examples ; $(MAKE) Makefile)
# WARNING
#
# This Makefile has been automagically generated
# Edit at your own risks !
#
# END OF WARNING