2009-01-22 01:27:03 +00:00
|
|
|
AS=ca65
|
|
|
|
LD=ld65
|
|
|
|
AFLAGS=
|
|
|
|
|
2011-01-15 00:34:09 +00:00
|
|
|
# ip65.lib : minimal IP stack (UDP only)
|
|
|
|
# ip65_tcp.lib : full featured TCP/IP stack
|
|
|
|
# ip65_wiznet.lib : hybrid stack for use with the w5100 chip : UDP,ICMP & ARP is done on host, TCP is on w5100
|
|
|
|
|
2009-01-22 01:27:03 +00:00
|
|
|
%.o: %.c
|
|
|
|
$(CC) -c $(CFLAGS) $<
|
|
|
|
|
|
|
|
%.o: %.s
|
2010-12-09 10:12:40 +00:00
|
|
|
$(AS) $(AFLAGS) $<
|
|
|
|
|
2013-12-15 21:50:01 +00:00
|
|
|
ETHOBJS=\
|
2009-01-22 01:27:03 +00:00
|
|
|
copymem.o \
|
|
|
|
config.o \
|
|
|
|
timer.o \
|
|
|
|
eth.o \
|
|
|
|
arp.o \
|
|
|
|
ip65.o \
|
|
|
|
printf.o \
|
2010-12-09 10:12:40 +00:00
|
|
|
debug.o \
|
|
|
|
http.o \
|
|
|
|
httpd.o \
|
|
|
|
dhcp.o \
|
|
|
|
dns.o \
|
|
|
|
dottedquad.o \
|
|
|
|
output_buffer.o\
|
|
|
|
tftp.o \
|
|
|
|
parser.o \
|
|
|
|
string_utils.o \
|
|
|
|
telnet.o \
|
|
|
|
url.o \
|
|
|
|
arithmetic.o\
|
2010-12-28 11:59:56 +00:00
|
|
|
ip.o \
|
2012-01-12 09:43:40 +00:00
|
|
|
sntp.o \
|
2010-12-28 11:59:56 +00:00
|
|
|
icmp.o \
|
2011-01-02 01:14:45 +00:00
|
|
|
cifs.o \
|
2010-12-28 11:59:56 +00:00
|
|
|
udp.o
|
2013-12-15 21:50:01 +00:00
|
|
|
|
2010-12-15 08:08:47 +00:00
|
|
|
all: ip65.lib ip65_tcp.lib ip65_wiznet.lib
|
2009-01-22 01:27:03 +00:00
|
|
|
|
2010-12-28 11:59:56 +00:00
|
|
|
ip65.lib: $(ETHOBJS) function_dispatcher.s
|
2010-12-09 10:12:40 +00:00
|
|
|
$(AS) $(AFLAGS) function_dispatcher.s
|
|
|
|
$(AS) $(AFLAGS) ip.s
|
2009-08-21 13:21:14 +00:00
|
|
|
$(AS) $(AFLAGS) icmp.s
|
2010-12-28 11:59:56 +00:00
|
|
|
ar65 a ip65.lib $(ETHOBJS) function_dispatcher.o
|
2010-12-09 10:12:40 +00:00
|
|
|
|
2010-12-28 11:59:56 +00:00
|
|
|
ip65_tcp.lib: tcp.o $(ETHOBJS) function_dispatcher.s tcp.s
|
2010-12-09 10:12:40 +00:00
|
|
|
$(AS) $(AFLAGS) function_dispatcher.s -DTCP -DAPI_VERSION=2
|
|
|
|
$(AS) $(AFLAGS) ip.s -DTCP
|
|
|
|
$(AS) $(AFLAGS) icmp.s -DTCP
|
2010-12-28 11:59:56 +00:00
|
|
|
ar65 a ip65_tcp.lib $(ETHOBJS) function_dispatcher.o tcp.o
|
2010-12-15 08:08:47 +00:00
|
|
|
|
|
|
|
ip65_wiznet.lib: $(ETHOBJS) function_dispatcher.s
|
2010-12-29 05:44:39 +00:00
|
|
|
$(AS) $(AFLAGS) function_dispatcher.s
|
|
|
|
$(AS) $(AFLAGS) ip.s
|
2010-12-28 11:59:56 +00:00
|
|
|
$(AS) $(AFLAGS) icmp.s -DTCP
|
2010-12-29 05:44:39 +00:00
|
|
|
ar65 a ip65_wiznet.lib $(ETHOBJS) function_dispatcher.o
|
2009-01-22 01:27:03 +00:00
|
|
|
|
|
|
|
clean:
|
2013-12-27 13:48:16 +00:00
|
|
|
-rm -f *.o
|
|
|
|
-rm -f ip65.lib
|
|
|
|
-rm -f ip65_tcp.lib
|
|
|
|
-rm -f ip65_wiznet.lib
|
2009-01-22 01:27:03 +00:00
|
|
|
|
|
|
|
distclean: clean
|
2013-12-27 13:48:16 +00:00
|
|
|
-rm -f *~
|