summaryrefslogtreecommitdiffstats
path: root/rules.mk
diff options
context:
space:
mode:
authortmk <nobody@nowhere>2012-04-27 18:57:36 +0200
committertmk <nobody@nowhere>2012-04-27 18:57:36 +0200
commit12f6e9ffa76f685f7256bf1421f918f90c93add1 (patch)
treea4f81dff6ea8450a4f482e06a957056e74d93734 /rules.mk
parent0a4fa89548e8c098c65c289865ebbf1e1c29adf4 (diff)
downloadqmk_firmware-12f6e9ffa76f685f7256bf1421f918f90c93add1.tar.gz
qmk_firmware-12f6e9ffa76f685f7256bf1421f918f90c93add1.tar.xz
Added M0110A support contributed by skagon@github.
- README is written with markdown notation. - m0110.c can handles Arrow keys and Calc keys of M0110A. - EXTRAFLAGS and EXTRALDFLAGS are added in rules.mk to give flags on make command line.
Diffstat (limited to 'rules.mk')
-rw-r--r--rules.mk9
1 files changed, 6 insertions, 3 deletions
diff --git a/rules.mk b/rules.mk
index 3d32adc5f..d575726c7 100644
--- a/rules.mk
+++ b/rules.mk
@@ -230,6 +230,8 @@ LDFLAGS += $(EXTMEMOPTS)
LDFLAGS += $(patsubst %,-L%,$(EXTRALIBDIRS))
LDFLAGS += $(PRINTF_LIB) $(SCANF_LIB) $(MATH_LIB)
#LDFLAGS += -T linker_script.x
+# You can give EXTRALDFLAGS at 'make' command line.
+LDFLAGS += $(EXTRALDFLAGS)
@@ -315,9 +317,10 @@ GENDEPFLAGS = -MMD -MP -MF .dep/$(@F).d
# Combine all necessary flags and optional flags.
# Add target processor to flags.
-ALL_CFLAGS = -mmcu=$(MCU) -I. $(CFLAGS) $(GENDEPFLAGS)
-ALL_CPPFLAGS = -mmcu=$(MCU) -I. -x c++ $(CPPFLAGS) $(GENDEPFLAGS)
-ALL_ASFLAGS = -mmcu=$(MCU) -I. -x assembler-with-cpp $(ASFLAGS)
+# You can give EXTRAFLAGS at 'make' command line.
+ALL_CFLAGS = -mmcu=$(MCU) -I. $(CFLAGS) $(GENDEPFLAGS) $(EXTRAFLAGS)
+ALL_CPPFLAGS = -mmcu=$(MCU) -I. -x c++ $(CPPFLAGS) $(GENDEPFLAGS) $(EXTRAFLAGS)
+ALL_ASFLAGS = -mmcu=$(MCU) -I. -x assembler-with-cpp $(ASFLAGS) $(EXTRAFLAGS)