|
|
92a94f |
diff --git a/Bindings/OCaml/Makefile.in b/Bindings/OCaml/Makefile.in
|
|
|
92a94f |
index 47f7201..a97f55c 100644
|
|
|
92a94f |
--- a/Bindings/OCaml/Makefile.in
|
|
|
92a94f |
+++ b/Bindings/OCaml/Makefile.in
|
|
|
92a94f |
@@ -55,25 +55,25 @@ OCAML_FILES = $(OCAML_MISC) $(OCAML_CLIBS) $(OCAML_BCLIB) $(OCAML_NCLIB)
|
|
|
92a94f |
all : $(OCAML_FILES)
|
|
|
92a94f |
|
|
|
92a94f |
$(OCAML_CLIBS) : brlapi_stubs.$O brlapi
|
|
|
92a94f |
- $(OCAMLMKLIB) $(API_LDFLAGS) -oc $(OCAML_LIB)_stubs brlapi_stubs.$O
|
|
|
92a94f |
+ $(OCAMLMKLIB) -ldopt "$(LDFLAGS)" $(API_LDFLAGS) -oc $(OCAML_LIB)_stubs brlapi_stubs.$O
|
|
|
92a94f |
|
|
|
92a94f |
$(OCAML_BCLIB) : $(OCAML_CLIBS) brlapi.cmo
|
|
|
92a94f |
- $(OCAMLC) -a $(OCAMLMKLIB_FLAGS) -o $(OCAML_LIB).cma brlapi.cmo
|
|
|
92a94f |
+ $(OCAMLC) -ccopt "$(CFLAGS)" -a $(OCAMLMKLIB_FLAGS) -o $(OCAML_LIB).cma brlapi.cmo
|
|
|
92a94f |
|
|
|
92a94f |
$(OCAML_NCLIB) : $(OCAML_CLIBS) brlapi.cmx
|
|
|
92a94f |
- $(OCAMLMKLIB) $(OCAMLMKLIBOPT_FLAGS) -o $(OCAML_LIB) brlapi.cmx
|
|
|
92a94f |
+ $(OCAMLMKLIB) -ldopt "$(LDFLAGS)" $(OCAMLMKLIBOPT_FLAGS) -o $(OCAML_LIB) brlapi.cmx
|
|
|
92a94f |
|
|
|
92a94f |
brlapi.cmi: brlapi.mli
|
|
|
92a94f |
- $(OCAMLC) -o $@ -c brlapi.mli
|
|
|
92a94f |
+ $(OCAMLC) -ccopt "$(CFLAGS)" -o $@ -c brlapi.mli
|
|
|
92a94f |
|
|
|
92a94f |
brlapi.cmo: brlapi.ml brlapi.cmi
|
|
|
92a94f |
- $(OCAMLC) -o $@ -c brlapi.ml
|
|
|
92a94f |
+ $(OCAMLC) -ccopt "$(CFLAGS)" -o $@ -c brlapi.ml
|
|
|
92a94f |
|
|
|
92a94f |
brlapi.cmx: brlapi.ml brlapi.cmi
|
|
|
92a94f |
- $(OCAMLOPT) -o $@ -c brlapi.cmx brlapi.ml
|
|
|
92a94f |
+ $(OCAMLOPT) -ccopt "$(CFLAGS)" -o $@ -c brlapi.cmx brlapi.ml
|
|
|
92a94f |
|
|
|
92a94f |
brlapi_stubs.$O: $(SRC_DIR)/brlapi_stubs.c
|
|
|
92a94f |
- $(OCAMLC) -I $(BLD_TOP)$(PGM_DIR) -I $(SRC_TOP)$(PGM_DIR) -c $(SRC_DIR)/brlapi_stubs.c
|
|
|
92a94f |
+ $(OCAMLC) -ccopt "$(CFLAGS)" -I $(BLD_TOP)$(PGM_DIR) -I $(SRC_TOP)$(PGM_DIR) -c $(SRC_DIR)/brlapi_stubs.c
|
|
|
92a94f |
|
|
|
92a94f |
brlapi.mli : $(SRC_DIR)/main.mli constants.mli
|
|
|
92a94f |
cat $(SRC_DIR)/main.mli constants.mli > $@
|