Subversion Repositories FlightCtrl

Rev

Rev 694 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 694 Rev 735
Line 1... Line 1...
1
#--------------------------------------------------------------------
1
#--------------------------------------------------------------------
2
# MCU name
2
# MCU name
3
MCU = atmega644p
3
MCU = atmega644p
4
F_CPU = 20000000
4
F_CPU = 20000000
5
#-------------------------------------------------------------------
5
#-------------------------------------------------------------------
6
HAUPT_VERSION    =   0
6
VERSION_MAJOR    =   0
7
NEBEN_VERSION    =  68
7
VERSION_MINOR    =  68
8
VERSION_INDEX    =   3
8
VERSION_INDEX    =   3
Line 9... Line 9...
9
 
9
 
10
VERSION_KOMPATIBEL = 7  # PC-Kompatibilität
10
VERSION_COMPATIBLE = 7  # PC-Kompatibilität
Line 11... Line 11...
11
#-------------------------------------------------------------------
11
#-------------------------------------------------------------------
12
 
12
 
Line 42... Line 42...
42
FORMAT = ihex
42
FORMAT = ihex
Line 43... Line 43...
43
 
43
 
Line 44... Line 44...
44
# Target file name (without extension).
44
# Target file name (without extension).
45
 
45
 
46
ifeq ($(VERSION_INDEX), 0)
46
ifeq ($(VERSION_INDEX), 0)
47
TARGET = Flight-Ctrl_$(HEX_NAME)_V$(HAUPT_VERSION)_$(NEBEN_VERSION)a
47
TARGET = Flight-Ctrl_$(HEX_NAME)_V$(VERSION_MAJOR)_$(VERSION_MINOR)a
48
endif
48
endif
49
ifeq ($(VERSION_INDEX), 1)
49
ifeq ($(VERSION_INDEX), 1)
50
TARGET = Flight-Ctrl_$(HEX_NAME)_V$(HAUPT_VERSION)_$(NEBEN_VERSION)b
50
TARGET = Flight-Ctrl_$(HEX_NAME)_V$(VERSION_MAJOR)_$(VERSION_MINOR)b
51
endif
51
endif
52
ifeq ($(VERSION_INDEX), 2)
52
ifeq ($(VERSION_INDEX), 2)
53
TARGET = Flight-Ctrl_$(HEX_NAME)_V$(HAUPT_VERSION)_$(NEBEN_VERSION)c
53
TARGET = Flight-Ctrl_$(HEX_NAME)_V$(VERSION_MAJOR)_$(VERSION_MINOR)c
54
endif
54
endif
55
ifeq ($(VERSION_INDEX), 3)
55
ifeq ($(VERSION_INDEX), 3)
56
TARGET = Flight-Ctrl_$(HEX_NAME)_V$(HAUPT_VERSION)_$(NEBEN_VERSION)d
56
TARGET = Flight-Ctrl_$(HEX_NAME)_V$(VERSION_MAJOR)_$(VERSION_MINOR)d
57
endif
57
endif
58
ifeq ($(VERSION_INDEX), 4)
58
ifeq ($(VERSION_INDEX), 4)
59
TARGET = Flight-Ctrl_$(HEX_NAME)_V$(HAUPT_VERSION)_$(NEBEN_VERSION)e
59
TARGET = Flight-Ctrl_$(HEX_NAME)_V$(VERSION_MAJOR)_$(VERSION_MINOR)e
60
endif
60
endif
61
ifeq ($(VERSION_INDEX), 5)
61
ifeq ($(VERSION_INDEX), 5)
62
TARGET = Flight-Ctrl_$(HEX_NAME)_V$(HAUPT_VERSION)_$(NEBEN_VERSION)f
62
TARGET = Flight-Ctrl_$(HEX_NAME)_V$(VERSION_MAJOR)_$(VERSION_MINOR)f
63
endif
63
endif
64
ifeq ($(VERSION_INDEX), 6)
64
ifeq ($(VERSION_INDEX), 6)
65
TARGET = Flight-Ctrl_$(HEX_NAME)_V$(HAUPT_VERSION)_$(NEBEN_VERSION)g
65
TARGET = Flight-Ctrl_$(HEX_NAME)_V$(VERSION_MAJOR)_$(VERSION_MINOR)g
66
endif
66
endif
67
ifeq ($(VERSION_INDEX), 7)
67
ifeq ($(VERSION_INDEX), 7)
Line 68... Line 68...
68
TARGET = Flight-Ctrl_$(HEX_NAME)_V$(HAUPT_VERSION)_$(NEBEN_VERSION)h
68
TARGET = Flight-Ctrl_$(HEX_NAME)_V$(VERSION_MAJOR)_$(VERSION_MINOR)h
69
endif
69
endif
70
 
70
 
Line 117... Line 117...
117
#CFLAGS += -std=c89
117
#CFLAGS += -std=c89
118
#CFLAGS += -std=gnu89
118
#CFLAGS += -std=gnu89
119
#CFLAGS += -std=c99
119
#CFLAGS += -std=c99
120
CFLAGS += -std=gnu99
120
CFLAGS += -std=gnu99
Line 121... Line 121...
121
 
121
 
Line 122... Line 122...
122
CFLAGS += -DVERSION_HAUPTVERSION=$(HAUPT_VERSION) -DVERSION_NEBENVERSION=$(NEBEN_VERSION) -DVERSION_KOMPATIBEL=$(VERSION_KOMPATIBEL) -DVERSION_INDEX=$(VERSION_INDEX)
122
CFLAGS += -DVERSION_MAJOR=$(VERSION_MAJOR) -DVERSION_MINOR=$(VERSION_MINOR) -DVERSION_COMPATIBLE=$(VERSION_COMPATIBLE) -DVERSION_INDEX=$(VERSION_INDEX)
123
 
123
 
124
 
124