diff options
Diffstat (limited to 'makefile')
-rw-r--r-- | makefile | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -509,7 +509,7 @@ CPPONLYFLAGS = # CFLAGS is defined based on C or C++ targets # (remember, expansion only happens when used, so doing it here is ok) -CFLAGS = $(CCOMFLAGS) $(CPPONLYFLAGS) +CFLAGS = $(CCOMFLAGS) $(CPPONLYFLAGS) $(INCPATH) # we compile C-only to C89 standard with GNU extensions # we compile C++ code to C++98 standard with GNU extensions @@ -864,7 +864,6 @@ include $(SRC)/tools/tools.mak include $(SRC)/regtests/regtests.mak # combine the various definitions to one -CCOMFLAGS += $(INCPATH) CDEFS = $(DEFS) # TODO: -x c++ should not be hard-coded @@ -1020,7 +1019,7 @@ $(OBJ)/%.a: ifeq ($(TARGETOS),macosx) $(OBJ)/%.o: $(SRC)/%.m | $(OSPREBUILD) @echo Objective-C compiling $<... - $(CC) $(CDEFS) $(COBJFLAGS) $(CCOMFLAGS) -c $< -o $@ + $(CC) $(CDEFS) $(COBJFLAGS) $(CCOMFLAGS) $(INCPATH) -c $< -o $@ endif |