Subversion Repositories FlightCtrl

Rev

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

Rev 188 Rev 297
Line 2... Line 2...
2
# MCU name
2
# MCU name
3
MCU = atmega644
3
MCU = atmega644
4
F_CPU = 20000000
4
F_CPU = 20000000
5
#-------------------------------------------------------------------
5
#-------------------------------------------------------------------
6
HAUPT_VERSION    =   0
6
HAUPT_VERSION    =   0
7
NEBEN_VERSION    =  64
7
NEBEN_VERSION    =  65
-
 
8
VERSION_INDEX    =   0
-
 
9
 
8
VERSION_KOMPATIBEL = 5  # PC-Kompatibilität
10
VERSION_KOMPATIBEL = 5  # PC-Kompatibilität
9
#-------------------------------------------------------------------
11
#-------------------------------------------------------------------
Line 10... Line 12...
10
 
12
 
11
ifeq ($(MCU), atmega32)
13
ifeq ($(MCU), atmega32)
Line 35... Line 37...
35
# Output format. (can be srec, ihex, binary)
37
# Output format. (can be srec, ihex, binary)
36
FORMAT = ihex
38
FORMAT = ihex
Line 37... Line 39...
37
 
39
 
Line -... Line 40...
-
 
40
# Target file name (without extension).
38
# Target file name (without extension).
41
 
-
 
42
ifeq ($(VERSION_INDEX), 0)
-
 
43
TARGET = Flight-Ctrl_$(HEX_NAME)_V$(HAUPT_VERSION)_$(NEBEN_VERSION)a
-
 
44
endif
-
 
45
ifeq ($(VERSION_INDEX), 1)
-
 
46
TARGET = Flight-Ctrl_$(HEX_NAME)_V$(HAUPT_VERSION)_$(NEBEN_VERSION)b
-
 
47
endif
-
 
48
ifeq ($(VERSION_INDEX), 2)
-
 
49
TARGET = Flight-Ctrl_$(HEX_NAME)_V$(HAUPT_VERSION)_$(NEBEN_VERSION)c
-
 
50
endif
-
 
51
ifeq ($(VERSION_INDEX), 3)
-
 
52
TARGET = Flight-Ctrl_$(HEX_NAME)_V$(HAUPT_VERSION)_$(NEBEN_VERSION)d
-
 
53
endif
-
 
54
ifeq ($(VERSION_INDEX), 4)
-
 
55
TARGET = Flight-Ctrl_$(HEX_NAME)_V$(HAUPT_VERSION)_$(NEBEN_VERSION)e
-
 
56
endif
-
 
57
ifeq ($(VERSION_INDEX), 5)
Line 39... Line 58...
39
 
58
TARGET = Flight-Ctrl_$(HEX_NAME)_V$(HAUPT_VERSION)_$(NEBEN_VERSION)f
40
TARGET = Flight-Ctrl_$(HEX_NAME)_V$(HAUPT_VERSION)_$(NEBEN_VERSION)
59
endif
41
 
60
 
Line 87... Line 106...
87
#CFLAGS += -std=c89
106
#CFLAGS += -std=c89
88
#CFLAGS += -std=gnu89
107
#CFLAGS += -std=gnu89
89
#CFLAGS += -std=c99
108
#CFLAGS += -std=c99
90
CFLAGS += -std=gnu99
109
CFLAGS += -std=gnu99
Line 91... Line 110...
91
 
110
 
Line 92... Line 111...
92
CFLAGS += -DVERSION_HAUPTVERSION=$(HAUPT_VERSION) -DVERSION_NEBENVERSION=$(NEBEN_VERSION) -DVERSION_KOMPATIBEL=$(VERSION_KOMPATIBEL) 
111
CFLAGS += -DVERSION_HAUPTVERSION=$(HAUPT_VERSION) -DVERSION_NEBENVERSION=$(NEBEN_VERSION) -DVERSION_KOMPATIBEL=$(VERSION_KOMPATIBEL) -DVERSION_INDEX=$(VERSION_INDEX)
93
 
112
 
94
 
113