?lang_form? ?lang_select? ?lang_submit? ?lang_endform?
{HEADER END}
{BLAME START}

library

?curdirlinks? -

Blame information for rev 6

Line No. Rev Author Line
1 6 kaklik # Makefile for AVR function library development and examples
2 # Author: Pascal Stang
3 #
4 # For those who have never heard of makefiles: a makefile is essentially a
5 # script for compiling your code. Most C/C++ compilers in the world are
6 # command line programs and this is even true of programming environments
7 # which appear to be windows-based (like Microsoft Visual C++). Although
8 # you could use AVR-GCC directly from the command line and try to remember
9 # the compiler options each time, using a makefile keeps you free of this
10 # tedious task and automates the compile and link process.
11 #
12 # For those just starting with AVR-GCC and not used to using makefiles,
13 # I've added some extra comments above several of the makefile fields which
14 # you will have to deal with.
15  
16 ########### change this lines according to your project ##################
17 #put the name of the target mcu here (at90s8515, at90s8535, attiny22, atmega603 etc.)
18 # MCU = at90s8515
19 # MCU = atmega161
20 # MCU = atmega163
21 MCU = atmega16
22 # MCU = atmega32
23 # MCU = atmega128
24  
25 #put the name of the target file here (without .c extension)
26 # Your "target" file is your C source file that is at the top level of your code.
27 # In other words, this is the file which contains your main() function.
28  
29 TRG = netstacktest
30  
31 #put your C sourcefiles here
32 # Here you must list any C source files which are used by your target file.
33 # They will be compiled in the order you list them, so it's probably best
34 # to list $(TRG).c, your top-level target file, last.
35  
36 AVRLIB_SRC = buffer.c uart.c rprintf.c timer.c vt100.c debug.c net/net.c net/arp.c net/ip.c net/icmp.c net/netstack.c
37  
38 # Select network interface
39 AVRLIB_SRC += net/rtl8019.c
40 # AVRLIB_SRC += net/cs8900.c
41 # AVRLIB_SRC += net/ax88796.c
42 # AVRLIB_SRC += net/prism2.c
43  
44 SRC = $(TRG).c
45  
46 #put additional assembler source file here
47 # The ASRC line allows you to list files which contain assembly code/routines that
48 # you would like to use from within your C programs. The assembly code must be
49 # written in a special way to be usable as a function from your C code.
50  
51 ASRC =
52  
53 #additional libraries and object files to link
54 # Libraries and object files are collections of functions which have already been
55 # compiled. If you have such files, list them here, and you will be able to use
56 # use the functions they contain in your target program.
57  
58 LIB =
59  
60 #additional includes to compile
61 INC =
62  
63 #assembler flags
64 ASFLAGS = -Wa, -gstabs
65  
66 #compiler flags
67 CPFLAGS = -g -Os -Wall -Wstrict-prototypes -I$(AVRLIB) -Wa,-ahlms=$(<:.c=.lst)
68  
69 #linker flags
70 LDFLAGS = -Wl,-Map=$(TRG).map,--cref
71 # Use the -lm flag if you need the floating-point math library
72 # LDFLAGS = -Wl,-Map=$(TRG).map,--cref -lm
73  
74  
75 ########### you should not need to change the following line #############
76 include $(AVRLIB)/make/avrproj_make
77  
78 ###### dependecies, add any dependencies you need here ###################
79 # Dependencies tell the compiler which files in your code depend on which
80 # other files. When you change a piece of code, the dependencies allow
81 # the compiler to intelligently figure out which files are affected and
82 # need to be recompiled. You should only list the dependencies of *.o
83 # files. For example: uart.o is the compiled output of uart.c and uart.h
84 # and therefore, uart.o "depends" on uart.c and uart.h. But the code in
85 # uart.c also uses information from global.h, so that file should be listed
86 # in the dependecies too. That way, if you alter global.h, uart.o will be
87 # recompiled to take into account the changes.
88  
89 buffer.o : buffer.c buffer.h
90 uart.o : uart.c uart.h global.h
91 uart2.o : uart2.c uart2.h global.h
92 rprintf.o : rprintf.c rprintf.h
93 a2d.o : a2d.c a2d.h
94 timer.o : timer.c timer.h global.h
95 pulse.o : pulse.c pulse.h timer.h global.h
96 lcd.o : lcd.c lcd.h global.h
97 i2c.o : i2c.c i2c.h global.h
98 spi.o : spi.c spi.h global.h
99 swpwm.o : swpwm.c swpwm.h global.h
100 servo.o : servo.c servo.h global.h
101 uartsw.o : uartsw.c uartsw.h global.h
102 tsip.o : tsip.c tsip.h global.h
103 nmea.o : nmea.c nmea.h global.h
104 vt100.o : vt100.c vt100.h global.h
105 gps.o : gps.c gps.h global.h
106 $(TRG).o : $(TRG).c makefile global.h
{BLAME END}
{FOOTER START}

Powered by WebSVN v2.8.3