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