aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libmaple/rules.mk3
-rw-r--r--libmaple/stm32f1/rules.mk2
-rw-r--r--libmaple/usb/rules.mk2
3 files changed, 4 insertions, 3 deletions
diff --git a/libmaple/rules.mk b/libmaple/rules.mk
index cf95b48..cbff931 100644
--- a/libmaple/rules.mk
+++ b/libmaple/rules.mk
@@ -5,9 +5,10 @@ d := $(dir)
BUILDDIRS += $(BUILD_PATH)/$(d)
LIBMAPLE_INCLUDES := -I$(LIBMAPLE_PATH)/include -I$(LIBMAPLE_MODULE_FAMILY)/include
+LIBMAPLE_PRIVATE_INCLUDES := -I$(LIBMAPLE_PATH)
# Local flags
-CFLAGS_$(d) = -I$(d) $(LIBMAPLE_INCLUDES) -Wall -Werror
+CFLAGS_$(d) = $(LIBMAPLE_PRIVATE_INCLUDES) $(LIBMAPLE_INCLUDES) -Wall -Werror
# Local rules and targets
cSRCS_$(d) := adc.c \
diff --git a/libmaple/stm32f1/rules.mk b/libmaple/stm32f1/rules.mk
index 03d2f95..5267e9b 100644
--- a/libmaple/stm32f1/rules.mk
+++ b/libmaple/stm32f1/rules.mk
@@ -5,7 +5,7 @@ d := $(dir)
BUILDDIRS += $(BUILD_PATH)/$(d)
# Local flags
-CFLAGS_$(d) = -I$(d) $(LIBMAPLE_INCLUDES) -Wall -Werror
+CFLAGS_$(d) = -I$(d) $(LIBMAPLE_PRIVATE_INCLUDES) $(LIBMAPLE_INCLUDES) -Wall -Werror
# Local rules and targets
sSRCS_$(d) := isrs_performance.S \
diff --git a/libmaple/usb/rules.mk b/libmaple/usb/rules.mk
index 9ef8d70..816fad6 100644
--- a/libmaple/usb/rules.mk
+++ b/libmaple/usb/rules.mk
@@ -6,7 +6,7 @@ BUILDDIRS += $(BUILD_PATH)/$(d)
BUILDDIRS += $(BUILD_PATH)/$(d)/usb_lib
# Local flags
-CFLAGS_$(d) = -I$(d) -I$(d)/usb_lib $(LIBMAPLE_INCLUDES) -Wall
+CFLAGS_$(d) = -I$(d) -I$(d)/usb_lib $(LIBMAPLE_INCLUDES) $(LIBMAPLE_PRIVATE_INCLUDES) -Wall
# Local rules and targets
sSRCS_$(d) :=