| Line No. | Rev | Author | Line |
|---|---|---|---|
| 1 | 6 | kaklik | # Makefile for mmctest |
| 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 = mmctest |
||
| 12 | |||
| 13 | #put your C sourcefiles here |
||
| 14 | |||
| 15 | AVRLIB_SRC = buffer.c uart.c rprintf.c timer.c vt100.c spi.c mmc.c debug.c |
||
| 16 | |||
| 17 | SRC = $(TRG).c |
||
| 18 | |||
| 19 | #put additional assembler source file here |
||
| 20 | ASRC = |
||
| 21 | |||
| 22 | #additional libraries and object files to link |
||
| 23 | LIB = |
||
| 24 | |||
| 25 | #additional includes to compile |
||
| 26 | INC = |
||
| 27 | |||
| 28 | #assembler flags |
||
| 29 | ASFLAGS = -Wa, -gstabs |
||
| 30 | |||
| 31 | #compiler flags |
||
| 32 | CPFLAGS = -g -Os -Wall -Wstrict-prototypes -I$(AVRLIB) -Wa,-ahlms=$(<:.c=.lst) |
||
| 33 | |||
| 34 | #linker flags |
||
| 35 | LDFLAGS = -Wl,-Map=$(TRG).map,--cref |
||
| 36 | |||
| 37 | |||
| 38 | ########### you should not need to change the following line ############# |
||
| 39 | include $(AVRLIB)/make/avrproj_make |
||
| 40 | |||
| 41 | ###### dependecies, add any dependencies you need here ################### |
||
| 42 | buffer.o : buffer.c buffer.h |
||
| 43 | uart2.o : uart2.c uart2.h global.h |
||
| 44 | rprintf.o : rprintf.c rprintf.h |
||
| 45 | a2d.o : a2d.c a2d.h |
||
| 46 | timer128.o : timer128.c timer128.h global.h |
||
| 47 | lcd.o : lcd.c lcd.h global.h |
||
| 48 | i2c.o : i2c.c i2c.h global.h |
||
| 49 | spi.o : spi.c spi.h global.h |
||
| 50 | rtc.o : rtc.c rtc.h global.h |
||
| 51 | $(TRG).o : $(TRG).c global.h |
Powered by WebSVN v2.8.3