2009-01-22 01:27:03 +00:00
|
|
|
AS=ca65
|
|
|
|
LD=ld65
|
|
|
|
AFLAGS=
|
|
|
|
|
|
|
|
|
|
|
|
%.o: %.c
|
|
|
|
$(CC) -c $(CFLAGS) $<
|
|
|
|
|
|
|
|
%.o: %.s
|
2010-12-09 10:12:40 +00:00
|
|
|
$(AS) $(AFLAGS) $<
|
|
|
|
|
2009-01-22 01:27:03 +00:00
|
|
|
|
|
|
|
ETHOBJS= \
|
|
|
|
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 \
|
|
|
|
sntp.o \
|
|
|
|
parser.o \
|
|
|
|
string_utils.o \
|
|
|
|
telnet.o \
|
|
|
|
xmodem.o \
|
|
|
|
url.o \
|
|
|
|
arithmetic.o\
|
2010-12-28 11:59:56 +00:00
|
|
|
ip.o \
|
|
|
|
icmp.o \
|
2011-01-02 01:14:45 +00:00
|
|
|
cifs.o \
|
2010-12-28 11:59:56 +00:00
|
|
|
udp.o
|
2009-01-22 01:27:03 +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:
|
|
|
|
rm -f *.o
|
|
|
|
rm -f ip65.lib
|
2010-12-09 10:12:40 +00:00
|
|
|
rm -f ip65_tcp.lib
|
2010-12-15 08:08:47 +00:00
|
|
|
rm -f ip65_wiznet.lib
|
2009-01-22 01:27:03 +00:00
|
|
|
|
|
|
|
|
|
|
|
distclean: clean
|
|
|
|
rm -f *~
|