Commit c2259c44 authored by Kim Nguyễn's avatar Kim Nguyễn Committed by Pietro Abate

Make sure that the -g flag is correctly propagated to the auxiliary Makefile...

Make sure that the -g flag is correctly propagated to the auxiliary Makefile when compiling the ocaml/cduce interface
parent 556fe80e
......@@ -381,11 +381,11 @@ install_doc: doc
$(OCAMLIFACE)/caml_cduce.cmo:
@cd $(OCAMLIFACE); \
$(MAKE) caml_cduce.cmo
$(MAKE) CAMLC="$(CAMLC_P)" CAMLOPT="$(CAMLOPT_P)" caml_cduce.cmo
$(OCAMLIFACE)/caml_cduce.cmx:
@cd $(OCAMLIFACE); \
$(MAKE) caml_cduce.cmx
$(MAKE) CAMLC="$(CAMLC_P)" CAMLOPT="$(CAMLOPT_P)" caml_cduce.cmx
$(OCAMLIFACE)/mlstub.cmo: SYNTAX += q_MLast.cmo
$(OCAMLIFACE)/mlstub.cmx: SYNTAX += q_MLast.cmo
......@@ -29,14 +29,15 @@ ocaml_files:
caml_cduce.cmo: ocaml_files
@echo "Build $@"
(cd ocaml_files; \
ocamlc $(FORPACKOPT1) -c $(COMPILE_FILES);\
ocamlc $(FORPACKOPT2) -pack -o $@ $(OBJECTS); \
$(CAMLC) $(FORPACKOPT1) -c $(COMPILE_FILES);\
$(CAMLC) $(FORPACKOPT2) -pack -o $@ $(OBJECTS); \
cp caml_cduce.cmo caml_cduce.cmi ..)
caml_cduce.cmx: ocaml_files
@echo "Build $@"
(cd ocaml_files; ocamlopt $(FORPACKOPT1) -c $(COMPILE_FILES);\
ocamlopt $(FORPACKOPT2) -pack -o $@ $(XOBJECTS); \
(cd ocaml_files; \
$(CAMLOPT) $(FORPACKOPT1) -c $(COMPILE_FILES);\
$(CAMLOPT) $(FORPACKOPT2) -pack -o $@ $(XOBJECTS); \
cp caml_cduce.cmx caml_cduce.o caml_cduce.cmi ..)
clean:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment