]> git.friedersdorff.com Git - max/tmk_keyboard.git/blobdiff - converter/adb_usb/Makefile
xt_usb: Fix scan code print for debug
[max/tmk_keyboard.git] / converter / adb_usb / Makefile
index b2bda94466f26173a4874a6559d4f6c5d4aede3e..14fc181ba96fa194a50cf4fbaa62d595e4de94c9 100644 (file)
@@ -1,14 +1,14 @@
 # Target file name (without extension).
-TARGET = adb_usb_lufa
+TARGET ?= adb_usb
 
 # Directory common source filess exist
-TMK_DIR = ../../tmk_core
+TMK_DIR ?= ../../tmk_core
 
 # Directory keyboard dependent files exist
-TARGET_DIR = .
+TARGET_DIR ?= .
 
 # project specific files
-SRC  matrix.c \
+SRC ?= matrix.c \
        led.c \
        adb.c
 
@@ -19,7 +19,7 @@ CONFIG_H = config.h
 # atmega32u4   Teensy2.0
 # atemga32u4   TMK Converter rev.1
 # atemga32u2   TMK Converter rev.2
-MCU = atmega32u2
+MCU ?= atmega32u2
 
 # Processor frequency.
 #     This will define a symbol, F_CPU, in all source code files equal to the
@@ -32,14 +32,14 @@ MCU = atmega32u2
 #     does not *change* the processor frequency - it should merely be updated to
 #     reflect the processor speed set externally so that the code can use accurate
 #     software delays.
-F_CPU = 16000000
+F_CPU ?= 16000000
 
 
 #
 # LUFA specific
 #
 # Target architecture (see library "Board Types" documentation).
-ARCH = AVR8
+ARCH ?= AVR8
 
 # Input clock frequency.
 #     This will define a symbol, F_USB, in all source code files equal to the
@@ -52,7 +52,7 @@ ARCH = AVR8
 #
 #     If no clock division is performed on the input clock inside the AVR (via the
 #     CPU clock adjust registers or the clock division fuses), this will be equal to F_CPU.
-F_USB = $(F_CPU)
+F_USB ?= $(F_CPU)
 
 # Interrupt driven control endpoint task(+60)
 OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT