]> git.donarmstrong.com Git - qmk_firmware.git/commitdiff
[Jack & Erez] Adds an option for user-specific config.h files
authorErez Zukerman <ezuk@madmimi.com>
Fri, 6 May 2016 02:19:59 +0000 (22:19 -0400)
committerErez Zukerman <ezuk@madmimi.com>
Fri, 6 May 2016 02:21:39 +0000 (22:21 -0400)
tmk_core/rules.mk

index 860fc1a9310da970ebecba597c150802f522f37e..69c7985b4854008faee6e10676601c042e2752fc 100644 (file)
@@ -142,6 +142,9 @@ CFLAGS += $(CSTANDARD)
 ifdef CONFIG_H
     CFLAGS += -include $(CONFIG_H)
 endif
+ifdef CONFIG_USER_H
+    CFLAGS += -include $(CONFIG_USER_H)
+endif
 
 
 #---------------- Compiler Options C++ ----------------
@@ -176,6 +179,9 @@ CPPFLAGS += $(patsubst %,-I%,$(EXTRAINCDIRS))
 ifdef CONFIG_H
     CPPFLAGS += -include $(CONFIG_H)
 endif
+ifdef CONFIG_USER_H
+    CPPFLAGS += -include $(CONFIG_USER_H)
+endif
 
 
 #---------------- Assembler Options ----------------
@@ -192,6 +198,9 @@ ASFLAGS += $(patsubst %,-I%,$(EXTRAINCDIRS))
 ifdef CONFIG_H
     ASFLAGS += -include $(CONFIG_H)
 endif
+ifdef CONFIG_USER_H
+    ASFLAGS += -include $(CONFIG_USER_H)
+endif
 
 
 #---------------- Library Options ----------------