X-Git-Url: http://git.linex4red.de/pub/USBasp.git/blobdiff_plain/a0024871401e92eefae41c9f94c9fbe91594747a..0b9b6329261d1e382efb3ace9d57de1a5e81b522:/Projects/XPLAINBridge/makefile diff --git a/Projects/XPLAINBridge/makefile b/Projects/XPLAINBridge/makefile index 33ac357ed..6c38917cb 100644 --- a/Projects/XPLAINBridge/makefile +++ b/Projects/XPLAINBridge/makefile @@ -1,6 +1,6 @@ # # LUFA Library -# Copyright (C) Dean Camera, 2012. +# Copyright (C) Dean Camera, 2017. # # dean [at] fourwalledcubicle [dot] com # www.lufa-lib.org @@ -9,6 +9,8 @@ # LUFA Project Makefile. # -------------------------------------- +# Run "make help" for target help. + AVRISP_PATH = ../AVRISP-MKII MCU = at90usb1287 @@ -31,19 +33,22 @@ all: # Since this project borrows files from the AVRISP-MKII project which may also have an # identical OBJDIR directory, we need to enforce the use of this project's object file -# directory as the one where the build object files are to be stored by pre-pending the -# absolute path of the current project to the OBJDIR variable. -ifneq ($(OBJDIR),) - override OBJDIR:=$(shell pwd)/$(OBJDIR) -endif +# directory as the one where the build object files are to be stored, by giving it a +# path relative to the current folder. +OBJDIR := ./obj + +# Include LUFA-specific DMBS extension modules +DMBS_LUFA_PATH ?= $(LUFA_PATH)/Build/LUFA +include $(DMBS_LUFA_PATH)/lufa-sources.mk +include $(DMBS_LUFA_PATH)/lufa-gcc.mk -# Include LUFA build script makefiles -include $(LUFA_PATH)/Build/lufa_core.mk -include $(LUFA_PATH)/Build/lufa_sources.mk -include $(LUFA_PATH)/Build/lufa_build.mk -include $(LUFA_PATH)/Build/lufa_cppcheck.mk -include $(LUFA_PATH)/Build/lufa_doxygen.mk -include $(LUFA_PATH)/Build/lufa_dfu.mk -include $(LUFA_PATH)/Build/lufa_hid.mk -include $(LUFA_PATH)/Build/lufa_avrdude.mk -include $(LUFA_PATH)/Build/lufa_atprogram.mk +# Include common DMBS build system modules +DMBS_PATH ?= $(LUFA_PATH)/Build/DMBS/DMBS +include $(DMBS_PATH)/core.mk +include $(DMBS_PATH)/cppcheck.mk +include $(DMBS_PATH)/doxygen.mk +include $(DMBS_PATH)/dfu.mk +include $(DMBS_PATH)/gcc.mk +include $(DMBS_PATH)/hid.mk +include $(DMBS_PATH)/avrdude.mk +include $(DMBS_PATH)/atprogram.mk