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 ...@@ -381,11 +381,11 @@ install_doc: doc
$(OCAMLIFACE)/caml_cduce.cmo: $(OCAMLIFACE)/caml_cduce.cmo:
@cd $(OCAMLIFACE); \ @cd $(OCAMLIFACE); \
$(MAKE) caml_cduce.cmo $(MAKE) CAMLC="$(CAMLC_P)" CAMLOPT="$(CAMLOPT_P)" caml_cduce.cmo
$(OCAMLIFACE)/caml_cduce.cmx: $(OCAMLIFACE)/caml_cduce.cmx:
@cd $(OCAMLIFACE); \ @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.cmo: SYNTAX += q_MLast.cmo
$(OCAMLIFACE)/mlstub.cmx: SYNTAX += q_MLast.cmo $(OCAMLIFACE)/mlstub.cmx: SYNTAX += q_MLast.cmo
...@@ -29,14 +29,15 @@ ocaml_files: ...@@ -29,14 +29,15 @@ ocaml_files:
caml_cduce.cmo: ocaml_files caml_cduce.cmo: ocaml_files
@echo "Build $@" @echo "Build $@"
(cd ocaml_files; \ (cd ocaml_files; \
ocamlc $(FORPACKOPT1) -c $(COMPILE_FILES);\ $(CAMLC) $(FORPACKOPT1) -c $(COMPILE_FILES);\
ocamlc $(FORPACKOPT2) -pack -o $@ $(OBJECTS); \ $(CAMLC) $(FORPACKOPT2) -pack -o $@ $(OBJECTS); \
cp caml_cduce.cmo caml_cduce.cmi ..) cp caml_cduce.cmo caml_cduce.cmi ..)
caml_cduce.cmx: ocaml_files caml_cduce.cmx: ocaml_files
@echo "Build $@" @echo "Build $@"
(cd ocaml_files; ocamlopt $(FORPACKOPT1) -c $(COMPILE_FILES);\ (cd ocaml_files; \
ocamlopt $(FORPACKOPT2) -pack -o $@ $(XOBJECTS); \ $(CAMLOPT) $(FORPACKOPT1) -c $(COMPILE_FILES);\
$(CAMLOPT) $(FORPACKOPT2) -pack -o $@ $(XOBJECTS); \
cp caml_cduce.cmx caml_cduce.o caml_cduce.cmi ..) cp caml_cduce.cmx caml_cduce.o caml_cduce.cmi ..)
clean: 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