summaryrefslogtreecommitdiffstats
path: root/Makefile
blob: 6f63eb45ea182528e75ea1a5b190139e97efe571 (plain)
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
# Project name
NAME			:= example

# Project source files
SRCS			:= main.c
GEN_SRCS		:=

# Bootloader source files
BOOT_SRCS		:=
BOOT_GEN_SRCS		:=
BOOT_OFFSET		:= 0x7000

# CPU speed, in Hz
F_CPU			:= 16000000UL

# Project fuse bits
LFUSE			:= 0xA0
HFUSE			:= 0xD8
EFUSE			:=

# Architecture configuration
GCC_ARCH		:= atmega32
AVRDUDE_ARCH		:= m32
FUNC_STACK_LIMIT	:= 32

# Programmer selection.
PROGRAMMER		:= avrisp2
#PROGRAMMER		:= usbasp
#PROGRAMMER		:= usbasp-clone
#PROGRAMMER		:= avr910
#PROGRAMMER		:= mysmartusb
PROGPORT		:=

# Instrumentation
INSTRUMENT_FUNC		:=
BOOT_INSTRUMENT_FUNC	:=

# Additional compiler flags
CFLAGS			:=
LDFLAGS			:=
SPARSEFLAGS		:=
BOOT_CFLAGS		:=
BOOT_LDFLAGS		:=
BOOT_SPARSEFLAGS	:=

# Additional "clean" and "distclean" target files
CLEAN_FILES		:=
DISTCLEAN_FILES		:=

include avrmakelib.mk
bues.ch cgit interface