-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.AVR.sample.mk
63 lines (43 loc) · 1.49 KB
/
Makefile.AVR.sample.mk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
## Creator: Cameron Tacklind
##
## This is the main Makefile for building uC projects. It should only be edited
## to add generic and project specific features. Ideally, there are no real targets
## here. Just variables, or overrides, that the included helper makefiles will use.
# List of c file basenames to build
cNames =
# List of cpp file basenames to build
cppNames = main Board test/Test
# Select specific LUFA source files to compile like this
#LUFA_SRC = LUFA/Drivers/USB/Class/Common/HIDParser.c
F_CPU = 8000000UL
MCU = atmega32u2
all: build #run
run: avrdude-flash
uMakerPath = uMaker/
# Load local settings
-include local.$(shell hostname).mk
include $(uMakerPath)tools/paths.mk
# Generate list of source files from basenames
include $(uMakerPath)tools/source.mk
# Force setting certain make flags
#include $(uMakerPath)tools/makeflags.mk
# Optional configuration testing for development
include $(uMakerPath)tools/checks.mk
# Defs for our setup
include $(uMakerPath)vars/AVR.mk
# Extra targets
#include $(uMakerPath)tools/nRF51/init-src.mk
# Library targets
#include $(uMakerPath)tools/AVR/lufa.mk
#include $(uMakerPath)tools/nRF51/lib.mk
#include $(uMakerPath)tools/extlib.mk
#include $(uMakerPath)tools/FreeRTOS.mk
# Build targets
include $(uMakerPath)tools/build.mk
# Programmer targets
#include $(uMakerPath)tools/dfu.mk
#include $(uMakerPath)tools/nrfjprog.mk
include $(uMakerPath)tools/AVR/avrdude.mk
# Directory creation targets
include $(uMakerPath)tools/mkdir.mk
.PHONY: all run