Line No. | Rev | Author | Line |
---|---|---|---|
1 | 6 | kaklik | # Makefile for avrproject |
2 | # Pascal Stang |
||
3 | |||
4 | ########### change this lines according to your project ################## |
||
5 | #put the name of the target mcu here (at90s8515, at90s8535, attiny22, atmega603 etc.) |
||
6 | MCU = atmega163 |
||
7 | # MCU = atmega323 |
||
8 | # MCU = atmega128 |
||
9 | |||
10 | #put the name of the target file here (without extension) |
||
11 | TRG = cmdlinetest |
||
12 | |||
13 | #put your C sourcefiles here |
||
14 | |||
15 | SRC = $(AVRLIB)/buffer.c $(AVRLIB)/uart.c $(AVRLIB)/rprintf.c $(AVRLIB)/timer.c $(AVRLIB)/a2d.c $(AVRLIB)/vt100.c $(AVRLIB)/cmdline.c $(TRG).c |
||
16 | |||
17 | #put additional assembler source file here |
||
18 | ASRC = |
||
19 | |||
20 | #additional libraries and object files to link |
||
21 | LIB = |
||
22 | |||
23 | #additional includes to compile |
||
24 | INC = |
||
25 | |||
26 | #assembler flags |
||
27 | ASFLAGS = -Wa, -gstabs |
||
28 | |||
29 | #compiler flags |
||
30 | CPFLAGS = -g -Os -Wall -Wstrict-prototypes -I$(AVRLIB) -Wa,-ahlms=$(<:.c=.lst) |
||
31 | |||
32 | #linker flags |
||
33 | LDFLAGS = -Wl,-Map=$(TRG).map,--cref |
||
34 | |||
35 | |||
36 | ########### you should not need to change the following line ############# |
||
37 | include $(AVRLIB)/make/avrproj_make |
||
38 | |||
39 | ###### dependecies, add any dependencies you need here ################### |
||
40 | buffer.o : buffer.c buffer.h |
||
41 | uart2.o : uart2.c uart2.h global.h |
||
42 | rprintf.o : rprintf.c rprintf.h |
||
43 | a2d.o : a2d.c a2d.h |
||
44 | timer128.o : timer128.c timer128.h global.h |
||
45 | lcd.o : lcd.c lcd.h global.h |
||
46 | i2c.o : i2c.c i2c.h global.h |
||
47 | spi.o : spi.c spi.h global.h |
||
48 | rtc.o : rtc.c rtc.h global.h |
||
49 | $(TRG).o : $(TRG).c global.h |
Powered by WebSVN v2.8.3