X-Git-Url: https://git.friedersdorff.com/?a=blobdiff_plain;f=common.mk;h=9523ae8749e341874aab67d4f3d65a8ca09c6932;hb=259c4a040af658552d7a003655572c33d8fcef83;hp=5f47e5c1bc3de8faa372ba6f98c04e8d6a0a722b;hpb=d9c06db60006e2191d8b86e34f651644a54426b4;p=max%2Ftmk_keyboard.git diff --git a/common.mk b/common.mk index 5f47e5c1..9523ae87 100644 --- a/common.mk +++ b/common.mk @@ -63,6 +63,19 @@ ifdef SLEEP_LED_ENABLE OPT_DEFS += -DNO_SUSPEND_POWER_DOWN endif +ifdef BACKLIGHT_ENABLE + SRC += $(COMMON_DIR)/backlight.c + OPT_DEFS += -DBACKLIGHT_ENABLE +endif + +ifdef KEYMAP_SECTION_ENABLE + OPT_DEFS += -DKEYMAP_SECTION + EXTRALDFLAGS = -Wl,-L$(TOP_DIR),-Tldscript_keymap_avr5.x +endif + +# Version string +OPT_DEFS += -DVERSION=$(shell (git describe --dirty || echo 'unknown') 2> /dev/null) + # Search Path VPATH += $(TOP_DIR)/common