blob: ac76488238d43be2468323abc8329ecaa99993e9 (
plain)
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
|
--- a/Makefile.in 2020-06-13 22:27:11.971906805 +0200
+++ b/Makefile.in 2020-06-13 22:28:14.193938195 +0200
@@ -73,19 +73,19 @@
opt: src/$(LIBNAME).cma src/$(LIBNAME).cmxa src/$(LIBNAME).cmxs
src/$(LIBNAME).cma: src/$(LIBNAME).cmo
- $(OCAMLC) -a $(BFLAGS_LIGHT) -o $@ $^
+ $(OCAMLC) -a $(BFLAGS_LIGHT) -ccopt "$(CFLAGS)" -o $@ $^
src/$(LIBNAME).cmxa: src/$(LIBNAME).cmx
- $(OCAMLOPT) -a $(OFLAGS_LIGHT) -o $@ $^
+ $(OCAMLOPT) -a $(OFLAGS_LIGHT) -ccopt "$(CFLAGS)" -o $@ $^
src/$(LIBNAME).cmxs: src/$(LIBNAME).cmx
- $(OCAMLOPT) -shared $(OFLAGS_LIGHT) -o $@ $^
+ $(OCAMLOPT) -shared $(OFLAGS_LIGHT) -ccopt "$(CFLAGS)" -cclib "$(LDFLAGS)" -o $@ $^
src/$(LIBNAME).cmo: $(CMO) # src/$(LIBNAME).cmi
- $(OCAMLC) $(BFLAGS_LIGHT) -pack -o src/$(LIBNAME).cmo $^
+ $(OCAMLC) $(BFLAGS_LIGHT) -ccopt "$(CFLAGS)" -pack -o src/$(LIBNAME).cmo $^
src/$(LIBNAME).cmx: $(CMX) # src/$(LIBNAME).cmi
- $(OCAMLOPT) $(OFLAGS_LIGHT) -pack -o src/$(LIBNAME).cmx $^
+ $(OCAMLOPT) $(OFLAGS_LIGHT) -pack -ccopt "$(CFLAGS)" -o src/$(LIBNAME).cmx $^
src/extSigs.ml: src/extSigs.mli
cp src/extSigs.mli src/extSigs.ml
@@ -125,16 +125,16 @@
.SUFFIXES: .mli .ml .cmi .cmo .cmx .mll .mly .tex .dvi .ps .html
.mli.cmi:
- $(OCAMLC) -c $(BFLAGS) $<
+ $(OCAMLC) -c $(BFLAGS) -ccopt "$(CFLAGS)" $<
.ml.cmo:
- $(OCAMLC) -c $(BFLAGS) $<
+ $(OCAMLC) -c $(BFLAGS) -ccopt "$(CFLAGS)" $<
.ml.o:
- $(OCAMLOPT) -c $(OFLAGS) $<
+ $(OCAMLOPT) -c $(OFLAGS) -ccopt "$(CFLAGS)" $<
.ml.cmx:
- $(OCAMLOPT) -c $(OFLAGS) $<
+ $(OCAMLOPT) -c $(OFLAGS) -ccopt "$(CFLAGS)" $<
.mll.ml:
$(OCAMLLEX) $< > /dev/null
|