summaryrefslogtreecommitdiff
path: root/include.mk
diff options
context:
space:
mode:
Diffstat (limited to 'include.mk')
-rw-r--r--include.mk11
1 files changed, 7 insertions, 4 deletions
diff --git a/include.mk b/include.mk
index 9b02076..6933a06 100644
--- a/include.mk
+++ b/include.mk
@@ -22,8 +22,6 @@
include ../defines.mk
-LDFLAGS += -L./
-
## project-specific objects
SRC := $(OBJ:%.o=%.c)
DEP := $(SRC:%.c=%.d)
@@ -40,8 +38,13 @@ all: prepare $(HEXFILE)
## external Libs
-ifndef LUFA_PATH
-LUFA_PATH := ../contrib/LUFA
+LDFLAGS += -L./
+
+ifdef LUFA_PATH
+CFLAGS += -I$(LUFA_PATH)
+CFLAGS += -DF_USB=$(F_USB)UL
+CFLAGS += -DBOARD=BOARD_$(LUFA_BOARD) -DARCH=ARCH_$(ARCH)
+CFLAGS += $(LUFA_OPTS)
endif
prepare: $(EXTERNAL_LIBS:%=build-%)