summaryrefslogtreecommitdiff
path: root/keyboard/planck/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'keyboard/planck/Makefile')
-rw-r--r--keyboard/planck/Makefile33
1 files changed, 20 insertions, 13 deletions
diff --git a/keyboard/planck/Makefile b/keyboard/planck/Makefile
index 3716f0db92..ef11e3d32b 100644
--- a/keyboard/planck/Makefile
+++ b/keyboard/planck/Makefile
@@ -47,20 +47,25 @@ TOP_DIR = ../..
# Directory keyboard dependent files exist
TARGET_DIR = .
+
+
# # project specific files
-# SRC = keymap_common.c \
-# matrix_handwire.c \
-# led.c \
-# backlight.c
-
-# ifdef KEYMAP
-# SRC := keymap_$(KEYMAP).c $(SRC)
-# else
-# SRC := keymap_jack.c $(SRC)
-# endif
-
-# project specific files
-SRC = extended_keymap_common.c \
+ifdef COMMON_KEYMAP
+
+ SRC = keymap_common.c \
+ matrix_handwire.c \
+ led.c \
+ backlight.c
+
+ifdef KEYMAP
+ SRC := keymap_$(KEYMAP).c $(SRC)
+else
+ SRC := keymap_jack.c $(SRC)
+endif
+
+else
+
+SRC = extended_keymap_common.c \
matrix_handwire.c \
led.c \
backlight.c
@@ -71,6 +76,8 @@ else
SRC := extended_keymap_jack.c $(SRC)
endif
+endif
+
CONFIG_H = config.h
# MCU name