Subversion Repositories FlightCtrl

Rev

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

Rev 2164 Rev 2189
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 = 20000000UL
5
#-------------------------------------------------------------------
5
#-------------------------------------------------------------------
6
VERSION_MAJOR    =  0
6
VERSION_MAJOR    =  1
7
VERSION_MINOR    =  1
7
VERSION_MINOR    =  1
8
VERSION_PATCH    =  0
8
VERSION_PATCH    =  0
Line 9... Line 9...
9
 
9
 
10
VERSION_SERIAL_MAJOR = 10	# Serial Protocol Major Version
10
VERSION_SERIAL_MAJOR = 10	# Serial Protocol Major Version
11
VERSION_SERIAL_MINOR = 1	# Serial Protocol Minor Version
-
 
Line 12... Line 11...
12
NC_SPI_COMPATIBLE =    6 	# SPI Protocol Version
11
VERSION_SERIAL_MINOR = 1	# Serial Protocol Minor Version
13
 
12
 
Line 14... Line 13...
14
#-------------------------------------------------------------------
13
#-------------------------------------------------------------------
15
#OPTIONS
-
 
16
 
14
#OPTIONS
17
# Use one of the extensions for a gps solution
15
 
18
#EXT = NAVICTRL
16
# Use one of the extensions for a gps solution
Line 19... Line 17...
19
#EXT = DIRECT_GPS
17
#EXT = DIRECT_GPS
20
#EXT = MK3MAG
18
#EXT = MK3MAG
21
EXT =
19
EXT =
22
 
20
 
23
#GYRO=ENC-03_FC1.3
21
#GYRO=ENC-03_FC1.3
Line 24... Line 22...
24
#GYRO_HW_NAME=ENC
22
#GYRO_HW_NAME=ENC
25
#GYRO_HW_FACTOR=1.304f
23
#GYRO_HW_FACTOR=74.688f
26
#GYRO_PITCHROLL_CORRECTION=1.0f
24
#GYRO_XY_CORRECTION=1.2f
27
#GYRO_YAW_CORRECTION=1.0f
25
#GYRO_Z_CORRECTION=1.14f
28
 
26
 
Line 29... Line 27...
29
GYRO=ADXRS610_FC2.0
27
GYRO=ADXRS610_FC2.0
30
GYRO_HW_NAME=ADXR
28
GYRO_HW_NAME=ADXR
31
GYRO_HW_FACTOR=1.2288f
29
GYRO_HW_FACTOR=70.405f
32
GYRO_PITCHROLL_CORRECTION=1.0f
30
GYRO_XY_CORRECTION=1.0f
33
GYRO_YAW_CORRECTION=1.0f
31
GYRO_Z_CORRECTION=1.0f
Line 34... Line 32...
34
 
32
 
35
#GYRO=invenSense
33
#GYRO=invenSense
Line 51... Line 49...
51
ifeq ($(MCU), atmega644p)
49
ifeq ($(MCU), atmega644p)
52
 FUSE_SETTINGS = -u -U lfuse:w:0xff:m -U hfuse:w:0xdf:m
50
 FUSE_SETTINGS = -u -U lfuse:w:0xff:m -U hfuse:w:0xdf:m
53
 HEX_NAME = MEGA644p_$(EXT)_$(GYRO)
51
 HEX_NAME = MEGA644p_$(EXT)_$(GYRO)
54
endif
52
endif
Line 55... Line -...
55
 
-
 
56
 
53
 
57
ifeq ($(F_CPU), 20000000)
54
ifeq ($(F_CPU), 20000000)
58
 QUARZ = 20MHZ
55
 QUARZ = 20MHZ
Line 59... Line -...
59
endif
-
 
60
 
56
endif
61
 
57
 
Line 62... Line 58...
62
# Output format. (can be srec, ihex, binary)
58
# Output format. (can be srec, ihex, binary)
Line 71... Line 67...
71
TARGET = Flight-Ctrl_$(HEX_NAME)_V$(VERSION_MAJOR)_$(VERSION_MINOR)b_SVN$(REV)
67
TARGET = Flight-Ctrl_$(HEX_NAME)_V$(VERSION_MAJOR)_$(VERSION_MINOR)b_SVN$(REV)
72
endif
68
endif
73
ifeq ($(VERSION_PATCH), 2)
69
ifeq ($(VERSION_PATCH), 2)
74
TARGET = Flight-Ctrl_$(HEX_NAME)_V$(VERSION_MAJOR)_$(VERSION_MINOR)c_SVN$(REV)
70
TARGET = Flight-Ctrl_$(HEX_NAME)_V$(VERSION_MAJOR)_$(VERSION_MINOR)c_SVN$(REV)
75
endif
71
endif
76
ifeq ($(VERSION_PATCH), 3)
-
 
77
TARGET = Flight-Ctrl_$(HEX_NAME)_V$(VERSION_MAJOR)_$(VERSION_MINOR)d_SVN$(REV)
-
 
78
endif
-
 
79
ifeq ($(VERSION_PATCH), 4)
-
 
80
TARGET = Flight-Ctrl_$(HEX_NAME)_V$(VERSION_MAJOR)_$(VERSION_MINOR)e_SVN$(REV)
-
 
81
endif
-
 
82
ifeq ($(VERSION_PATCH), 5)
-
 
83
TARGET = Flight-Ctrl_$(HEX_NAME)_V$(VERSION_MAJOR)_$(VERSION_MINOR)f_SVN$(REV)
-
 
84
endif
-
 
85
ifeq ($(VERSION_PATCH), 6)
-
 
86
TARGET = Flight-Ctrl_$(HEX_NAME)_V$(VERSION_MAJOR)_$(VERSION_MINOR)g_SVN$(REV)
-
 
87
endif
-
 
88
ifeq ($(VERSION_PATCH), 7)
-
 
89
TARGET = Flight-Ctrl_$(HEX_NAME)_V$(VERSION_MAJOR)_$(VERSION_MINOR)h_SVN$(REV)
-
 
90
endif
-
 
91
ifeq ($(VERSION_PATCH), 8)
-
 
92
TARGET = Flight-Ctrl_$(HEX_NAME)_V$(VERSION_MAJOR)_$(VERSION_MINOR)i_SVN$(REV)
-
 
93
endif
-
 
94
ifeq ($(VERSION_PATCH), 9)
-
 
95
TARGET = Flight-Ctrl_$(HEX_NAME)_V$(VERSION_MAJOR)_$(VERSION_MINOR)j_SVN$(REV)
-
 
96
endif
-
 
97
ifeq ($(VERSION_PATCH), 10)
-
 
98
TARGET = Flight-Ctrl_$(HEX_NAME)_V$(VERSION_MAJOR)_$(VERSION_MINOR)k_SVN$(REV)
-
 
99
endif
-
 
100
ifeq ($(VERSION_PATCH), 11)
-
 
101
TARGET = Flight-Ctrl_$(HEX_NAME)_V$(VERSION_MAJOR)_$(VERSION_MINOR)l_SVN$(REV)
-
 
102
endif
-
 
103
ifeq ($(VERSION_PATCH), 12)
-
 
104
TARGET = Flight-Ctrl_$(HEX_NAME)_V$(VERSION_MAJOR)_$(VERSION_MINOR)m_SVN$(REV)
-
 
105
endif
-
 
106
ifeq ($(VERSION_PATCH), 13)
-
 
107
TARGET = Flight-Ctrl_$(HEX_NAME)_V$(VERSION_MAJOR)_$(VERSION_MINOR)n_SVN$(REV)
-
 
108
endif
-
 
109
ifeq ($(VERSION_PATCH), 14)
-
 
110
TARGET = Flight-Ctrl_$(HEX_NAME)_V$(VERSION_MAJOR)_$(VERSION_MINOR)o_SVN$(REV)
-
 
111
endif
-
 
112
ifeq ($(VERSION_PATCH), 15)
-
 
113
TARGET = Flight-Ctrl_$(HEX_NAME)_V$(VERSION_MAJOR)_$(VERSION_MINOR)p_SVN$(REV)
-
 
114
endif
-
 
115
ifeq ($(VERSION_PATCH), 16)
-
 
116
TARGET = Flight-Ctrl_$(HEX_NAME)_V$(VERSION_MAJOR)_$(VERSION_MINOR)q_SVN$(REV)
-
 
117
endif
-
 
118
ifeq ($(VERSION_PATCH), 17)
-
 
119
TARGET = Flight-Ctrl_$(HEX_NAME)_V$(VERSION_MAJOR)_$(VERSION_MINOR)r_SVN$(REV)
-
 
120
endif
-
 
121
ifeq ($(VERSION_PATCH), 100)
-
 
122
TARGET = Flight-Ctrl_$(HEX_NAME)_V$(VERSION_MAJOR)_$(VERSION_MINOR)df_SVN$(REV)
-
 
123
endif
-
 
Line 124... Line 72...
124
 
72
 
125
# Optimization level, can be [0, 1, 2, 3, s]. 0 turns off optimization.
73
# Optimization level, can be [0, 1, 2, 3, s]. 0 turns off optimization.
126
# (Note: 3 is not always the best optimization level. See avr-libc FAQ.)
74
# (Note: 3 is not always the best optimization level. See avr-libc FAQ.)
127
OPT = 2
75
OPT = 2
Line 128... Line 76...
128
#OPT = s
76
#OPT = s
129
 
77
 
130
##########################################################################################################
78
##########################################################################################################
131
# List C source files here. (C dependencies are automatically generated.)
79
# List C source files here. (C dependencies are automatically generated.)
132
SRC = main.c uart0.c printf_P.c timer0.c timer2.c analog.c menu.c output.c controlMixer.c failsafeControl.c 
80
SRC = main.c uart0.c timer0.c timer2.c analog.c output.c controlMixer.c failsafeControl.c 
-
 
81
SRC += externalControl.c compassControl.c twimaster.c rc.c flight.c profiler.c 
-
 
82
SRC += eeprom.c heightControl.c configuration.c commands.c $(GYRO).c attitude_ardupilot.c 
Line 133... Line 83...
133
SRC += externalControl.c compassControl.c dongfangMath.c twimaster.c rc.c attitude.c flight.c 
83
 
134
SRC += eeprom.c heightControl.c configuration.c attitudeControl.c commands.c $(GYRO).c 
84
CPPSRC = AP_AHRS_DCM.cpp AP_Math.cpp Matrix3.cpp Vector3.cpp AP_Compass_HIL.cpp Compass.cpp
135
 
85
 
Line 136... Line 86...
136
ifeq ($(EXT), DIRECT_GPS)
86
ifeq ($(EXT), DIRECT_GPS)
137
SRC += mk3mag.c directGPSNaviControl.c uart1.c ubx.c 
87
SRC += mk3mag.c directGPSNaviControl.c uart1.c ubx.c 
138
endif
88
endif
Line 139... Line -...
139
 
-
 
140
ifeq ($(EXT), MK3MAG)
-
 
141
SRC += mk3mag.c 
-
 
142
endif
89
 
Line 143... Line 90...
143
 
90
ifeq ($(EXT), MK3MAG)
144
ifeq ($(EXT), NAVICTRL)
91
SRC += mk3mag.c 
145
SRC += spi.c
92
endif
Line 167... Line 114...
167
#  -Wall...:  warning level
114
#  -Wall...:  warning level
168
#  -Wa,...:   tell GCC to pass this to the assembler.
115
#  -Wa,...:   tell GCC to pass this to the assembler.
169
#    -ahlms:  create assembler listing
116
#    -ahlms:  create assembler listing
170
CFLAGS = -O$(OPT) \
117
CFLAGS = -O$(OPT) \
171
-funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums \
118
-funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums \
172
-Wall -Wstrict-prototypes \
119
-Wall \
173
-DGYRO=$(GYRO) \
120
-DGYRO=$(GYRO) \
174
-Wa,-adhlns=$(<:.c=.lst) \
121
-Wa,-adhlns=$(<:.c=.lst) \
175
$(patsubst %,-I%,$(EXTRAINCDIRS))
122
$(patsubst %,-I%,$(EXTRAINCDIRS))
Line -... Line 123...
-
 
123
 
-
 
124
CPPFLAGS = -O$(OPT) \
-
 
125
-funsigned-char -funsigned-bitfields -fshort-enums \
-
 
126
-Wall \
Line 176... Line 127...
176
 
127
$(patsubst %,-I%,$(EXTRAINCDIRS))
177
 
128
 
178
# Set a "language standard" compiler flag.
129
# Set a "language standard" compiler flag.
179
#   Unremark just one line below to set the language standard to use.
130
#   Unremark just one line below to set the language standard to use.
180
#   gnu99 = C99 + GNU extensions. See GCC manual for more information.
131
#   gnu99 = C99 + GNU extensions. See GCC manual for more information.
181
#CFLAGS += -std=c89
132
#CFLAGS += -std=c89
182
#CFLAGS += -std=gnu89
133
#CFLAGS += -std=gnu89
183
#CFLAGS += -std=c99
-
 
184
CFLAGS += -std=gnu99
134
#CFLAGS += -std=c99
Line 185... Line 135...
185
 
135
#CFLAGS += -std=gnu99
186
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) -DGYRO_HW_NAME=${GYRO_HW_NAME} -DGYRO_HW_FACTOR=${GYRO_HW_FACTOR} -DGYRO_PITCHROLL_CORRECTION=${GYRO_PITCHROLL_CORRECTION} -DGYRO_YAW_CORRECTION=${GYRO_YAW_CORRECTION}
136
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) -DGYRO_HW_NAME=${GYRO_HW_NAME} -DGYRO_HW_FACTOR=${GYRO_HW_FACTOR} -DGYRO_SATURATION_RATE=${GYRO_SATURATION_RATE} -DGYRO_XY_CORRECTION=${GYRO_XY_CORRECTION} -DGYRO_Z_CORRECTION=${GYRO_Z_CORRECTION}
187
 
137
 
188
ifeq ($(EXT), DIRECT_GPS)
138
ifeq ($(EXT), DIRECT_GPS)
Line 189... Line 139...
189
 CFLAGS += -DUSE_DIRECT_GPS
139
 CFLAGS += -DUSE_DIRECT_GPS
190
 CFLAGS += -DUSE_MK3MAG
140
 CFLAGS += -DUSE_MK3MAG
191
endif
141
endif
Line 192... Line -...
192
 
-
 
193
ifeq ($(EXT), MK3MAG)
-
 
194
 CFLAGS += -DUSE_MK3MAG
-
 
195
endif
-
 
196
 
142
 
197
ifeq ($(EXT), NAVICTRL)
143
ifeq ($(EXT), MK3MAG)
198
 CFLAGS += -DUSE_NAVICTRL
144
 CFLAGS += -DUSE_MK3MAG
199
endif
145
endif
200
 
146
 
Line 219... Line 165...
219
#             for use in COFF files, additional information about filenames
165
#             for use in COFF files, additional information about filenames
220
#             and function names needs to be present in the assembler source
166
#             and function names needs to be present in the assembler source
221
#             files -- see avr-libc docs [FIXME: not yet described there]
167
#             files -- see avr-libc docs [FIXME: not yet described there]
222
ASFLAGS = -Wa,-adhlns=$(<:.S=.lst),-gstabs 
168
ASFLAGS = -Wa,-adhlns=$(<:.S=.lst),-gstabs 
Line 223... Line -...
223
 
-
 
224
 
-
 
225
 
169
 
226
# Optional linker flags.
170
# Optional linker flags.
227
#  -Wl,...:   tell GCC to pass this to linker.
171
#  -Wl,...:   tell GCC to pass this to linker.
228
#  -Map:      create map file
172
#  -Map:      create map file
229
#  --cref:    add cross reference to  map file
173
#  --cref:    add cross reference to  map file
Line 230... Line -...
230
LDFLAGS = -Wl,-Map=$(TARGET).map,--cref
-
 
231
 
-
 
232
# Additional libraries
174
LDFLAGS = -Wl,-Map=$(TARGET).map,--cref
233
 
175
 
Line 234... Line -...
234
# Minimalistic printf version
-
 
235
#LDFLAGS += -Wl,-u,vfprintf -lprintf_min
-
 
236
 
-
 
237
# Floating point printf version (requires -lm below)
176
# Minimalistic printf version
-
 
177
#LDFLAGS += -Wl,-u,vfprintf -lprintf_min
238
#LDFLAGS += -Wl,-u,vfprintf -lprintf_flt
178
 
239
 
-
 
Line 240... Line 179...
240
# -lm = math library
179
# -lm = math library
Line 241... Line 180...
241
LDFLAGS += -lm
180
LDFLAGS += -lc 
Line 300... Line 239...
300
 
239
 
301
# Define programs and commands.
240
# Define programs and commands.
Line 302... Line 241...
302
SHELL = sh
241
SHELL = sh
-
 
242
 
-
 
243
CC = avr-gcc
Line 303... Line 244...
303
 
244
#avr-gcc
304
CC = avr-gcc
245
CPPC = avr-g++
305
 
246
 
Line 329... Line 270...
329
MSG_EEPROM = Creating load file for EEPROM:
270
MSG_EEPROM = Creating load file for EEPROM:
330
MSG_EXTENDED_LISTING = Creating Extended Listing:
271
MSG_EXTENDED_LISTING = Creating Extended Listing:
331
MSG_SYMBOL_TABLE = Creating Symbol Table:
272
MSG_SYMBOL_TABLE = Creating Symbol Table:
332
MSG_LINKING = Linking:
273
MSG_LINKING = Linking:
333
MSG_COMPILING = Compiling:
274
MSG_COMPILING = Compiling:
-
 
275
MSG_COMPILING_CPP = Compiling C++:
334
MSG_ASSEMBLING = Assembling:
276
MSG_ASSEMBLING = Assembling:
335
MSG_CLEANING = Cleaning project:
277
MSG_CLEANING = Cleaning project:
Line 336... Line 278...
336
 
278
 
337
 
279
 
-
 
280
# Define all object files.
-
 
281
GENOBJ = $(CPPSRC:.cpp=.o) $(SRC:.c=.o) $(ASRC:.S=.o)  
Line 338... Line 282...
338
# Define all object files.
282
# OBJ = lib/square.o lib/_addsub_sf.o lib/_mul_sf.o $(GENOBJ)
339
OBJ = $(SRC:.c=.o) $(ASRC:.S=.o) 
283
OBJ = $(GENOBJ)
-
 
284
 
Line 340... Line 285...
340
 
285
# Define all listing files.
341
# Define all listing files.
286
LST = $(ASRC:.S=.lst) $(SRC:.c=.lst)
342
LST = $(ASRC:.S=.lst) $(SRC:.c=.lst)
287
# $(CPPSRC:.cpp=.lst)
343
 
288
 
344
# Combine all necessary flags and optional flags.
289
# Combine all necessary flags and optional flags.
345
# Add target processor to flags.
-
 
-
 
290
# Add target processor to flags.
Line 346... Line 291...
346
#ALL_CFLAGS = -mmcu=$(MCU) -DF_CPU=$(F_CPU) -I. $(CFLAGS)
291
#ALL_CFLAGS = -mmcu=$(MCU) -DF_CPU=$(F_CPU) -I. $(CFLAGS)
347
ALL_CFLAGS = -mmcu=$(MCU) -I. $(CFLAGS)
292
ALL_CFLAGS = -mmcu=$(MCU) -I. $(CFLAGS)
348
ALL_ASFLAGS = -mmcu=$(MCU) -I. -x assembler-with-cpp $(ASFLAGS)
293
ALL_ASFLAGS = -mmcu=$(MCU) -I. -x assembler-with-cpp $(ASFLAGS)
Line 349... Line -...
349
 
-
 
350
 
294
ALL_CPPFLAGS = -mmcu=$(MCU) -I. $(CPPFLAGS)
351
# Default target.
295
 
352
all: begin gccversion sizebefore $(TARGET).elf $(TARGET).hex $(TARGET).eep \
296
# Default target.
353
	$(TARGET).lss $(TARGET).sym sizeafter finished end
297
all: begin gccversion sizebefore $(TARGET).elf $(TARGET).hex $(TARGET).eep \
354
 
298
	$(TARGET).lss $(TARGET).sym sizeafter finished end
Line 373... Line 317...
373
	@if [ -f $(TARGET).elf ]; then echo; echo $(MSG_SIZE_BEFORE); $(ELFSIZE); echo; fi
317
	@if [ -f $(TARGET).elf ]; then echo; echo $(MSG_SIZE_BEFORE); $(ELFSIZE); echo; fi
Line 374... Line 318...
374
 
318
 
375
sizeafter:
319
sizeafter:
Line 376... Line -...
376
	@if [ -f $(TARGET).elf ]; then echo; echo $(MSG_SIZE_AFTER); $(ELFSIZE); echo; fi
-
 
377
 
-
 
378
 
320
	@if [ -f $(TARGET).elf ]; then echo; echo $(MSG_SIZE_AFTER); $(ELFSIZE); echo; fi
379
 
321
 
380
# Display compiler version information.
322
# Display compiler version information.
Line 381... Line -...
381
gccversion : 
-
 
382
	@$(CC) --version
323
gccversion : 
383
 
324
	@$(CC) --version
384
 
325
 
385
# Convert ELF to COFF for use in debugging / simulating in
326
# Convert ELF to COFF for use in debugging / simulating in
386
# AVR Studio or VMLAB.
327
# AVR Studio or VMLAB.
Line 445... Line 386...
445
%.elf: $(OBJ)
386
%.elf: $(OBJ)
446
	@echo
387
	@echo
447
	@echo $(MSG_LINKING) $@
388
	@echo $(MSG_LINKING) $@
448
	$(CC) $(ALL_CFLAGS) $(OBJ) --output $@ $(LDFLAGS)
389
	$(CC) $(ALL_CFLAGS) $(OBJ) --output $@ $(LDFLAGS)
Line 449... Line -...
449
 
-
 
450
 
390
 
451
# Compile: create object files from C source files.
391
# Compile: create object files from C source files.
452
%.o : %.c
392
%.o : %.c
453
	@echo
393
	@echo
454
	@echo $(MSG_COMPILING) $<
394
	@echo $(MSG_COMPILING) $<
Line -... Line 395...
-
 
395
	$(CPPC) -c $(ALL_CFLAGS) $< -o $@
-
 
396
 
-
 
397
# Compile: create object files from C source files.
-
 
398
%.o : %.cpp
-
 
399
	@echo
Line 455... Line 400...
455
	$(CC) -c $(ALL_CFLAGS) $< -o $@
400
	@echo $(MSG_COMPILING_CPP) $<
456
 
401
	$(CPPC) -c $(ALL_CPPFLAGS) $< -o $@
457
 
402
 
Line -... Line 403...
-
 
403
# Compile: create assembler files from C source files.
-
 
404
%.s : %.c
-
 
405
	$(CC) -S $(ALL_CFLAGS) $< -o $@
Line 458... Line 406...
458
# Compile: create assembler files from C source files.
406
 
459
%.s : %.c
407
# Compile: create assembler files from C++ source files.
460
	$(CC) -S $(ALL_CFLAGS) $< -o $@
408
%.s : %.cpp
461
 
409
	$(CPPC) -S $(ALL_CFLAGS) $< -o $@
462
 
410
 
Line 463... Line -...
463
# Assemble: create object files from assembler source files.
-
 
464
%.o : %.S
-
 
465
	@echo
-
 
466
	@echo $(MSG_ASSEMBLING) $<
-
 
467
	$(CC) -c $(ALL_ASFLAGS) $< -o $@
-
 
468
 
411
# Assemble: create object files from assembler source files.
469
 
412
%.o : %.S
Line 470... Line 413...
470
 
413
	@echo
471
 
414
	@echo $(MSG_ASSEMBLING) $<
472
 
415
	$(CC) -c $(ALL_ASFLAGS) $< -o $@
473
 
416
 
474
# Target: clean project.
417
# Target: clean project.
475
clean: begin clean_list finished end
418
clean: begin clean_list finished end
476
 
419
 
477
clean_list :
420
clean_list :
478
	@echo
421
	@echo
479
	@echo $(MSG_CLEANING)
422
	@echo $(MSG_CLEANING)
480
#	$(REMOVE) $(TARGET).hex
423
	$(REMOVE) $(TARGET).hex
481
	$(REMOVE) $(TARGET).eep
424
	$(REMOVE) $(TARGET).eep
482
	$(REMOVE) $(TARGET).obj
425
	$(REMOVE) $(TARGET).obj
483
	$(REMOVE) $(TARGET).cof
426
	$(REMOVE) $(TARGET).cof
484
	$(REMOVE) $(TARGET).elf
427
	$(REMOVE) $(TARGET).elf
485
	$(REMOVE) $(TARGET).map
428
	$(REMOVE) $(TARGET).map
486
	$(REMOVE) $(TARGET).obj
429
	$(REMOVE) $(TARGET).obj
487
	$(REMOVE) $(TARGET).a90
430
	$(REMOVE) $(TARGET).a90
Line 488... Line 431...
488
	$(REMOVE) $(TARGET).sym
431
	$(REMOVE) $(TARGET).sym