Makefile 16.3 KB
Newer Older
Felipe Cerqueira's avatar
Felipe Cerqueira committed
1
2
3
4
#############################################################################
##  v      #                   The Coq Proof Assistant                     ##
## <O___,, #                INRIA - CNRS - LIX - LRI - PPS                 ##
##   \VV/  #                                                               ##
Felipe Cerqueira's avatar
Felipe Cerqueira committed
5
##    //   #  Makefile automagically generated by coq_makefile V8.5pl1     ##
Felipe Cerqueira's avatar
Felipe Cerqueira committed
6
#############################################################################
Felipe Cerqueira's avatar
Felipe Cerqueira committed
7

Felipe Cerqueira's avatar
Felipe Cerqueira committed
8
9
10
11
12
13
# WARNING
#
# This Makefile has been automagically generated
# Edit at your own risks !
#
# END OF WARNING
Felipe Cerqueira's avatar
Felipe Cerqueira committed
14

Felipe Cerqueira's avatar
Felipe Cerqueira committed
15
16
#
# This Makefile was generated by the command line :
17
# coq_makefile -f _CoqProject ./util/ssromega.v ./util/seqset.v ./util/sorting.v ./util/minmax.v ./util/powerset.v ./util/all.v ./util/ord_quantifier.v ./util/nat.v ./util/sum.v ./util/bigord.v ./util/counting.v ./util/tactics.v ./util/induction.v ./util/list.v ./util/divround.v ./util/bigcat.v ./util/fixedpoint.v ./util/notation.v ./analysis/global/jitter/bertogna_fp_comp.v ./analysis/global/jitter/interference_bound_edf.v ./analysis/global/jitter/workload_bound.v ./analysis/global/jitter/bertogna_edf_comp.v ./analysis/global/jitter/bertogna_fp_theory.v ./analysis/global/jitter/interference_bound.v ./analysis/global/jitter/interference_bound_fp.v ./analysis/global/jitter/bertogna_edf_theory.v ./analysis/global/parallel/bertogna_fp_comp.v ./analysis/global/parallel/interference_bound_edf.v ./analysis/global/parallel/workload_bound.v ./analysis/global/parallel/bertogna_edf_comp.v ./analysis/global/parallel/bertogna_fp_theory.v ./analysis/global/parallel/interference_bound.v ./analysis/global/parallel/interference_bound_fp.v ./analysis/global/parallel/bertogna_edf_theory.v ./analysis/global/basic/bertogna_fp_comp.v ./analysis/global/basic/interference_bound_edf.v ./analysis/global/basic/workload_bound.v ./analysis/global/basic/bertogna_edf_comp.v ./analysis/global/basic/bertogna_fp_theory.v ./analysis/global/basic/interference_bound.v ./analysis/global/basic/interference_bound_fp.v ./analysis/global/basic/bertogna_edf_theory.v ./analysis/apa/bertogna_fp_comp.v ./analysis/apa/interference_bound_edf.v ./analysis/apa/workload_bound.v ./analysis/apa/bertogna_edf_comp.v ./analysis/apa/bertogna_fp_theory.v ./analysis/apa/interference_bound.v ./analysis/apa/interference_bound_fp.v ./analysis/apa/bertogna_edf_theory.v ./analysis/uni/basic/workload_bound_fp.v ./analysis/uni/basic/fp_rta_comp.v ./analysis/uni/basic/fp_rta_theory.v ./model/arrival_sequence.v ./model/task.v ./model/task_arrival.v ./model/partitioned/schedulability.v ./model/partitioned/schedule.v ./model/priority.v ./model/global/workload.v ./model/global/schedulability.v ./model/global/jitter/interference_edf.v ./model/global/jitter/interference.v ./model/global/jitter/job.v ./model/global/jitter/constrained_deadlines.v ./model/global/jitter/schedule.v ./model/global/jitter/platform.v ./model/global/response_time.v ./model/global/basic/interference_edf.v ./model/global/basic/interference.v ./model/global/basic/constrained_deadlines.v ./model/global/basic/schedule.v ./model/global/basic/platform.v ./model/job.v ./model/time.v ./model/arrival_bounds.v ./model/apa/interference_edf.v ./model/apa/interference.v ./model/apa/affinity.v ./model/apa/constrained_deadlines.v ./model/apa/platform.v ./model/uni/workload.v ./model/uni/transformation/construction.v ./model/uni/schedulability.v ./model/uni/schedule_of_task.v ./model/uni/response_time.v ./model/uni/schedule.v ./model/uni/basic/arrival_bounds.v ./model/uni/basic/busy_interval.v ./model/uni/basic/platform.v ./model/uni/service.v ./implementation/arrival_sequence.v ./implementation/task.v ./implementation/global/jitter/arrival_sequence.v ./implementation/global/jitter/task.v ./implementation/global/jitter/bertogna_edf_example.v ./implementation/global/jitter/job.v ./implementation/global/jitter/bertogna_fp_example.v ./implementation/global/jitter/schedule.v ./implementation/global/parallel/bertogna_edf_example.v ./implementation/global/parallel/bertogna_fp_example.v ./implementation/global/basic/bertogna_edf_example.v ./implementation/global/basic/bertogna_fp_example.v ./implementation/global/basic/schedule.v ./implementation/job.v ./implementation/apa/arrival_sequence.v ./implementation/apa/task.v ./implementation/apa/bertogna_edf_example.v ./implementation/apa/job.v ./implementation/apa/bertogna_fp_example.v ./implementation/apa/schedule.v ./implementation/uni/basic/fp_rta_example.v ./implementation/uni/basic/schedule.v -o Makefile 
Felipe Cerqueira's avatar
Felipe Cerqueira committed
18
#
Felipe Cerqueira's avatar
Felipe Cerqueira committed
19

Felipe Cerqueira's avatar
Felipe Cerqueira committed
20
21
22
23
.DEFAULT_GOAL := all

# This Makefile may take arguments passed as environment variables:
# COQBIN to specify the directory where Coq binaries resides;
Felipe Cerqueira's avatar
Felipe Cerqueira committed
24
25
# TIMECMD set a command to log .v compilation time;
# TIMED if non empty, use the default time command as TIMECMD;
Felipe Cerqueira's avatar
Felipe Cerqueira committed
26
27
28
29
30
31
32
33
34
35
36
# ZDEBUG/COQDEBUG to specify debug flags for ocamlc&ocamlopt/coqc;
# DSTROOT to specify a prefix to install path.

# Here is a hack to make $(eval $(shell works:
define donewline


endef
includecmdwithout@ = $(eval $(subst @,$(donewline),$(shell { $(1) | tr -d '\r' | tr '\n' '@'; })))
$(call includecmdwithout@,$(COQBIN)coqtop -config)

Felipe Cerqueira's avatar
Felipe Cerqueira committed
37
38
39
40
41
42
43
44
45
TIMED=
TIMECMD=
STDTIME?=/usr/bin/time -f "$* (user: %U mem: %M ko)"
TIMER=$(if $(TIMED), $(STDTIME), $(TIMECMD))

vo_to_obj = $(addsuffix .o,\
  $(filter-out Warning: Error:,\
  $(shell $(COQBIN)coqtop -q -noinit -batch -quiet -print-mod-uid $(1))))

Felipe Cerqueira's avatar
Felipe Cerqueira committed
46
47
48
49
50
51
##########################
#                        #
# Libraries definitions. #
#                        #
##########################

Felipe Cerqueira's avatar
Felipe Cerqueira committed
52
53
54
55
COQLIBS?=\
  -R "." rt
COQDOCLIBS?=\
  -R "." rt
Felipe Cerqueira's avatar
Felipe Cerqueira committed
56
57
58
59
60
61
62
63
64

##########################
#                        #
# Variables definitions. #
#                        #
##########################


OPT?=
Felipe Cerqueira's avatar
Felipe Cerqueira committed
65
COQDEP?="$(COQBIN)coqdep" -c
Felipe Cerqueira's avatar
Felipe Cerqueira committed
66
COQFLAGS?=-q $(OPT) $(COQLIBS) $(OTHERFLAGS) $(COQ_XML)
67
COQCHKFLAGS?=-silent -o
68
COQDOCFLAGS?=-interpolate -utf8 --plain-comments --parse-comments --external https://math-comp.github.io/math-comp/htmldoc/ mathcomp
Felipe Cerqueira's avatar
Felipe Cerqueira committed
69
70
71
72
73
COQC?=$(TIMER) "$(COQBIN)coqc"
GALLINA?="$(COQBIN)gallina"
COQDOC?="$(COQBIN)coqdoc"
COQCHK?="$(COQBIN)coqchk"
COQMKTOP?="$(COQBIN)coqmktop"
Felipe Cerqueira's avatar
Felipe Cerqueira committed
74
75
76
77
78
79
80
81

##################
#                #
# Install Paths. #
#                #
##################

ifdef USERINSTALL
Felipe Cerqueira's avatar
Felipe Cerqueira committed
82
XDG_DATA_HOME?="$(HOME)/.local/share"
Felipe Cerqueira's avatar
Felipe Cerqueira committed
83
84
85
COQLIBINSTALL=$(XDG_DATA_HOME)/coq
COQDOCINSTALL=$(XDG_DATA_HOME)/doc/coq
else
Felipe Cerqueira's avatar
Felipe Cerqueira committed
86
87
88
COQLIBINSTALL="${COQLIB}user-contrib"
COQDOCINSTALL="${DOCDIR}user-contrib"
COQTOPINSTALL="${COQLIB}toploop"
Felipe Cerqueira's avatar
Felipe Cerqueira committed
89
90
91
92
93
94
95
96
endif

######################
#                    #
# Files dispatching. #
#                    #
######################

97
VFILES:=util/ssromega.v\
Felipe Cerqueira's avatar
Felipe Cerqueira committed
98
  util/seqset.v\
99
  util/sorting.v\
100
  util/minmax.v\
Felipe Cerqueira's avatar
Felipe Cerqueira committed
101
102
  util/powerset.v\
  util/all.v\
103
  util/ord_quantifier.v\
104
  util/nat.v\
Felipe Cerqueira's avatar
Felipe Cerqueira committed
105
  util/sum.v\
106
  util/bigord.v\
Felipe Cerqueira's avatar
Felipe Cerqueira committed
107
  util/counting.v\
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
  util/tactics.v\
  util/induction.v\
  util/list.v\
  util/divround.v\
  util/bigcat.v\
  util/fixedpoint.v\
  util/notation.v\
  analysis/global/jitter/bertogna_fp_comp.v\
  analysis/global/jitter/interference_bound_edf.v\
  analysis/global/jitter/workload_bound.v\
  analysis/global/jitter/bertogna_edf_comp.v\
  analysis/global/jitter/bertogna_fp_theory.v\
  analysis/global/jitter/interference_bound.v\
  analysis/global/jitter/interference_bound_fp.v\
  analysis/global/jitter/bertogna_edf_theory.v\
  analysis/global/parallel/bertogna_fp_comp.v\
  analysis/global/parallel/interference_bound_edf.v\
  analysis/global/parallel/workload_bound.v\
  analysis/global/parallel/bertogna_edf_comp.v\
  analysis/global/parallel/bertogna_fp_theory.v\
  analysis/global/parallel/interference_bound.v\
  analysis/global/parallel/interference_bound_fp.v\
  analysis/global/parallel/bertogna_edf_theory.v\
  analysis/global/basic/bertogna_fp_comp.v\
  analysis/global/basic/interference_bound_edf.v\
  analysis/global/basic/workload_bound.v\
  analysis/global/basic/bertogna_edf_comp.v\
  analysis/global/basic/bertogna_fp_theory.v\
  analysis/global/basic/interference_bound.v\
  analysis/global/basic/interference_bound_fp.v\
  analysis/global/basic/bertogna_edf_theory.v\
  analysis/apa/bertogna_fp_comp.v\
Felipe Cerqueira's avatar
Felipe Cerqueira committed
140
  analysis/apa/interference_bound_edf.v\
141
  analysis/apa/workload_bound.v\
Felipe Cerqueira's avatar
Felipe Cerqueira committed
142
  analysis/apa/bertogna_edf_comp.v\
143
144
145
  analysis/apa/bertogna_fp_theory.v\
  analysis/apa/interference_bound.v\
  analysis/apa/interference_bound_fp.v\
Felipe Cerqueira's avatar
Felipe Cerqueira committed
146
  analysis/apa/bertogna_edf_theory.v\
147
148
149
  analysis/uni/basic/workload_bound_fp.v\
  analysis/uni/basic/fp_rta_comp.v\
  analysis/uni/basic/fp_rta_theory.v\
150
151
152
  model/arrival_sequence.v\
  model/task.v\
  model/task_arrival.v\
153
154
  model/partitioned/schedulability.v\
  model/partitioned/schedule.v\
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
  model/priority.v\
  model/global/workload.v\
  model/global/schedulability.v\
  model/global/jitter/interference_edf.v\
  model/global/jitter/interference.v\
  model/global/jitter/job.v\
  model/global/jitter/constrained_deadlines.v\
  model/global/jitter/schedule.v\
  model/global/jitter/platform.v\
  model/global/response_time.v\
  model/global/basic/interference_edf.v\
  model/global/basic/interference.v\
  model/global/basic/constrained_deadlines.v\
  model/global/basic/schedule.v\
  model/global/basic/platform.v\
  model/job.v\
  model/time.v\
172
  model/arrival_bounds.v\
Felipe Cerqueira's avatar
Felipe Cerqueira committed
173
174
  model/apa/interference_edf.v\
  model/apa/interference.v\
175
  model/apa/affinity.v\
Felipe Cerqueira's avatar
Felipe Cerqueira committed
176
  model/apa/constrained_deadlines.v\
177
  model/apa/platform.v\
178
  model/uni/workload.v\
179
  model/uni/transformation/construction.v\
180
181
182
183
184
185
186
187
188
189
  model/uni/schedulability.v\
  model/uni/schedule_of_task.v\
  model/uni/response_time.v\
  model/uni/schedule.v\
  model/uni/basic/arrival_bounds.v\
  model/uni/basic/busy_interval.v\
  model/uni/basic/platform.v\
  model/uni/service.v\
  implementation/arrival_sequence.v\
  implementation/task.v\
190
191
192
193
194
195
196
197
198
199
200
  implementation/global/jitter/arrival_sequence.v\
  implementation/global/jitter/task.v\
  implementation/global/jitter/bertogna_edf_example.v\
  implementation/global/jitter/job.v\
  implementation/global/jitter/bertogna_fp_example.v\
  implementation/global/jitter/schedule.v\
  implementation/global/parallel/bertogna_edf_example.v\
  implementation/global/parallel/bertogna_fp_example.v\
  implementation/global/basic/bertogna_edf_example.v\
  implementation/global/basic/bertogna_fp_example.v\
  implementation/global/basic/schedule.v\
201
  implementation/job.v\
202
203
204
205
206
  implementation/apa/arrival_sequence.v\
  implementation/apa/task.v\
  implementation/apa/bertogna_edf_example.v\
  implementation/apa/job.v\
  implementation/apa/bertogna_fp_example.v\
207
208
209
  implementation/apa/schedule.v\
  implementation/uni/basic/fp_rta_example.v\
  implementation/uni/basic/schedule.v
Felipe Cerqueira's avatar
Felipe Cerqueira committed
210

Felipe Cerqueira's avatar
Felipe Cerqueira committed
211
212
213
214
ifneq ($(filter-out archclean clean cleanall printenv,$(MAKECMDGOALS)),)
-include $(addsuffix .d,$(VFILES))
else
ifeq ($(MAKECMDGOALS),)
Felipe Cerqueira's avatar
Felipe Cerqueira committed
215
-include $(addsuffix .d,$(VFILES))
Felipe Cerqueira's avatar
Felipe Cerqueira committed
216
217
218
endif
endif

Felipe Cerqueira's avatar
Felipe Cerqueira committed
219
220
.SECONDARY: $(addsuffix .d,$(VFILES))

Felipe Cerqueira's avatar
Felipe Cerqueira committed
221
222
VO=vo
VOFILES:=$(VFILES:.v=.$(VO))
Felipe Cerqueira's avatar
Felipe Cerqueira committed
223
224
225
226
GLOBFILES:=$(VFILES:.v=.glob)
GFILES:=$(VFILES:.v=.g)
HTMLFILES:=$(VFILES:.v=.html)
GHTMLFILES:=$(VFILES:.v=.g.html)
Felipe Cerqueira's avatar
Felipe Cerqueira committed
227
228
229
OBJFILES=$(call vo_to_obj,$(VOFILES))
ALLNATIVEFILES=$(OBJFILES:.o=.cmi) $(OBJFILES:.o=.cmo) $(OBJFILES:.o=.cmx) $(OBJFILES:.o=.cmxs)
NATIVEFILES=$(foreach f, $(ALLNATIVEFILES), $(wildcard $f))
Felipe Cerqueira's avatar
Felipe Cerqueira committed
230
231
232
233
234
235
236
237
238
239
240
241
242
243
ifeq '$(HASNATDYNLINK)' 'true'
HASNATDYNLINK_OR_EMPTY := yes
else
HASNATDYNLINK_OR_EMPTY :=
endif

#######################################
#                                     #
# Definition of the toplevel targets. #
#                                     #
#######################################

all: $(VOFILES) 

Felipe Cerqueira's avatar
Felipe Cerqueira committed
244
quick: $(VOFILES:.vo=.vio)
Felipe Cerqueira's avatar
Felipe Cerqueira committed
245

Felipe Cerqueira's avatar
Felipe Cerqueira committed
246
247
248
249
vio2vo:
	$(COQC) $(COQDEBUG) $(COQFLAGS) -schedule-vio2vo $(J) $(VOFILES:%.vo=%.vio)
checkproofs:
	$(COQC) $(COQDEBUG) $(COQFLAGS) -schedule-vio-checking $(J) $(VOFILES:%.vo=%.vio)
Felipe Cerqueira's avatar
Felipe Cerqueira committed
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
gallina: $(GFILES)

html: $(GLOBFILES) $(VFILES)
	- mkdir -p html
	$(COQDOC) -toc $(COQDOCFLAGS) -html $(COQDOCLIBS) -d html $(VFILES)

gallinahtml: $(GLOBFILES) $(VFILES)
	- mkdir -p html
	$(COQDOC) -toc $(COQDOCFLAGS) -html -g $(COQDOCLIBS) -d html $(VFILES)

all.ps: $(VFILES)
	$(COQDOC) -toc $(COQDOCFLAGS) -ps $(COQDOCLIBS) -o $@ `$(COQDEP) -sort -suffix .v $^`

all-gal.ps: $(VFILES)
	$(COQDOC) -toc $(COQDOCFLAGS) -ps -g $(COQDOCLIBS) -o $@ `$(COQDEP) -sort -suffix .v $^`

all.pdf: $(VFILES)
	$(COQDOC) -toc $(COQDOCFLAGS) -pdf $(COQDOCLIBS) -o $@ `$(COQDEP) -sort -suffix .v $^`

all-gal.pdf: $(VFILES)
	$(COQDOC) -toc $(COQDOCFLAGS) -pdf -g $(COQDOCLIBS) -o $@ `$(COQDEP) -sort -suffix .v $^`

validate: $(VOFILES)
273
	$(COQCHK) $(COQCHKFLAGS) $(COQLIBS) $(addprefix rt., $(subst /,., $(^:.vo=)))
Felipe Cerqueira's avatar
Felipe Cerqueira committed
274
275
276
277
278
279

beautify: $(VFILES:=.beautified)
	for file in $^; do mv $${file%.beautified} $${file%beautified}old && mv $${file} $${file%.beautified}; done
	@echo 'Do not do "make clean" until you are sure that everything went well!'
	@echo 'If there were a problem, execute "for file in $$(find . -name \*.v.old -print); do mv $${file} $${file%.old}; done" in your shell/'

Felipe Cerqueira's avatar
Felipe Cerqueira committed
280
.PHONY: all archclean beautify byte clean cleanall gallina gallinahtml html install install-doc install-natdynlink install-toploop opt printenv quick uninstall userinstall validate vio2vo
Felipe Cerqueira's avatar
Felipe Cerqueira committed
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297

####################
#                  #
# Special targets. #
#                  #
####################

byte:
	$(MAKE) all "OPT:=-byte"

opt:
	$(MAKE) all "OPT:=-opt"

userinstall:
	+$(MAKE) USERINSTALL=true install

install:
Felipe Cerqueira's avatar
Felipe Cerqueira committed
298
299
300
	cd "." && for i in $(VOFILES) $(VFILES) $(GLOBFILES) $(NATIVEFILES) $(CMOFILES) $(CMIFILES) $(CMAFILES); do \
	 install -d "`dirname "$(DSTROOT)"$(COQLIBINSTALL)/rt/$$i`"; \
	 install -m 0644 $$i "$(DSTROOT)"$(COQLIBINSTALL)/rt/$$i; \
Felipe Cerqueira's avatar
Felipe Cerqueira committed
301
302
303
	done

install-doc:
Felipe Cerqueira's avatar
Felipe Cerqueira committed
304
	install -d "$(DSTROOT)"$(COQDOCINSTALL)/rt/html
Felipe Cerqueira's avatar
Felipe Cerqueira committed
305
	for i in html/*; do \
Felipe Cerqueira's avatar
Felipe Cerqueira committed
306
	 install -m 0644 $$i "$(DSTROOT)"$(COQDOCINSTALL)/rt/$$i;\
Felipe Cerqueira's avatar
Felipe Cerqueira committed
307
308
	done

Felipe Cerqueira's avatar
Felipe Cerqueira committed
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
uninstall_me.sh: Makefile
	echo '#!/bin/sh' > $@
	printf 'cd "$${DSTROOT}"$(COQLIBINSTALL)/rt && rm -f $(VOFILES) $(VFILES) $(GLOBFILES) $(NATIVEFILES) $(CMOFILES) $(CMIFILES) $(CMAFILES) && find . -type d -and -empty -delete\ncd "$${DSTROOT}"$(COQLIBINSTALL) && find "rt" -maxdepth 0 -and -empty -exec rmdir -p \{\} \;\n' >> "$@"
	printf 'cd "$${DSTROOT}"$(COQDOCINSTALL)/rt \\\n' >> "$@"
	printf '&& rm -f $(shell find "html" -maxdepth 1 -and -type f -print)\n' >> "$@"
	printf 'cd "$${DSTROOT}"$(COQDOCINSTALL) && find rt/html -maxdepth 0 -and -empty -exec rmdir -p \{\} \;\n' >> "$@"
	chmod +x $@

uninstall: uninstall_me.sh
	sh $<

.merlin:
	@echo 'FLG -rectypes' > .merlin
	@echo "B $(COQLIB) kernel" >> .merlin
	@echo "B $(COQLIB) lib" >> .merlin
	@echo "B $(COQLIB) library" >> .merlin
	@echo "B $(COQLIB) parsing" >> .merlin
	@echo "B $(COQLIB) pretyping" >> .merlin
	@echo "B $(COQLIB) interp" >> .merlin
	@echo "B $(COQLIB) printing" >> .merlin
	@echo "B $(COQLIB) intf" >> .merlin
	@echo "B $(COQLIB) proofs" >> .merlin
	@echo "B $(COQLIB) tactics" >> .merlin
	@echo "B $(COQLIB) tools" >> .merlin
	@echo "B $(COQLIB) toplevel" >> .merlin
	@echo "B $(COQLIB) stm" >> .merlin
	@echo "B $(COQLIB) grammar" >> .merlin
	@echo "B $(COQLIB) config" >> .merlin

clean::
	rm -f $(OBJFILES) $(OBJFILES:.o=.native) $(NATIVEFILES)
	find . -name .coq-native -type d -empty -delete
Björn Brandenburg's avatar
Björn Brandenburg committed
341
	find . -name "*.vo" -delete -o -name "*.glob" -delete -o -name "*.v.d" -delete -o -name "*.vio" -delete -o -name "*.old" -delete -o -name "*.beautified" -delete
Felipe Cerqueira's avatar
Felipe Cerqueira committed
342
	rm -f all.ps all-gal.ps all.pdf all-gal.pdf all.glob $(VFILES:.v=.glob) $(VFILES:.v=.tex) $(VFILES:.v=.g.tex) all-mli.tex
Felipe Cerqueira's avatar
Felipe Cerqueira committed
343
344
345
346
	- rm -rf html mlihtml uninstall_me.sh

cleanall:: clean
	rm -f $(patsubst %.v,.%.aux,$(VFILES))
Felipe Cerqueira's avatar
Felipe Cerqueira committed
347

Felipe Cerqueira's avatar
Felipe Cerqueira committed
348
archclean::
Felipe Cerqueira's avatar
Felipe Cerqueira committed
349
350
351
	rm -f *.cmx *.o

printenv:
Felipe Cerqueira's avatar
Felipe Cerqueira committed
352
353
354
355
356
357
358
359
360
361
362
363
	@"$(COQBIN)coqtop" -config
	@echo 'CAMLC =	$(CAMLC)'
	@echo 'CAMLOPTC =	$(CAMLOPTC)'
	@echo 'PP =	$(PP)'
	@echo 'COQFLAGS =	$(COQFLAGS)'
	@echo 'COQLIBINSTALL =	$(COQLIBINSTALL)'
	@echo 'COQDOCINSTALL =	$(COQDOCINSTALL)'

Makefile: _CoqProject
	mv -f $@ $@.bak
	"$(COQBIN)coq_makefile" -f $< -o $@

Felipe Cerqueira's avatar
Felipe Cerqueira committed
364
365
366
367
368
369
370

###################
#                 #
# Implicit rules. #
#                 #
###################

Felipe Cerqueira's avatar
Felipe Cerqueira committed
371
372
373
374
$(VOFILES): %.vo: %.v
	$(COQC) $(COQDEBUG) $(COQFLAGS) $*

$(GLOBFILES): %.glob: %.v
Felipe Cerqueira's avatar
Felipe Cerqueira committed
375
376
	$(COQC) $(COQDEBUG) $(COQFLAGS) $*

Felipe Cerqueira's avatar
Felipe Cerqueira committed
377
378
$(VFILES:.v=.vio): %.vio: %.v
	$(COQC) -quick $(COQDEBUG) $(COQFLAGS) $*
Felipe Cerqueira's avatar
Felipe Cerqueira committed
379

Felipe Cerqueira's avatar
Felipe Cerqueira committed
380
$(GFILES): %.g: %.v
Felipe Cerqueira's avatar
Felipe Cerqueira committed
381
382
	$(GALLINA) $<

Felipe Cerqueira's avatar
Felipe Cerqueira committed
383
$(VFILES:.v=.tex): %.tex: %.v
Felipe Cerqueira's avatar
Felipe Cerqueira committed
384
385
	$(COQDOC) $(COQDOCFLAGS) -latex $< -o $@

Felipe Cerqueira's avatar
Felipe Cerqueira committed
386
$(HTMLFILES): %.html: %.v %.glob
Felipe Cerqueira's avatar
Felipe Cerqueira committed
387
388
	$(COQDOC) $(COQDOCFLAGS) -html $< -o $@

Felipe Cerqueira's avatar
Felipe Cerqueira committed
389
$(VFILES:.v=.g.tex): %.g.tex: %.v
Felipe Cerqueira's avatar
Felipe Cerqueira committed
390
391
	$(COQDOC) $(COQDOCFLAGS) -latex -g $< -o $@

Felipe Cerqueira's avatar
Felipe Cerqueira committed
392
393
$(GHTMLFILES): %.g.html: %.v %.glob
	$(COQDOC) $(COQDOCFLAGS)  -html -g $< -o $@
Felipe Cerqueira's avatar
Felipe Cerqueira committed
394

Felipe Cerqueira's avatar
Felipe Cerqueira committed
395
396
$(addsuffix .d,$(VFILES)): %.v.d: %.v
	$(COQDEP) $(COQLIBS) "$<" > "$@" || ( RV=$$?; rm -f "$@"; exit $${RV} )
Felipe Cerqueira's avatar
Felipe Cerqueira committed
397

Felipe Cerqueira's avatar
Felipe Cerqueira committed
398
$(addsuffix .beautified,$(VFILES)): %.v.beautified:
Felipe Cerqueira's avatar
Felipe Cerqueira committed
399
400
401
402
403
404
405
406
	$(COQC) $(COQDEBUG) $(COQFLAGS) -beautify $*

# WARNING
#
# This Makefile has been automagically generated
# Edit at your own risks !
#
# END OF WARNING
Felipe Cerqueira's avatar
Felipe Cerqueira committed
407