Subversion Repositories svnkaklik

Rev

Details | Last modification | View Log

Rev Author Line No. Line
359 kaklik 1
# Simple Makefile
2
# Volker Oth (c) 1999
3
 
4
 
5
########### change this lines according to your project ##################
6
 
7
#put the name of the target mcu here (at90s8515, at90s8535, attiny22, atmega603 etc.)
8
    MCU = atmega103
9
 
10
#put the name of the target file here (without extension)
11
        TRG     = test_srf08
12
 
13
#put your C sourcefiles here 
14
        SRC     = $(TRG).c lcd_io.c i2c.c srf08.c
15
 
16
#put additional assembler source file here
17
        ASRC    = 
18
 
19
#additional libraries and object files to link
20
        LIB     =
21
 
22
#additional includes to compile
23
        INC     = 
24
 
25
#compiler flags
26
        CPFLAGS = -g -Os -Wall -Wstrict-prototypes -Wa,-ahlms=$(<:.c=.lst)
27
 
28
#linker flags
29
        LDFLAGS = -Wl,-Map=$(TRG).map,--cref
30
 
31
########### you should not need to change the following line #############
32
#include $(AVR)/include/avr_make
33
 
34
###### dependecies, add any dependencies you need here ###################
35
$(TRG).o : $(TRG).c  lcd_io.h srf08.h 
36
srf08.o  : srf08.c srf08.h i2c.h
37
lcd_io.o : lcd_io.c lcd_io.h 
38
i2c.o    : i2c.C i2c.h 
39
 
40
 
41
 
42
 
43