Subversion Repositories FlightCtrl

Rev

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

Rev 1036 Rev 1051
Line 1... Line 1...
1
#--------------------------------------------------------------------
1
#--------------------------------------------------------------------
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
VERSION_MAJOR    =   0
7
NEBEN_VERSION    =  71
7
VERSION_MINOR    =  71
8
VERSION_INDEX    =   5
8
VERSION_PATCH    =   6
Line 9... Line 9...
9
 
9
 
10
VERSION_KOMPATIBEL = 9  # PC-Kompatibilität
10
VERSION_SERIAL_COMPATIBLE = 10  # PC-Kompatibilität
11
NAVI_KOMPATIBEL = 1     # Navi-Kompatibilität
11
NC_SPI_COMPATIBLE = 2     	# Navi-Kompatibilität
Line 12... Line 12...
12
#-------------------------------------------------------------------
12
#-------------------------------------------------------------------
13
 
13
 
Line 42... Line 42...
42
# Output format. (can be srec, ihex, binary)
42
# Output format. (can be srec, ihex, binary)
43
FORMAT = ihex
43
FORMAT = ihex
Line 44... Line 44...
44
 
44
 
Line 45... Line 45...
45
# Target file name (without extension).
45
# Target file name (without extension).
46
 
46
 
47
ifeq ($(VERSION_INDEX), 0)
47
ifeq ($(VERSION_PATCH), 0)
48
TARGET = Flight-Ctrl_$(HEX_NAME)_V$(HAUPT_VERSION)_$(NEBEN_VERSION)a
48
TARGET = Flight-Ctrl_$(HEX_NAME)_V$(VERSION_MAJOR)_$(VERSION_MINOR)a
49
endif
49
endif
50
ifeq ($(VERSION_INDEX), 1)
50
ifeq ($(VERSION_PATCH), 1)
51
TARGET = Flight-Ctrl_$(HEX_NAME)_V$(HAUPT_VERSION)_$(NEBEN_VERSION)b
51
TARGET = Flight-Ctrl_$(HEX_NAME)_V$(VERSION_MAJOR)_$(VERSION_MINOR)b
52
endif
52
endif
53
ifeq ($(VERSION_INDEX), 2)
53
ifeq ($(VERSION_PATCH), 2)
54
TARGET = Flight-Ctrl_$(HEX_NAME)_V$(HAUPT_VERSION)_$(NEBEN_VERSION)c
54
TARGET = Flight-Ctrl_$(HEX_NAME)_V$(VERSION_MAJOR)_$(VERSION_MINOR)c
55
endif
55
endif
56
ifeq ($(VERSION_INDEX), 3)
56
ifeq ($(VERSION_PATCH), 3)
57
TARGET = Flight-Ctrl_$(HEX_NAME)_V$(HAUPT_VERSION)_$(NEBEN_VERSION)d
57
TARGET = Flight-Ctrl_$(HEX_NAME)_V$(VERSION_MAJOR)_$(VERSION_MINOR)d
58
endif
58
endif
59
ifeq ($(VERSION_INDEX), 4)
59
ifeq ($(VERSION_PATCH), 4)
60
TARGET = Flight-Ctrl_$(HEX_NAME)_V$(HAUPT_VERSION)_$(NEBEN_VERSION)e
60
TARGET = Flight-Ctrl_$(HEX_NAME)_V$(VERSION_MAJOR)_$(VERSION_MINOR)e
61
endif
61
endif
62
ifeq ($(VERSION_INDEX), 5)
62
ifeq ($(VERSION_PATCH), 5)
63
TARGET = Flight-Ctrl_$(HEX_NAME)_V$(HAUPT_VERSION)_$(NEBEN_VERSION)f
63
TARGET = Flight-Ctrl_$(HEX_NAME)_V$(VERSION_MAJOR)_$(VERSION_MINOR)f
64
endif
64
endif
65
ifeq ($(VERSION_INDEX), 6)
65
ifeq ($(VERSION_PATCH), 6)
66
TARGET = Flight-Ctrl_$(HEX_NAME)_V$(HAUPT_VERSION)_$(NEBEN_VERSION)g
66
TARGET = Flight-Ctrl_$(HEX_NAME)_V$(VERSION_MAJOR)_$(VERSION_MINOR)g
67
endif
67
endif
68
ifeq ($(VERSION_INDEX), 7)
68
ifeq ($(VERSION_PATCH), 7)
69
TARGET = Flight-Ctrl_$(HEX_NAME)_V$(HAUPT_VERSION)_$(NEBEN_VERSION)h
69
TARGET = Flight-Ctrl_$(HEX_NAME)_V$(VERSION_MAJOR)_$(VERSION_MINOR)h
70
endif
70
endif
71
ifeq ($(VERSION_INDEX), 8)
71
ifeq ($(VERSION_PATCH), 8)
72
TARGET = Flight-Ctrl_$(HEX_NAME)_V$(HAUPT_VERSION)_$(NEBEN_VERSION)i
72
TARGET = Flight-Ctrl_$(HEX_NAME)_V$(VERSION_MAJOR)_$(VERSION_MINOR)i
73
endif
73
endif
74
ifeq ($(VERSION_INDEX), 9)
74
ifeq ($(VERSION_PATCH), 9)
75
TARGET = Flight-Ctrl_$(HEX_NAME)_V$(HAUPT_VERSION)_$(NEBEN_VERSION)j
75
TARGET = Flight-Ctrl_$(HEX_NAME)_V$(VERSION_MAJOR)_$(VERSION_MINOR)j
76
endif
76
endif
77
ifeq ($(VERSION_INDEX), 10)
77
ifeq ($(VERSION_PATCH), 10)
Line 78... Line 78...
78
TARGET = Flight-Ctrl_$(HEX_NAME)_V$(HAUPT_VERSION)_$(NEBEN_VERSION)k
78
TARGET = Flight-Ctrl_$(HEX_NAME)_V$(VERSION_MAJOR)_$(VERSION_MINOR)k
79
endif
79
endif
80
 
80
 
Line 126... Line 126...
126
#CFLAGS += -std=c89
126
#CFLAGS += -std=c89
127
#CFLAGS += -std=gnu89
127
#CFLAGS += -std=gnu89
128
#CFLAGS += -std=c99
128
#CFLAGS += -std=c99
129
CFLAGS += -std=gnu99
129
CFLAGS += -std=gnu99
Line 130... Line 130...
130
 
130
 
Line 131... Line 131...
131
CFLAGS += -DVERSION_HAUPTVERSION=$(HAUPT_VERSION) -DVERSION_NEBENVERSION=$(NEBEN_VERSION) -DVERSION_KOMPATIBEL=$(VERSION_KOMPATIBEL) -DNAVI_KOMPATIBEL=$(NAVI_KOMPATIBEL) -DVERSION_INDEX=$(VERSION_INDEX)
131
CFLAGS += -DVERSION_MAJOR=$(VERSION_MAJOR) -DVERSION_MINOR=$(VERSION_MINOR) -DVERSION_PATCH=$(VERSION_PATCH) -DVERSION_SERIAL_COMPATIBLE=$(VERSION_SERIAL_COMPATIBLE) -DNC_SPI_COMPATIBLE=$(NC_SPI_COMPATIBLE)
132
 
132
 
133
 
133