summaryrefslogtreecommitdiff
path: root/keyboard/infinity/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'keyboard/infinity/Makefile')
-rw-r--r--keyboard/infinity/Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/keyboard/infinity/Makefile b/keyboard/infinity/Makefile
index 758296f335..e33c239afb 100644
--- a/keyboard/infinity/Makefile
+++ b/keyboard/infinity/Makefile
@@ -12,11 +12,16 @@ OBJDIR = ./build
OBJECTS = \
$(OBJDIR)/matrix.o \
- $(OBJDIR)/keymap.o \
$(OBJDIR)/keymap_common.o \
$(OBJDIR)/led.o \
$(OBJDIR)/main.o
+ifdef KEYMAP
+ OBJECTS := $(OBJDIR)/keymap_$(KEYMAP).o $(OBJECTS)
+else
+ OBJECTS := $(OBJDIR)/keymap.o $(OBJECTS)
+endif
+
CONFIG_H = config.h
INCLUDE_PATHS = -I.