Makefile 1.43 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13
#
#             LUFA Library
#     Copyright (C) Dean Camera, 2018.
#
#  dean [at] fourwalledcubicle [dot] com
#           www.lufa-lib.org
#
# --------------------------------------
#         LUFA Project Makefile.
# --------------------------------------

# Run "make help" for target help.

Sebastian Neuser's avatar
Sebastian Neuser committed
14
MCU          = at90usb162
15
ARCH         = AVR8
Sebastian Neuser's avatar
Sebastian Neuser committed
16
BOARD        = NONE
Sebastian Neuser's avatar
Sebastian Neuser committed
17
F_CPU        = 16000000
18 19
F_USB        = $(F_CPU)
OPTIMIZATION = s
Sebastian Neuser's avatar
Sebastian Neuser committed
20
TARGET       = ProgBob
Sebastian Neuser's avatar
Sebastian Neuser committed
21 22 23 24 25
SRC          = $(TARGET).c LEDs.c AVRISPDescriptors.c \
               Lib/V2Protocol.c Lib/V2ProtocolParams.c \
               Lib/ISP/ISPProtocol.c Lib/ISP/ISPTarget.c\
               Lib/XPROG/XPROGProtocol.c Lib/XPROG/XPROGTarget.c Lib/XPROG/XMEGANVM.c Lib/XPROG/TINYNVM.c \
               $(LUFA_SRC_USB)
Sebastian Neuser's avatar
Sebastian Neuser committed
26
LUFA_PATH    = Lib/lufa/LUFA
27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
CC_FLAGS     = -DUSE_LUFA_CONFIG_HEADER -IConfig/
LD_FLAGS     =

# Default target
all:

# 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 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
Sebastian Neuser's avatar
Sebastian Neuser committed
48 49 50

program:
	avrdude -p usb162 -c avrispmkII -P /dev/ttyACM0 -U flash:w:$(TARGET).hex:i