Makefile (1162B)
1 # 2 # LUFA Library 3 # Copyright (C) Dean Camera, 2018. 4 # 5 # dean [at] fourwalledcubicle [dot] com 6 # www.lufa-lib.org 7 # 8 # -------------------------------------- 9 # LUFA Project Makefile. 10 # -------------------------------------- 11 12 # Run "make help" for target help. 13 14 MCU = atmega32u2 15 ARCH = AVR8 16 F_CPU = 16000000 17 F_USB = $(F_CPU) 18 OPTIMIZATION = s 19 TARGET = Mouse 20 SRC = $(TARGET).c i2cmaster/i2cmaster.S Descriptors.c azoteq.c $(LUFA_SRC_USB) $(LUFA_SRC_USBCLASS) 21 LUFA_PATH = ./lufa-master/LUFA 22 CC_FLAGS = -DUSE_LUFA_CONFIG_HEADER -IConfig/ 23 LD_FLAGS = 24 25 # Default target 26 all: 27 28 # Include LUFA-specific DMBS extension modules 29 DMBS_LUFA_PATH ?= $(LUFA_PATH)/Build/LUFA 30 include $(DMBS_LUFA_PATH)/lufa-sources.mk 31 include $(DMBS_LUFA_PATH)/lufa-gcc.mk 32 33 # Include common DMBS build system modules 34 DMBS_PATH ?= $(LUFA_PATH)/Build/DMBS/DMBS 35 include $(DMBS_PATH)/core.mk 36 include $(DMBS_PATH)/cppcheck.mk 37 include $(DMBS_PATH)/doxygen.mk 38 include $(DMBS_PATH)/dfu.mk 39 include $(DMBS_PATH)/gcc.mk 40 include $(DMBS_PATH)/hid.mk 41 include $(DMBS_PATH)/avrdude.mk 42 include $(DMBS_PATH)/atprogram.mk