-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
39 lines (30 loc) · 1.67 KB
/
Makefile
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
# Target filename
# All output files will start with this (TARGET.elf, TARGET.hex, etc.)
# You can select this for your liking. Remember to run `make clean` before changing this value.
TARGET := main
# List of source files to be build (seperated by space)
SRC := main.c eventTimer.c motor.c operationLogic.c servo.c Tests.c UI.c pid.c
# On this course we will use arduino mega boards, so there is no need to change this
#BOARD := arduino_mega
BOARD := arduino_mega2560
# yaamake defines following values based on BOARD (these values are required by avr-libc)
# MCU := atmega1280 # microcontroller, required by the compiler and avrdude
# F_CPU := 16MHz # speed the processor is running (this is correct if you do not touch prescaler)
# Command `make info` outputs values used by yaamake
# Port the device is connected to
# If for some reason the device doesn't appear as this device,
# you can change it here or in the command line
# `make program PORT=/dev/ttyACM0`
# PORT := /dev/ttyACM0
PORT := /dev/ttyACM0
# List macro defines here (-D for gcc)
#DEFS += -DFOOBAR="foo bar"
#DEFS += -DBAZ=baz
# Following will find and include yaamake makefiles, which defines lot of rules.
# Basically yaamake has generic implementation of rules show in Makefile.alternative.
# Purpose of yaamake is to make this project specific makefile as simple as possible.
# Yaamake is installed on computers in the exercise lab, but if you need it on your
# computer get it from https://github.com/raphendyr/yaamake
# If you do not want or can't use yaamake, use the provided MAkefile.alternative instead.
include $(shell yaamake --include-path --require 1.1)
# run 'make help' for more information