Subversion Repositories HomeAutomation

Rev

Rev 468 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed

Rev 468 Rev 470
Line 1... Line 1...
1
include bios.inc
1
include bios.inc
2
 
2
 
3
# Target file name (without extension).
3
# Target file name (without extension).
4
TARGET = main
4
TARGET = main
5
 
5
 
6
LIBDIR = ../avr-lib
6
LIBDIR = ../../avr-lib
-
 
7
include $(LIBDIR)/system.inc
7
 
8
 
8
# List C source files here. (C dependencies are automatically generated.)
9
# List C source files here. (C dependencies are automatically generated.)
9
CSRC =	$(TARGET).c\
10
CSRC =	$(TARGET).c\
10
		$(LIBDIR)/drivers/timer/timebase.c\
11
		$(LIBDIR)/drivers/timer/timebase.c\
11
		$(LIBDIR)/drivers/uart/serial.c\
12
		$(LIBDIR)/drivers/uart/serial.c\
Line 202... Line 203...
202
eep: $(TARGET).eep
203
eep: $(TARGET).eep
203
lss: $(TARGET).lss 
204
lss: $(TARGET).lss 
204
sym: $(TARGET).sym
205
sym: $(TARGET).sym
205
config: config.h
206
config: config.h
206
 
207
 
-
 
208
install: 
-
 
209
	$(CANUPLOAD) $(CANULFLAGS) -n $(NODE_ID) -f $(PRG).hex -r
207
 
210
 
208
# Eye candy.
211
# Eye candy.
209
# AVR Studio 3.x does not check make's exit code but relies on
212
# AVR Studio 3.x does not check make's exit code but relies on
210
# the following magic strings to be generated by the compile job.
213
# the following magic strings to be generated by the compile job.
211
begin:
214
begin:
Line 256... Line 259...
256
 
259
 
257
extcoff: $(TARGET).elf
260
extcoff: $(TARGET).elf
258
	@echo
261
	@echo
259
	@echo $(MSG_EXTENDED_COFF) $(TARGET).cof
262
	@echo $(MSG_EXTENDED_COFF) $(TARGET).cof
260
	$(COFFCONVERT) -O coff-ext-avr $< $(TARGET).cof
263
	$(COFFCONVERT) -O coff-ext-avr $< $(TARGET).cof
261
 
-
 
262
 
-
 
263
 
264
 
264
# Create final output files (.hex, .eep) from ELF output file.
265
# Create final output files (.hex, .eep) from ELF output file.
265
%.hex: %.elf
266
%.hex: %.elf
266
	@echo
267
	@echo
267
	@echo $(MSG_FLASH) $@
268
	@echo $(MSG_FLASH) $@