diff options
Diffstat (limited to 'include.mk')
-rw-r--r-- | include.mk | 11 |
1 files changed, 7 insertions, 4 deletions
@@ -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-%) |