reform

MNT Reform: Open Source Portable Computer
Log (Feed) | Files | Refs (Tags) | README

Makefile (1273B)


      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          = atmega32u4
     15 ARCH         = AVR8
     16 BOARD        = USBKEY
     17 F_CPU        = 16000000
     18 F_USB        = $(F_CPU)
     19 OPTIMIZATION = s
     20 TARGET       = keyboard
     21 SRC          = $(TARGET).c descriptors.c i2c.c oled.c remote.c powersave.c backlight.c menu.c hid_report.c $(LUFA_SRC_USB) $(LUFA_SRC_USBCLASS)
     22 LUFA_PATH    = ./lufa-master/LUFA
     23 CC_FLAGS     = -DUSE_LUFA_CONFIG_HEADER $(REFORM_KBD_OPTIONS) -IConfig/
     24 LD_FLAGS     = -Wl,-u,vfprintf -lprintf_flt
     25 
     26 # Default target
     27 all:
     28 
     29 # Include LUFA-specific DMBS extension modules
     30 DMBS_LUFA_PATH ?= $(LUFA_PATH)/Build/LUFA
     31 include $(DMBS_LUFA_PATH)/lufa-sources.mk
     32 include $(DMBS_LUFA_PATH)/lufa-gcc.mk
     33 
     34 # Include common DMBS build system modules
     35 DMBS_PATH      ?= $(LUFA_PATH)/Build/DMBS/DMBS
     36 include $(DMBS_PATH)/core.mk
     37 include $(DMBS_PATH)/cppcheck.mk
     38 include $(DMBS_PATH)/doxygen.mk
     39 include $(DMBS_PATH)/dfu.mk
     40 include $(DMBS_PATH)/gcc.mk
     41 include $(DMBS_PATH)/hid.mk
     42 include $(DMBS_PATH)/avrdude.mk
     43 include $(DMBS_PATH)/atprogram.mk