forked from Traumflug/Teacup_Firmware
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile-example
44 lines (36 loc) · 1.03 KB
/
Makefile-example
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
################################################################################
#
## Example Makefile
#
# For convenience, copy this file to "Makefile" and customize it to fit your
# needs.
#
# Then you can type 'make avr' or simply 'make' to build for your printer.
#
################################################################################
.PHONY: sim avr clean all default program regressiontests
# Override variables in the stock makefiles
export F_CPU = 20000000L
export MCU = atmega644p
default: avr
all: sim avr
# Build the simulator
sim:
@echo "----[ Simulator ]----"
@make -sf Makefile-SIM
# Build Teacup for an Atmel processor
avr:
@echo "----[ $(MCU) ]----"
@make -sf Makefile-AVR
# Shortcut to program target in Makefile-AVR
program:
@echo "----[ $(MCU) ]----"
@make -sf Makefile-AVR program
regressiontests:
@make -sf Makefile-common regressiontests
clean:
@echo "----[ Clean ]----"
@make -sf Makefile-SIM clean
@make -sf Makefile-AVR clean
# Add any more cleanup steps you want here. Example,
# rm -f *.png