Subversion Repositories MK3Mag

Rev

Rev 18 | Rev 29 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 18 Rev 19
Line 1... Line 1...
1
#--------------------------------------------------------------------
1
#--------------------------------------------------------------------
2
# MCU name
2
# MCU name
3
MCU = atmega168
3
MCU = atmega168
4
#-------------------------------------------------------------------
4
#-------------------------------------------------------------------
5
HAUPT_VERSION    =  0
5
VERSION_MAJOR    =   0
6
NEBEN_VERSION    =  14
6
VERSION_MINOR    =  14
-
 
7
 
-
 
8
VERSION_COMPATIBLE = 8  # PC-Kompatibilität
7
#-------------------------------------------------------------------
9
#-------------------------------------------------------------------
Line 8... Line 10...
8
 
10
 
9
# Output format. (can be srec, ihex, binary)
11
# Output format. (can be srec, ihex, binary)
Line 10... Line 12...
10
FORMAT = ihex
12
FORMAT = ihex
11
 
13
 
Line 12... Line 14...
12
# Target file name (without extension).
14
# Target file name (without extension).
13
TARGET = MK3Mag_MEGA168_V$(HAUPT_VERSION)_$(NEBEN_VERSION)
15
TARGET = MK3Mag_MEGA168_V$(VERSION_MAJOR)_$(VERSION_MINOR)
14
 
16
 
Line 15... Line 17...
15
# Optimization level, can be [0, 1, 2, 3, s]. 0 turns off optimization.
17
# Optimization level, can be [0, 1, 2, 3, s]. 0 turns off optimization.
16
# (Note: 3 is not always the best optimization level. See avr-libc FAQ.)
18
# (Note: 3 is not always the best optimization level. See avr-libc FAQ.)
17
OPT = s
19
OPT = s
18
 
-
 
19
##########################################################################################################
20
 
Line 20... Line -...
20
# List C source files here. (C dependencies are automatically generated.)
-
 
21
SRC = main.c uart.c timer0.c analog.c twislave.c 
-
 
22
#printf_P.c
-
 
23
##########################################################################################################
-
 
24
 
-
 
25
# If there is more than one source file, append them above, or modify and
-
 
26
# uncomment the following:
-
 
27
#SRC += foo.c bar.c
-
 
28
 
-
 
Line 29... Line 21...
29
# You can also wrap lines by appending a backslash to the end of the line:
21
##########################################################################################################
30
#SRC += baz.c \
22
# List C source files here. (C dependencies are automatically generated.)
31
#xyzzy.c
23
SRC = main.c uart.c timer0.c analog.c twislave.c led.c
32
 
24
##########################################################################################################
Line 67... Line 59...
67
#CFLAGS += -std=c89
59
#CFLAGS += -std=c89
68
#CFLAGS += -std=gnu89
60
#CFLAGS += -std=gnu89
69
#CFLAGS += -std=c99
61
#CFLAGS += -std=c99
70
CFLAGS += -std=gnu99
62
CFLAGS += -std=gnu99
Line 71... Line 63...
71
 
63
 
Line 72... Line 64...
72
CFLAGS += -DVERSION_HAUPTVERSION=$(HAUPT_VERSION) -DVERSION_NEBENVERSION=$(NEBEN_VERSION) 
64
CFLAGS += -DVERSION_MAJOR=$(VERSION_MAJOR) -DVERSION_MINOR=$(VERSION_MINOR) -DVERSION_COMPATIBLE=$(VERSION_COMPATIBLE) 
73
 
65
 
74
ifeq ($(AVR_CTRL_PLATINE), 1)
66
ifeq ($(AVR_CTRL_PLATINE), 1)