diff options
author | Sébastien Hinderer <Sebastien.Hinderer@inria.fr> | 2017-03-16 10:21:00 +0100 |
---|---|---|
committer | Sébastien Hinderer <Sebastien.Hinderer@inria.fr> | 2017-03-29 11:10:06 +0200 |
commit | f2d5d60376096c241fb0e9679f933750e5401cee (patch) | |
tree | 57f1dff35cd2ec635c84a8c86d6d8cfc66fec726 /otherlibs/Makefile | |
parent | 3262da1839af92b076c84e8a65636650f38dcd09 (diff) | |
download | ocaml-f2d5d60376096c241fb0e9679f933750e5401cee.tar.gz |
Define new build variables for C compiler and preprocessor flags
Diffstat (limited to 'otherlibs/Makefile')
-rw-r--r-- | otherlibs/Makefile | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/otherlibs/Makefile b/otherlibs/Makefile index 44d746b634..0e2813c955 100644 --- a/otherlibs/Makefile +++ b/otherlibs/Makefile @@ -29,8 +29,8 @@ endif CAMLC=$(CAMLRUN) $(ROOTDIR)/ocamlc -nostdlib -I $(ROOTDIR)/stdlib CAMLOPT=$(CAMLRUN) $(ROOTDIR)/ocamlopt -nostdlib \ -I $(ROOTDIR)/stdlib -CFLAGS = $(BYTECFLAGS) $(BYTECCCOMPOPTS) \ - -I$(ROOTDIR)/byterun $(SHAREDCCCOMPOPTS) $(EXTRACFLAGS) +CFLAGS += $(SHAREDCCCOMPOPTS) $(EXTRACFLAGS) +CPPFLAGS += -I$(ROOTDIR)/byterun # Compilation options COMPFLAGS=-absname -w +a-4-9-41-42-44-45-48 -warn-error A -bin-annot -g \ @@ -113,4 +113,4 @@ clean:: partialclean $(CAMLOPT) -c $(COMPFLAGS) $(OPTCOMPFLAGS) $< .c.$(O): - $(CC) $(CFLAGS) -c $< + $(CC) -c $(CFLAGS) $(CPPFLAGS) $< |