Rev 2167 | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2167 | Rev 2172 | ||
---|---|---|---|
1 | #-------------------------------------------------------------------- |
1 | #-------------------------------------------------------------------- |
2 | # MCU name |
2 | # MCU name |
3 | MCU = atmega1284p |
3 | #MCU = atmega1284p |
4 | #MCU = atmega644p |
4 | MCU = atmega644p |
5 | F_CPU = 20000000 |
5 | F_CPU = 20000000 |
6 | #------------------------------------------------------------------- |
6 | #------------------------------------------------------------------- |
7 | VERSION_MAJOR = 0 |
7 | VERSION_MAJOR = 0 |
8 | VERSION_MINOR = 88 |
8 | VERSION_MINOR = 88 |
9 | VERSION_PATCH = 12 |
9 | VERSION_PATCH = 13 |
10 | VERSION_SERIAL_MAJOR = 11 # Serial Protocol |
10 | VERSION_SERIAL_MAJOR = 11 # Serial Protocol |
11 | VERSION_SERIAL_MINOR = 0 # Serial Protocol |
11 | VERSION_SERIAL_MINOR = 0 # Serial Protocol |
12 | NC_SPI_COMPATIBLE = 51 # Navi-Kompatibilität |
12 | NC_SPI_COMPATIBLE = 51 # Navi-Kompatibilität |
13 | #------------------------------------------------------------------- |
13 | #------------------------------------------------------------------- |
14 | # ATMEGA644: 63487 is maximum |
14 | # ATMEGA644: 63487 is maximum |
15 | #-------------------------------------------------------------------#------------------------------------------------------------------- |
15 | #-------------------------------------------------------------------#------------------------------------------------------------------- |
16 | # 0 a |
16 | # 0 a |
17 | # 1 b |
17 | # 1 b |
18 | # 2 c |
18 | # 2 c |
19 | # 3 d |
19 | # 3 d |
20 | # 4 e |
20 | # 4 e |
21 | # 5 f |
21 | # 5 f |
22 | # 6 g |
22 | # 6 g |
23 | # 7 h |
23 | # 7 h |
24 | # 8 i |
24 | # 8 i |
25 | # 9 j |
25 | # 9 j |
26 | # 10 k |
26 | # 10 k |
27 | # 11 L |
27 | # 11 L |
28 | #------------------------------------------------------------------- |
28 | #------------------------------------------------------------------- |
29 | 29 | ||
30 | # get SVN revision |
30 | # get SVN revision |
31 | REV := $(shell sh -c "cat .svn/entries | sed -n '4p'") |
31 | REV := $(shell sh -c "cat .svn/entries | sed -n '4p'") |
32 | 32 | ||
33 | ifeq ($(MCU), atmega1284p) |
33 | ifeq ($(MCU), atmega1284p) |
34 | FUSE_SETTINGS = -u -U lfuse:w:0xff:m -U hfuse:w:0xdf:m |
34 | FUSE_SETTINGS = -u -U lfuse:w:0xff:m -U hfuse:w:0xdf:m |
35 | HEX_NAME = MEGA1284P |
35 | HEX_NAME = MEGA1284P |
36 | LIBFC_EXT = 1284 |
36 | LIBFC_EXT = 1284 |
37 | endif |
37 | endif |
38 | 38 | ||
39 | ifeq ($(MCU), atmega644p) |
39 | ifeq ($(MCU), atmega644p) |
40 | FUSE_SETTINGS = -u -U lfuse:w:0xff:m -U hfuse:w:0xdf:m |
40 | FUSE_SETTINGS = -u -U lfuse:w:0xff:m -U hfuse:w:0xdf:m |
41 | HEX_NAME = MEGA644 |
41 | HEX_NAME = MEGA644 |
42 | LIBFC_EXT = 644 |
42 | LIBFC_EXT = 644 |
43 | endif |
43 | endif |
44 | 44 | ||
45 | ifeq ($(F_CPU), 16000000) |
45 | ifeq ($(F_CPU), 16000000) |
46 | QUARZ = 16MHZ |
46 | QUARZ = 16MHZ |
47 | endif |
47 | endif |
48 | 48 | ||
49 | ifeq ($(F_CPU), 20000000) |
49 | ifeq ($(F_CPU), 20000000) |
50 | QUARZ = 20MHZ |
50 | QUARZ = 20MHZ |
51 | endif |
51 | endif |
52 | 52 | ||
53 | 53 | ||
54 | # Output format. (can be srec, ihex, binary) |
54 | # Output format. (can be srec, ihex, binary) |
55 | FORMAT = ihex |
55 | FORMAT = ihex |
56 | 56 | ||
57 | # Target file name (without extension). |
57 | # Target file name (without extension). |
58 | 58 | ||
59 | ifeq ($(VERSION_PATCH), 0) |
59 | ifeq ($(VERSION_PATCH), 0) |
60 | TARGET = Flight-Ctrl_$(HEX_NAME)_V$(VERSION_MAJOR)_$(VERSION_MINOR)a_SVN$(REV) |
60 | TARGET = Flight-Ctrl_$(HEX_NAME)_V$(VERSION_MAJOR)_$(VERSION_MINOR)a_SVN$(REV) |
61 | endif |
61 | endif |
62 | ifeq ($(VERSION_PATCH), 1) |
62 | ifeq ($(VERSION_PATCH), 1) |
63 | TARGET = Flight-Ctrl_$(HEX_NAME)_V$(VERSION_MAJOR)_$(VERSION_MINOR)b_SVN$(REV) |
63 | TARGET = Flight-Ctrl_$(HEX_NAME)_V$(VERSION_MAJOR)_$(VERSION_MINOR)b_SVN$(REV) |
64 | endif |
64 | endif |
65 | ifeq ($(VERSION_PATCH), 2) |
65 | ifeq ($(VERSION_PATCH), 2) |
66 | TARGET = Flight-Ctrl_$(HEX_NAME)_V$(VERSION_MAJOR)_$(VERSION_MINOR)c_SVN$(REV) |
66 | TARGET = Flight-Ctrl_$(HEX_NAME)_V$(VERSION_MAJOR)_$(VERSION_MINOR)c_SVN$(REV) |
67 | endif |
67 | endif |
68 | ifeq ($(VERSION_PATCH), 3) |
68 | ifeq ($(VERSION_PATCH), 3) |
69 | TARGET = Flight-Ctrl_$(HEX_NAME)_V$(VERSION_MAJOR)_$(VERSION_MINOR)d_SVN$(REV) |
69 | TARGET = Flight-Ctrl_$(HEX_NAME)_V$(VERSION_MAJOR)_$(VERSION_MINOR)d_SVN$(REV) |
70 | endif |
70 | endif |
71 | ifeq ($(VERSION_PATCH), 4) |
71 | ifeq ($(VERSION_PATCH), 4) |
72 | TARGET = Flight-Ctrl_$(HEX_NAME)_V$(VERSION_MAJOR)_$(VERSION_MINOR)e_SVN$(REV) |
72 | TARGET = Flight-Ctrl_$(HEX_NAME)_V$(VERSION_MAJOR)_$(VERSION_MINOR)e_SVN$(REV) |
73 | endif |
73 | endif |
74 | ifeq ($(VERSION_PATCH), 5) |
74 | ifeq ($(VERSION_PATCH), 5) |
75 | TARGET = Flight-Ctrl_$(HEX_NAME)_V$(VERSION_MAJOR)_$(VERSION_MINOR)f_SVN$(REV) |
75 | TARGET = Flight-Ctrl_$(HEX_NAME)_V$(VERSION_MAJOR)_$(VERSION_MINOR)f_SVN$(REV) |
76 | endif |
76 | endif |
77 | ifeq ($(VERSION_PATCH), 6) |
77 | ifeq ($(VERSION_PATCH), 6) |
78 | TARGET = Flight-Ctrl_$(HEX_NAME)_V$(VERSION_MAJOR)_$(VERSION_MINOR)g_SVN$(REV) |
78 | TARGET = Flight-Ctrl_$(HEX_NAME)_V$(VERSION_MAJOR)_$(VERSION_MINOR)g_SVN$(REV) |
79 | endif |
79 | endif |
80 | ifeq ($(VERSION_PATCH), 7) |
80 | ifeq ($(VERSION_PATCH), 7) |
81 | TARGET = Flight-Ctrl_$(HEX_NAME)_V$(VERSION_MAJOR)_$(VERSION_MINOR)h_SVN$(REV) |
81 | TARGET = Flight-Ctrl_$(HEX_NAME)_V$(VERSION_MAJOR)_$(VERSION_MINOR)h_SVN$(REV) |
82 | endif |
82 | endif |
83 | ifeq ($(VERSION_PATCH), 8) |
83 | ifeq ($(VERSION_PATCH), 8) |
84 | TARGET = Flight-Ctrl_$(HEX_NAME)_V$(VERSION_MAJOR)_$(VERSION_MINOR)i_SVN$(REV) |
84 | TARGET = Flight-Ctrl_$(HEX_NAME)_V$(VERSION_MAJOR)_$(VERSION_MINOR)i_SVN$(REV) |
85 | endif |
85 | endif |
86 | ifeq ($(VERSION_PATCH), 9) |
86 | ifeq ($(VERSION_PATCH), 9) |
87 | TARGET = Flight-Ctrl_$(HEX_NAME)_V$(VERSION_MAJOR)_$(VERSION_MINOR)j_SVN$(REV) |
87 | TARGET = Flight-Ctrl_$(HEX_NAME)_V$(VERSION_MAJOR)_$(VERSION_MINOR)j_SVN$(REV) |
88 | endif |
88 | endif |
89 | ifeq ($(VERSION_PATCH), 10) |
89 | ifeq ($(VERSION_PATCH), 10) |
90 | TARGET = Flight-Ctrl_$(HEX_NAME)_V$(VERSION_MAJOR)_$(VERSION_MINOR)k_SVN$(REV) |
90 | TARGET = Flight-Ctrl_$(HEX_NAME)_V$(VERSION_MAJOR)_$(VERSION_MINOR)k_SVN$(REV) |
91 | endif |
91 | endif |
92 | ifeq ($(VERSION_PATCH), 11) |
92 | ifeq ($(VERSION_PATCH), 11) |
93 | TARGET = Flight-Ctrl_$(HEX_NAME)_V$(VERSION_MAJOR)_$(VERSION_MINOR)L_SVN$(REV) |
93 | TARGET = Flight-Ctrl_$(HEX_NAME)_V$(VERSION_MAJOR)_$(VERSION_MINOR)L_SVN$(REV) |
94 | endif |
94 | endif |
95 | ifeq ($(VERSION_PATCH), 12) |
95 | ifeq ($(VERSION_PATCH), 12) |
96 | TARGET = Flight-Ctrl_$(HEX_NAME)_V$(VERSION_MAJOR)_$(VERSION_MINOR)m_SVN$(REV) |
96 | TARGET = Flight-Ctrl_$(HEX_NAME)_V$(VERSION_MAJOR)_$(VERSION_MINOR)m_SVN$(REV) |
97 | endif |
97 | endif |
98 | ifeq ($(VERSION_PATCH), 13) |
98 | ifeq ($(VERSION_PATCH), 13) |
99 | TARGET = Flight-Ctrl_$(HEX_NAME)_V$(VERSION_MAJOR)_$(VERSION_MINOR)n_SVN$(REV) |
99 | TARGET = Flight-Ctrl_$(HEX_NAME)_V$(VERSION_MAJOR)_$(VERSION_MINOR)n_SVN$(REV) |
100 | endif |
100 | endif |
101 | ifeq ($(VERSION_PATCH), 14) |
101 | ifeq ($(VERSION_PATCH), 14) |
102 | TARGET = Flight-Ctrl_$(HEX_NAME)_V$(VERSION_MAJOR)_$(VERSION_MINOR)o_SVN$(REV) |
102 | TARGET = Flight-Ctrl_$(HEX_NAME)_V$(VERSION_MAJOR)_$(VERSION_MINOR)o_SVN$(REV) |
103 | endif |
103 | endif |
104 | ifeq ($(VERSION_PATCH), 15) |
104 | ifeq ($(VERSION_PATCH), 15) |
105 | TARGET = Flight-Ctrl_$(HEX_NAME)_V$(VERSION_MAJOR)_$(VERSION_MINOR)p_SVN$(REV) |
105 | TARGET = Flight-Ctrl_$(HEX_NAME)_V$(VERSION_MAJOR)_$(VERSION_MINOR)p_SVN$(REV) |
106 | endif |
106 | endif |
107 | ifeq ($(VERSION_PATCH), 16) |
107 | ifeq ($(VERSION_PATCH), 16) |
108 | TARGET = Flight-Ctrl_$(HEX_NAME)_V$(VERSION_MAJOR)_$(VERSION_MINOR)q_SVN$(REV) |
108 | TARGET = Flight-Ctrl_$(HEX_NAME)_V$(VERSION_MAJOR)_$(VERSION_MINOR)q_SVN$(REV) |
109 | endif |
109 | endif |
110 | ifeq ($(VERSION_PATCH), 17) |
110 | ifeq ($(VERSION_PATCH), 17) |
111 | TARGET = Flight-Ctrl_$(HEX_NAME)_V$(VERSION_MAJOR)_$(VERSION_MINOR)r_SVN$(REV) |
111 | TARGET = Flight-Ctrl_$(HEX_NAME)_V$(VERSION_MAJOR)_$(VERSION_MINOR)r_SVN$(REV) |
112 | endif |
112 | endif |
113 | ifeq ($(VERSION_PATCH), 18) |
113 | ifeq ($(VERSION_PATCH), 18) |
114 | TARGET = Flight-Ctrl_$(HEX_NAME)_V$(VERSION_MAJOR)_$(VERSION_MINOR)s_SVN$(REV) |
114 | TARGET = Flight-Ctrl_$(HEX_NAME)_V$(VERSION_MAJOR)_$(VERSION_MINOR)s_SVN$(REV) |
115 | endif |
115 | endif |
116 | ifeq ($(VERSION_PATCH), 19) |
116 | ifeq ($(VERSION_PATCH), 19) |
117 | TARGET = Flight-Ctrl_$(HEX_NAME)_V$(VERSION_MAJOR)_$(VERSION_MINOR)t_SVN$(REV) |
117 | TARGET = Flight-Ctrl_$(HEX_NAME)_V$(VERSION_MAJOR)_$(VERSION_MINOR)t_SVN$(REV) |
118 | endif |
118 | endif |
119 | ifeq ($(VERSION_PATCH), 20) |
119 | ifeq ($(VERSION_PATCH), 20) |
120 | TARGET = Flight-Ctrl_$(HEX_NAME)_V$(VERSION_MAJOR)_$(VERSION_MINOR)u_SVN$(REV) |
120 | TARGET = Flight-Ctrl_$(HEX_NAME)_V$(VERSION_MAJOR)_$(VERSION_MINOR)u_SVN$(REV) |
121 | endif |
121 | endif |
122 | ifeq ($(VERSION_PATCH), 21) |
122 | ifeq ($(VERSION_PATCH), 21) |
123 | TARGET = Flight-Ctrl_$(HEX_NAME)_V$(VERSION_MAJOR)_$(VERSION_MINOR)v_SVN$(REV) |
123 | TARGET = Flight-Ctrl_$(HEX_NAME)_V$(VERSION_MAJOR)_$(VERSION_MINOR)v_SVN$(REV) |
124 | endif |
124 | endif |
125 | ifeq ($(VERSION_PATCH), 22) |
125 | ifeq ($(VERSION_PATCH), 22) |
126 | TARGET = Flight-Ctrl_$(HEX_NAME)_V$(VERSION_MAJOR)_$(VERSION_MINOR)w_SVN$(REV) |
126 | TARGET = Flight-Ctrl_$(HEX_NAME)_V$(VERSION_MAJOR)_$(VERSION_MINOR)w_SVN$(REV) |
127 | endif |
127 | endif |
128 | ifeq ($(VERSION_PATCH), 23) |
128 | ifeq ($(VERSION_PATCH), 23) |
129 | TARGET = Flight-Ctrl_$(HEX_NAME)_V$(VERSION_MAJOR)_$(VERSION_MINOR)x_SVN$(REV) |
129 | TARGET = Flight-Ctrl_$(HEX_NAME)_V$(VERSION_MAJOR)_$(VERSION_MINOR)x_SVN$(REV) |
130 | endif |
130 | endif |
131 | ifeq ($(VERSION_PATCH), 24) |
131 | ifeq ($(VERSION_PATCH), 24) |
132 | TARGET = Flight-Ctrl_$(HEX_NAME)_V$(VERSION_MAJOR)_$(VERSION_MINOR)y_SVN$(REV) |
132 | TARGET = Flight-Ctrl_$(HEX_NAME)_V$(VERSION_MAJOR)_$(VERSION_MINOR)y_SVN$(REV) |
133 | endif |
133 | endif |
134 | ifeq ($(VERSION_PATCH), 25) |
134 | ifeq ($(VERSION_PATCH), 25) |
135 | TARGET = Flight-Ctrl_$(HEX_NAME)_V$(VERSION_MAJOR)_$(VERSION_MINOR)z_SVN$(REV) |
135 | TARGET = Flight-Ctrl_$(HEX_NAME)_V$(VERSION_MAJOR)_$(VERSION_MINOR)z_SVN$(REV) |
136 | endif |
136 | endif |
137 | 137 | ||
138 | 138 | ||
139 | # Optimization level, can be [0, 1, 2, 3, s]. 0 turns off optimization. |
139 | # Optimization level, can be [0, 1, 2, 3, s]. 0 turns off optimization. |
140 | # (Note: 3 is not always the best optimization level. See avr-libc FAQ.) |
140 | # (Note: 3 is not always the best optimization level. See avr-libc FAQ.) |
141 | OPT = s |
141 | OPT = s |
142 | #OPT = 2 |
142 | #OPT = 2 |
143 | 143 | ||
144 | ########################################################################################################## |
144 | ########################################################################################################## |
145 | # List C source files here. (C dependencies are automatically generated.) |
145 | # List C source files here. (C dependencies are automatically generated.) |
146 | SRC = main.c uart.c timer0.c analog.c menu.c eeprom.c |
146 | SRC = main.c uart.c timer0.c analog.c menu.c eeprom.c |
147 | SRC += twimaster.c rc.c fc.c GPS.c spi.c led.c Spektrum.c |
147 | SRC += twimaster.c rc.c fc.c GPS.c spi.c led.c Spektrum.c |
148 | SRC += mymath.c jetimenu.c capacity.c debug.c |
148 | SRC += mymath.c jetimenu.c capacity.c debug.c |
149 | SRC += hottmenu.c sbus.c user_receiver.c |
149 | SRC += hottmenu.c sbus.c user_receiver.c |
150 | ########################################################################################################## |
150 | ########################################################################################################## |
151 | 151 | ||
152 | 152 | ||
153 | # List Assembler source files here. |
153 | # List Assembler source files here. |
154 | # Make them always end in a capital .S. Files ending in a lowercase .s |
154 | # Make them always end in a capital .S. Files ending in a lowercase .s |
155 | # will not be considered source files but generated files (assembler |
155 | # will not be considered source files but generated files (assembler |
156 | # output from the compiler), and will be deleted upon "make clean"! |
156 | # output from the compiler), and will be deleted upon "make clean"! |
157 | # Even though the DOS/Win* filesystem matches both .s and .S the same, |
157 | # Even though the DOS/Win* filesystem matches both .s and .S the same, |
158 | # it will preserve the spelling of the filenames, and gcc itself does |
158 | # it will preserve the spelling of the filenames, and gcc itself does |
159 | # care about how the name is spelled on its command-line. |
159 | # care about how the name is spelled on its command-line. |
160 | ASRC = isqrt.S |
160 | ASRC = isqrt.S |
161 | 161 | ||
162 | 162 | ||
163 | 163 | ||
164 | # List any extra directories to look for include files here. |
164 | # List any extra directories to look for include files here. |
165 | # Each directory must be seperated by a space. |
165 | # Each directory must be seperated by a space. |
166 | EXTRAINCDIRS = |
166 | EXTRAINCDIRS = |
167 | 167 | ||
168 | 168 | ||
169 | # Optional compiler flags. |
169 | # Optional compiler flags. |
170 | # -g: generate debugging information (for GDB, or for COFF conversion) |
170 | # -g: generate debugging information (for GDB, or for COFF conversion) |
171 | # -O*: optimization level |
171 | # -O*: optimization level |
172 | # -f...: tuning, see gcc manual and avr-libc documentation |
172 | # -f...: tuning, see gcc manual and avr-libc documentation |
173 | # -Wall...: warning level |
173 | # -Wall...: warning level |
174 | # -Wa,...: tell GCC to pass this to the assembler. |
174 | # -Wa,...: tell GCC to pass this to the assembler. |
175 | # -ahlms: create assembler listing |
175 | # -ahlms: create assembler listing |
176 | CFLAGS = -O$(OPT) -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-adhlns=$(<:%.c=%.lst) $(patsubst %,-I%,$(EXTRAINCDIRS)) |
176 | CFLAGS = -O$(OPT) -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-adhlns=$(<:%.c=%.lst) $(patsubst %,-I%,$(EXTRAINCDIRS)) |
177 | 177 | ||
178 | 178 | ||
179 | # Set a "language standard" compiler flag. |
179 | # Set a "language standard" compiler flag. |
180 | # Unremark just one line below to set the language standard to use. |
180 | # Unremark just one line below to set the language standard to use. |
181 | # gnu99 = C99 + GNU extensions. See GCC manual for more information. |
181 | # gnu99 = C99 + GNU extensions. See GCC manual for more information. |
182 | #CFLAGS += -std=c89 |
182 | #CFLAGS += -std=c89 |
183 | #CFLAGS += -std=gnu89 |
183 | #CFLAGS += -std=gnu89 |
184 | #CFLAGS += -std=c99 |
184 | #CFLAGS += -std=c99 |
185 | CFLAGS += -std=gnu99 |
185 | CFLAGS += -std=gnu99 |
186 | 186 | ||
187 | # shrink code size |
187 | # shrink code size |
188 | CFLAGS += -mtiny-stack |
188 | CFLAGS += -mtiny-stack |
189 | #CFLAGS += -fno-inline-functions |
189 | #CFLAGS += -fno-inline-functions |
190 | CFLAGS += -mcall-prologues |
190 | CFLAGS += -mcall-prologues |
191 | 191 | ||
192 | CFLAGS += -DF_CPU=$(F_CPU) -DVERSION_MAJOR=$(VERSION_MAJOR) -DVERSION_MINOR=$(VERSION_MINOR) -DVERSION_PATCH=$(VERSION_PATCH) -DVERSION_SERIAL_MAJOR=$(VERSION_SERIAL_MAJOR) -DVERSION_SERIAL_MINOR=$(VERSION_SERIAL_MINOR) -DNC_SPI_COMPATIBLE=$(NC_SPI_COMPATIBLE) |
192 | CFLAGS += -DF_CPU=$(F_CPU) -DVERSION_MAJOR=$(VERSION_MAJOR) -DVERSION_MINOR=$(VERSION_MINOR) -DVERSION_PATCH=$(VERSION_PATCH) -DVERSION_SERIAL_MAJOR=$(VERSION_SERIAL_MAJOR) -DVERSION_SERIAL_MINOR=$(VERSION_SERIAL_MINOR) -DNC_SPI_COMPATIBLE=$(NC_SPI_COMPATIBLE) |
193 | 193 | ||
194 | 194 | ||
195 | # Optional assembler flags. |
195 | # Optional assembler flags. |
196 | # -Wa,...: tell GCC to pass this to the assembler. |
196 | # -Wa,...: tell GCC to pass this to the assembler. |
197 | # -ahlms: create listing |
197 | # -ahlms: create listing |
198 | # -gstabs: have the assembler create line number information; note that |
198 | # -gstabs: have the assembler create line number information; note that |
199 | # for use in COFF files, additional information about filenames |
199 | # for use in COFF files, additional information about filenames |
200 | # and function names needs to be present in the assembler source |
200 | # and function names needs to be present in the assembler source |
201 | # files -- see avr-libc docs [FIXME: not yet described there] |
201 | # files -- see avr-libc docs [FIXME: not yet described there] |
202 | ASFLAGS = -Wa,-adhlns=$(<:.S=.lst),-gstabs |
202 | ASFLAGS = -Wa,-adhlns=$(<:.S=.lst),-gstabs |
203 | 203 | ||
204 | 204 | ||
205 | 205 | ||
206 | # Optional linker flags. |
206 | # Optional linker flags. |
207 | # -Wl,...: tell GCC to pass this to linker. |
207 | # -Wl,...: tell GCC to pass this to linker. |
208 | # -Map: create map file |
208 | # -Map: create map file |
209 | # --cref: add cross reference to map file |
209 | # --cref: add cross reference to map file |
210 | LDFLAGS = -Wl,-Map=$(TARGET).map,--cref |
210 | LDFLAGS = -Wl,-Map=$(TARGET).map,--cref |
211 | 211 | ||
212 | # Additional libraries |
212 | # Additional libraries |
213 | 213 | ||
214 | # Minimalistic printf version |
214 | # Minimalistic printf version |
215 | #LDFLAGS += -Wl,-u,vfprintf -lprintf_min |
215 | #LDFLAGS += -Wl,-u,vfprintf -lprintf_min |
216 | 216 | ||
217 | # Floating point printf version (requires -lm below) |
217 | # Floating point printf version (requires -lm below) |
218 | #LDFLAGS += -Wl,-u,vfprintf -lprintf_flt |
218 | #LDFLAGS += -Wl,-u,vfprintf -lprintf_flt |
219 | 219 | ||
220 | # -lm = math library |
220 | # -lm = math library |
221 | LDFLAGS += -lm |
221 | LDFLAGS += -lm |
222 | 222 | ||
223 | LDFLAGS += libfc$(LIBFC_EXT).a |
223 | LDFLAGS += libfc$(LIBFC_EXT).a |
224 | 224 | ||
225 | ##LDFLAGS += -T./linkerfile/avr5.x |
225 | ##LDFLAGS += -T./linkerfile/avr5.x |
226 | 226 | ||
227 | 227 | ||
228 | 228 | ||
229 | # Programming support using avrdude. Settings and variables. |
229 | # Programming support using avrdude. Settings and variables. |
230 | 230 | ||
231 | # Programming hardware: alf avr910 avrisp bascom bsd |
231 | # Programming hardware: alf avr910 avrisp bascom bsd |
232 | # dt006 pavr picoweb pony-stk200 sp12 stk200 stk500 |
232 | # dt006 pavr picoweb pony-stk200 sp12 stk200 stk500 |
233 | # |
233 | # |
234 | # Type: avrdude -c ? |
234 | # Type: avrdude -c ? |
235 | # to get a full listing. |
235 | # to get a full listing. |
236 | # |
236 | # |
237 | #AVRDUDE_PROGRAMMER = dt006 |
237 | #AVRDUDE_PROGRAMMER = dt006 |
238 | #AVRDUDE_PROGRAMMER = stk200 |
238 | #AVRDUDE_PROGRAMMER = stk200 |
239 | #AVRDUDE_PROGRAMMER = ponyser |
239 | #AVRDUDE_PROGRAMMER = ponyser |
240 | AVRDUDE_PROGRAMMER = avrispv2 |
240 | AVRDUDE_PROGRAMMER = avrispv2 |
241 | #falls Ponyser ausgewählt wird, muss sich unsere avrdude-Configdatei im Bin-Verzeichnis des Compilers befinden |
241 | #falls Ponyser ausgewählt wird, muss sich unsere avrdude-Configdatei im Bin-Verzeichnis des Compilers befinden |
242 | 242 | ||
243 | #AVRDUDE_PORT = com1 # programmer connected to serial device |
243 | #AVRDUDE_PORT = com1 # programmer connected to serial device |
244 | #AVRDUDE_PORT = lpt1 # programmer connected to parallel port |
244 | #AVRDUDE_PORT = lpt1 # programmer connected to parallel port |
245 | AVRDUDE_PORT = usb # programmer connected to USB |
245 | AVRDUDE_PORT = usb # programmer connected to USB |
246 | 246 | ||
247 | #AVRDUDE_WRITE_FLASH = -U flash:w:$(TARGET).hex |
247 | #AVRDUDE_WRITE_FLASH = -U flash:w:$(TARGET).hex |
248 | AVRDUDE_WRITE_FLASH = -U flash:w:$(TARGET).hex $(FUSE_SETTINGS) |
248 | AVRDUDE_WRITE_FLASH = -U flash:w:$(TARGET).hex $(FUSE_SETTINGS) |
249 | #AVRDUDE_WRITE_EEPROM = -U eeprom:w:$(TARGET).eep |
249 | #AVRDUDE_WRITE_EEPROM = -U eeprom:w:$(TARGET).eep |
250 | 250 | ||
251 | #avrdude -c avrispv2 -P usb -p m32 -U flash:w:blink.hex |
251 | #avrdude -c avrispv2 -P usb -p m32 -U flash:w:blink.hex |
252 | AVRDUDE_FLAGS = -p $(MCU) -P $(AVRDUDE_PORT) -c $(AVRDUDE_PROGRAMMER) |
252 | AVRDUDE_FLAGS = -p $(MCU) -P $(AVRDUDE_PORT) -c $(AVRDUDE_PROGRAMMER) |
253 | 253 | ||
254 | # Uncomment the following if you want avrdude's erase cycle counter. |
254 | # Uncomment the following if you want avrdude's erase cycle counter. |
255 | # Note that this counter needs to be initialized first using -Yn, |
255 | # Note that this counter needs to be initialized first using -Yn, |
256 | # see avrdude manual. |
256 | # see avrdude manual. |
257 | #AVRDUDE_ERASE += -y |
257 | #AVRDUDE_ERASE += -y |
258 | 258 | ||
259 | # Uncomment the following if you do /not/ wish a verification to be |
259 | # Uncomment the following if you do /not/ wish a verification to be |
260 | # performed after programming the device. |
260 | # performed after programming the device. |
261 | AVRDUDE_FLAGS += -V |
261 | AVRDUDE_FLAGS += -V |
262 | 262 | ||
263 | # Increase verbosity level. Please use this when submitting bug |
263 | # Increase verbosity level. Please use this when submitting bug |
264 | # reports about avrdude. See <http://savannah.nongnu.org/projects/avrdude> |
264 | # reports about avrdude. See <http://savannah.nongnu.org/projects/avrdude> |
265 | # to submit bug reports. |
265 | # to submit bug reports. |
266 | #AVRDUDE_FLAGS += -v -v |
266 | #AVRDUDE_FLAGS += -v -v |
267 | 267 | ||
268 | # --------------------------------------------------------------------------- |
268 | # --------------------------------------------------------------------------- |
269 | # Define directories, if needed. |
269 | # Define directories, if needed. |
270 | DIRAVR = c:/winavr |
270 | DIRAVR = c:/winavr |
271 | DIRAVRBIN = $(DIRAVR)/bin |
271 | DIRAVRBIN = $(DIRAVR)/bin |
272 | DIRAVRUTILS = $(DIRAVR)/utils/bin |
272 | DIRAVRUTILS = $(DIRAVR)/utils/bin |
273 | DIRINC = . |
273 | DIRINC = . |
274 | DIRLIB = $(DIRAVR)/avr/lib |
274 | DIRLIB = $(DIRAVR)/avr/lib |
275 | 275 | ||
276 | 276 | ||
277 | # Define programs and commands. |
277 | # Define programs and commands. |
278 | SHELL = sh |
278 | SHELL = sh |
279 | 279 | ||
280 | CC = avr-gcc |
280 | CC = avr-gcc |
281 | 281 | ||
282 | OBJCOPY = avr-objcopy |
282 | OBJCOPY = avr-objcopy |
283 | OBJDUMP = avr-objdump |
283 | OBJDUMP = avr-objdump |
284 | SIZE = avr-size |
284 | SIZE = avr-size |
285 | 285 | ||
286 | # Programming support using avrdude. |
286 | # Programming support using avrdude. |
287 | AVRDUDE = avrdude |
287 | AVRDUDE = avrdude |
288 | 288 | ||
289 | REMOVE = rm -f |
289 | REMOVE = rm -f |
290 | COPY = cp |
290 | COPY = cp |
291 | 291 | ||
292 | HEXSIZE = $(SIZE) --target=$(FORMAT) $(TARGET).hex |
292 | HEXSIZE = $(SIZE) --target=$(FORMAT) $(TARGET).hex |
293 | ELFSIZE = $(SIZE) -x -A $(TARGET).elf |
293 | ELFSIZE = $(SIZE) -x -A $(TARGET).elf |
294 | LIMITS = $(SIZE) --mcu=$(MCU) -C $(TARGET).elf |
294 | LIMITS = $(SIZE) --mcu=$(MCU) -C $(TARGET).elf |
295 | 295 | ||
296 | 296 | ||
297 | # Define Messages |
297 | # Define Messages |
298 | # English |
298 | # English |
299 | MSG_ERRORS_NONE = Errors: none |
299 | MSG_ERRORS_NONE = Errors: none |
300 | MSG_BEGIN = -------- begin -------- |
300 | MSG_BEGIN = -------- begin -------- |
301 | MSG_END = -------- end -------- |
301 | MSG_END = -------- end -------- |
302 | MSG_SIZE_BEFORE = Size before: |
302 | MSG_SIZE_BEFORE = Size before: |
303 | MSG_SIZE_AFTER = Size after: |
303 | MSG_SIZE_AFTER = Size after: |
304 | MSG_COFF = Converting to AVR COFF: |
304 | MSG_COFF = Converting to AVR COFF: |
305 | MSG_EXTENDED_COFF = Converting to AVR Extended COFF: |
305 | MSG_EXTENDED_COFF = Converting to AVR Extended COFF: |
306 | MSG_FLASH = Creating load file for Flash: |
306 | MSG_FLASH = Creating load file for Flash: |
307 | MSG_EEPROM = Creating load file for EEPROM: |
307 | MSG_EEPROM = Creating load file for EEPROM: |
308 | MSG_EXTENDED_LISTING = Creating Extended Listing: |
308 | MSG_EXTENDED_LISTING = Creating Extended Listing: |
309 | MSG_SYMBOL_TABLE = Creating Symbol Table: |
309 | MSG_SYMBOL_TABLE = Creating Symbol Table: |
310 | MSG_LINKING = Linking: |
310 | MSG_LINKING = Linking: |
311 | MSG_COMPILING = Compiling: |
311 | MSG_COMPILING = Compiling: |
312 | MSG_ASSEMBLING = Assembling: |
312 | MSG_ASSEMBLING = Assembling: |
313 | MSG_CLEANING = Cleaning project: |
313 | MSG_CLEANING = Cleaning project: |
314 | 314 | ||
315 | 315 | ||
316 | # Define all object files. |
316 | # Define all object files. |
317 | OBJ = $(SRC:.c=.o) $(ASRC:.S=.o) |
317 | OBJ = $(SRC:.c=.o) $(ASRC:.S=.o) |
318 | 318 | ||
319 | # Define all listing files. |
319 | # Define all listing files. |
320 | LST = $(ASRC:.S=.lst) $(SRC:.c=.lst) |
320 | LST = $(ASRC:.S=.lst) $(SRC:.c=.lst) |
321 | 321 | ||
322 | # Combine all necessary flags and optional flags. |
322 | # Combine all necessary flags and optional flags. |
323 | # Add target processor to flags. |
323 | # Add target processor to flags. |
324 | #ALL_CFLAGS = -mmcu=$(MCU) -DF_CPU=$(F_CPU) -I. $(CFLAGS) |
324 | #ALL_CFLAGS = -mmcu=$(MCU) -DF_CPU=$(F_CPU) -I. $(CFLAGS) |
325 | ALL_CFLAGS = -mmcu=$(MCU) -I. $(CFLAGS) |
325 | ALL_CFLAGS = -mmcu=$(MCU) -I. $(CFLAGS) |
326 | ALL_ASFLAGS = -mmcu=$(MCU) -I. -x assembler-with-cpp $(ASFLAGS) |
326 | ALL_ASFLAGS = -mmcu=$(MCU) -I. -x assembler-with-cpp $(ASFLAGS) |
327 | 327 | ||
328 | 328 | ||
329 | # Default target. |
329 | # Default target. |
330 | all: begin gccversion sizebefore $(TARGET).elf $(TARGET).hex sizeafter finished end |
330 | all: begin gccversion sizebefore $(TARGET).elf $(TARGET).hex sizeafter finished end |
331 | 331 | ||
332 | 332 | ||
333 | # Eye candy. |
333 | # Eye candy. |
334 | # AVR Studio 3.x does not check make's exit code but relies on |
334 | # AVR Studio 3.x does not check make's exit code but relies on |
335 | # the following magic strings to be generated by the compile job. |
335 | # the following magic strings to be generated by the compile job. |
336 | begin: |
336 | begin: |
337 | @echo |
337 | @echo |
338 | @echo $(MSG_BEGIN) |
338 | @echo $(MSG_BEGIN) |
339 | 339 | ||
340 | finished: |
340 | finished: |
341 | @echo $(MSG_ERRORS_NONE) |
341 | @echo $(MSG_ERRORS_NONE) |
342 | 342 | ||
343 | end: |
343 | end: |
344 | @echo $(MSG_END) |
344 | @echo $(MSG_END) |
345 | @echo |
345 | @echo |
346 | 346 | ||
347 | 347 | ||
348 | # Display size of file. |
348 | # Display size of file. |
349 | sizebefore: |
349 | sizebefore: |
350 | @if [ -f $(TARGET).elf ]; then echo Size before:; $(ELFSIZE); $(HEXSIZE); $(LIMITS); echo; fi |
350 | @if [ -f $(TARGET).elf ]; then echo Size before:; $(ELFSIZE); $(HEXSIZE); $(LIMITS); echo; fi |
351 | sizeafter: |
351 | sizeafter: |
352 | @if [ -f $(TARGET).elf ]; then echo Size after:; $(ELFSIZE); $(HEXSIZE); $(LIMITS); echo; fi |
352 | @if [ -f $(TARGET).elf ]; then echo Size after:; $(ELFSIZE); $(HEXSIZE); $(LIMITS); echo; fi |
353 | 353 | ||
354 | 354 | ||
355 | # Display compiler version information. |
355 | # Display compiler version information. |
356 | gccversion : |
356 | gccversion : |
357 | @$(CC) --version |
357 | @$(CC) --version |
358 | 358 | ||
359 | 359 | ||
360 | # Convert ELF to COFF for use in debugging / simulating in |
360 | # Convert ELF to COFF for use in debugging / simulating in |
361 | # AVR Studio or VMLAB. |
361 | # AVR Studio or VMLAB. |
362 | COFFCONVERT=$(OBJCOPY) --debugging \ |
362 | COFFCONVERT=$(OBJCOPY) --debugging \ |
363 | --change-section-address .data-0x800000 \ |
363 | --change-section-address .data-0x800000 \ |
364 | --change-section-address .bss-0x800000 \ |
364 | --change-section-address .bss-0x800000 \ |
365 | --change-section-address .noinit-0x800000 \ |
365 | --change-section-address .noinit-0x800000 \ |
366 | --change-section-address .eeprom-0x810000 |
366 | --change-section-address .eeprom-0x810000 |
367 | 367 | ||
368 | 368 | ||
369 | coff: $(TARGET).elf |
369 | coff: $(TARGET).elf |
370 | @echo |
370 | @echo |
371 | @echo $(MSG_COFF) $(TARGET).cof |
371 | @echo $(MSG_COFF) $(TARGET).cof |
372 | $(COFFCONVERT) -O coff-avr $< $(TARGET).cof |
372 | $(COFFCONVERT) -O coff-avr $< $(TARGET).cof |
373 | 373 | ||
374 | 374 | ||
375 | extcoff: $(TARGET).elf |
375 | extcoff: $(TARGET).elf |
376 | @echo |
376 | @echo |
377 | @echo $(MSG_EXTENDED_COFF) $(TARGET).cof |
377 | @echo $(MSG_EXTENDED_COFF) $(TARGET).cof |
378 | $(COFFCONVERT) -O coff-ext-avr $< $(TARGET).cof |
378 | $(COFFCONVERT) -O coff-ext-avr $< $(TARGET).cof |
379 | 379 | ||
380 | 380 | ||
381 | 381 | ||
382 | 382 | ||
383 | # Program the device. |
383 | # Program the device. |
384 | program: $(TARGET).hex $(TARGET).eep |
384 | program: $(TARGET).hex $(TARGET).eep |
385 | $(AVRDUDE) $(AVRDUDE_FLAGS) $(AVRDUDE_WRITE_FLASH) $(AVRDUDE_WRITE_EEPROM) |
385 | $(AVRDUDE) $(AVRDUDE_FLAGS) $(AVRDUDE_WRITE_FLASH) $(AVRDUDE_WRITE_EEPROM) |
386 | 386 | ||
387 | 387 | ||
388 | 388 | ||
389 | 389 | ||
390 | # Create final output files (.hex, .eep) from ELF output file. |
390 | # Create final output files (.hex, .eep) from ELF output file. |
391 | %.hex: %.elf |
391 | %.hex: %.elf |
392 | @echo |
392 | @echo |
393 | @echo $(MSG_FLASH) $@ |
393 | @echo $(MSG_FLASH) $@ |
394 | $(OBJCOPY) -O $(FORMAT) -R .eeprom $< $@ |
394 | $(OBJCOPY) -O $(FORMAT) -R .eeprom $< $@ |
395 | 395 | ||
396 | %.eep: %.elf |
396 | %.eep: %.elf |
397 | @echo |
397 | @echo |
398 | @echo $(MSG_EEPROM) $@ |
398 | @echo $(MSG_EEPROM) $@ |
399 | -$(OBJCOPY) -j .eeprom --set-section-flags=.eeprom="alloc,load" \ |
399 | -$(OBJCOPY) -j .eeprom --set-section-flags=.eeprom="alloc,load" \ |
400 | --change-section-lma .eeprom=0 -O $(FORMAT) $< $@ |
400 | --change-section-lma .eeprom=0 -O $(FORMAT) $< $@ |
401 | 401 | ||
402 | # Create extended listing file from ELF output file. |
402 | # Create extended listing file from ELF output file. |
403 | %.lss: %.elf |
403 | %.lss: %.elf |
404 | @echo |
404 | @echo |
405 | @echo $(MSG_EXTENDED_LISTING) $@ |
405 | @echo $(MSG_EXTENDED_LISTING) $@ |
406 | $(OBJDUMP) -h -S $< > $@ |
406 | $(OBJDUMP) -h -S $< > $@ |
407 | 407 | ||
408 | # Create a symbol table from ELF output file. |
408 | # Create a symbol table from ELF output file. |
409 | %.sym: %.elf |
409 | %.sym: %.elf |
410 | @echo |
410 | @echo |
411 | @echo $(MSG_SYMBOL_TABLE) $@ |
411 | @echo $(MSG_SYMBOL_TABLE) $@ |
412 | avr-nm -n $< > $@ |
412 | avr-nm -n $< > $@ |
413 | 413 | ||
414 | 414 | ||
415 | 415 | ||
416 | # Link: create ELF output file from object files. |
416 | # Link: create ELF output file from object files. |
417 | .SECONDARY : $(TARGET).elf |
417 | .SECONDARY : $(TARGET).elf |
418 | .PRECIOUS : $(OBJ) |
418 | .PRECIOUS : $(OBJ) |
419 | %.elf: $(OBJ) |
419 | %.elf: $(OBJ) |
420 | @echo |
420 | @echo |
421 | @echo $(MSG_LINKING) $@ |
421 | @echo $(MSG_LINKING) $@ |
422 | $(CC) $(ALL_CFLAGS) $(OBJ) --output $@ $(LDFLAGS) |
422 | $(CC) $(ALL_CFLAGS) $(OBJ) --output $@ $(LDFLAGS) |
423 | 423 | ||
424 | 424 | ||
425 | # Compile: create object files from C source files. |
425 | # Compile: create object files from C source files. |
426 | %.o : %.c |
426 | %.o : %.c |
427 | @echo |
427 | @echo |
428 | @echo $(MSG_COMPILING) $< |
428 | @echo $(MSG_COMPILING) $< |
429 | $(CC) -c $(ALL_CFLAGS) $< -o $@ |
429 | $(CC) -c $(ALL_CFLAGS) $< -o $@ |
430 | 430 | ||
431 | 431 | ||
432 | # Compile: create assembler files from C source files. |
432 | # Compile: create assembler files from C source files. |
433 | %.s : %.c |
433 | %.s : %.c |
434 | $(CC) -S $(ALL_CFLAGS) $< -o $@ |
434 | $(CC) -S $(ALL_CFLAGS) $< -o $@ |
435 | 435 | ||
436 | 436 | ||
437 | # Assemble: create object files from assembler source files. |
437 | # Assemble: create object files from assembler source files. |
438 | %.o : %.S |
438 | %.o : %.S |
439 | @echo |
439 | @echo |
440 | @echo $(MSG_ASSEMBLING) $< |
440 | @echo $(MSG_ASSEMBLING) $< |
441 | $(CC) -c $(ALL_ASFLAGS) $< -o $@ |
441 | $(CC) -c $(ALL_ASFLAGS) $< -o $@ |
442 | 442 | ||
443 | 443 | ||
444 | 444 | ||
445 | 445 | ||
446 | 446 | ||
447 | 447 | ||
448 | # Target: clean project. |
448 | # Target: clean project. |
449 | clean: begin clean_list finished end |
449 | clean: begin clean_list finished end |
450 | 450 | ||
451 | clean_list : |
451 | clean_list : |
452 | @echo |
452 | @echo |
453 | @echo $(MSG_CLEANING) |
453 | @echo $(MSG_CLEANING) |
454 | $(REMOVE) Flight-Ctrl_*.hex |
454 | $(REMOVE) Flight-Ctrl_*.hex |
455 | $(REMOVE) Flight-Ctrl_*.eep |
455 | $(REMOVE) Flight-Ctrl_*.eep |
456 | $(REMOVE) $(TARGET).obj |
456 | $(REMOVE) $(TARGET).obj |
457 | $(REMOVE) $(TARGET).cof |
457 | $(REMOVE) $(TARGET).cof |
458 | $(REMOVE) Flight-Ctrl_*.elf |
458 | $(REMOVE) Flight-Ctrl_*.elf |
459 | $(REMOVE) Flight-Ctrl_*.map |
459 | $(REMOVE) Flight-Ctrl_*.map |
460 | $(REMOVE) $(TARGET).obj |
460 | $(REMOVE) $(TARGET).obj |
461 | $(REMOVE) $(TARGET).a90 |
461 | $(REMOVE) $(TARGET).a90 |
462 | $(REMOVE) Flight-Ctrl_*.sym |
462 | $(REMOVE) Flight-Ctrl_*.sym |
463 | $(REMOVE) $(TARGET).lnk |
463 | $(REMOVE) $(TARGET).lnk |
464 | $(REMOVE) $(TARGET).lss |
464 | $(REMOVE) $(TARGET).lss |
465 | $(REMOVE) $(OBJ) |
465 | $(REMOVE) $(OBJ) |
466 | $(REMOVE) $(LST) |
466 | $(REMOVE) $(LST) |
467 | $(REMOVE) $(SRC:.c=.s) |
467 | $(REMOVE) $(SRC:.c=.s) |
468 | $(REMOVE) $(SRC:.c=.d) |
468 | $(REMOVE) $(SRC:.c=.d) |
469 | $(REMOVE) $(SRC:.c=.o) |
469 | $(REMOVE) $(SRC:.c=.o) |
470 | 470 | ||
471 | 471 | ||
472 | # Automatically generate C source code dependencies. |
472 | # Automatically generate C source code dependencies. |
473 | # (Code originally taken from the GNU make user manual and modified |
473 | # (Code originally taken from the GNU make user manual and modified |
474 | # (See README.txt Credits).) |
474 | # (See README.txt Credits).) |
475 | # |
475 | # |
476 | # Note that this will work with sh (bash) and sed that is shipped with WinAVR |
476 | # Note that this will work with sh (bash) and sed that is shipped with WinAVR |
477 | # (see the SHELL variable defined above). |
477 | # (see the SHELL variable defined above). |
478 | # This may not work with other shells or other seds. |
478 | # This may not work with other shells or other seds. |
479 | # |
479 | # |
480 | %.d: %.c |
480 | %.d: %.c |
481 | set -e; $(CC) -MM $(ALL_CFLAGS) $< \ |
481 | set -e; $(CC) -MM $(ALL_CFLAGS) $< \ |
482 | | sed 's,\(.*\)\.o[ :]*,\1.o \1.d : ,g' > $@; \ |
482 | | sed 's,\(.*\)\.o[ :]*,\1.o \1.d : ,g' > $@; \ |
483 | [ -s $@ ] || rm -f $@ |
483 | [ -s $@ ] || rm -f $@ |
484 | 484 | ||
485 | 485 | ||
486 | # Remove the '-' if you want to see the dependency files generated. |
486 | # Remove the '-' if you want to see the dependency files generated. |
487 | -include $(SRC:%.c=%.d) |
487 | -include $(SRC:%.c=%.d) |
488 | 488 | ||
489 | 489 | ||
490 | 490 | ||
491 | # Listing of phony targets. |
491 | # Listing of phony targets. |
492 | .PHONY : all begin finish end sizebefore sizeafter gccversion coff extcoff \ |
492 | .PHONY : all begin finish end sizebefore sizeafter gccversion coff extcoff \ |
493 | clean clean_list program |
493 | clean clean_list program |
494 | 494 |