Subversion Repositories svnkaklik

Rev

Rev 409 | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log

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