summaryrefslogtreecommitdiff
path: root/Makefile.src.in
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile.src.in')
-rw-r--r--Makefile.src.in5
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile.src.in b/Makefile.src.in
index 21317ebce..6c5702e49 100644
--- a/Makefile.src.in
+++ b/Makefile.src.in
@@ -58,7 +58,10 @@ RES := $(shell mkdir -p $(BIN_DIR) $(sort $(dir $(OBJS))))
# Make sure endian_target.h is reasable as if it was in the src/ dir
CFLAGS += -I $(SRC_OBJS_DIR) -I $(LANG_OBJS_DIR)
-CFLAGS_MAKEDEP += -I $(SRC_OBJS_DIR) -I $(LANG_OBJS_DIR) -I $(SCRIPT_SRC_DIR)
+CFLAGS_MAKEDEP += -I $(SRC_OBJS_DIR) -I $(LANG_OBJS_DIR)
+ifdef SCRIPT_SRC_DIR
+ CFLAGS_MAKEDEP += -I $(SCRIPT_SRC_DIR)
+endif
ENDIAN_TARGETS := endian_target.h $(ENDIAN_CHECK)