2009-01-22 01:27:03 +00:00
|
|
|
AS=ca65
|
|
|
|
LD=ld65
|
|
|
|
AFLAGS=
|
|
|
|
|
|
|
|
|
|
|
|
%.o: %.c
|
|
|
|
$(CC) -c $(CFLAGS) $<
|
|
|
|
|
|
|
|
%.o: %.s
|
2009-04-18 12:59:10 +00:00
|
|
|
$(AS) $(AFLAGS) $<
|
2009-01-22 01:27:03 +00:00
|
|
|
|
|
|
|
ETHOBJS= \
|
|
|
|
copymem.o \
|
|
|
|
config.o \
|
|
|
|
timer.o \
|
|
|
|
cs8900a.o \
|
|
|
|
eth.o \
|
|
|
|
arp.o \
|
|
|
|
udp.o \
|
|
|
|
ip65.o \
|
|
|
|
printf.o \
|
|
|
|
debug.o \
|
2009-10-16 11:18:05 +00:00
|
|
|
http.o \
|
|
|
|
httpd.o \
|
2009-01-22 01:27:03 +00:00
|
|
|
dhcp.o \
|
|
|
|
dns.o \
|
2009-02-08 05:41:42 +00:00
|
|
|
dottedquad.o \
|
2009-04-05 06:56:11 +00:00
|
|
|
output_buffer.o\
|
2009-06-21 09:30:11 +00:00
|
|
|
tftp.o \
|
2009-09-22 02:05:49 +00:00
|
|
|
sntp.o \
|
2009-08-11 11:32:06 +00:00
|
|
|
parser.o \
|
|
|
|
string_utils.o \
|
2009-07-30 10:43:37 +00:00
|
|
|
telnet.o \
|
2009-12-06 06:24:18 +00:00
|
|
|
xmodem.o \
|
2009-08-16 04:15:43 +00:00
|
|
|
url.o \
|
2009-07-30 10:43:37 +00:00
|
|
|
arithmetic.o\
|
2009-01-22 01:27:03 +00:00
|
|
|
|
2009-06-21 05:49:11 +00:00
|
|
|
all: ip65.lib ip65_tcp.lib
|
2009-01-22 01:27:03 +00:00
|
|
|
|
2009-08-21 13:21:14 +00:00
|
|
|
ip65.lib: $(ETHOBJS) function_dispatcher.s ip.s icmp.s
|
2009-06-21 09:30:11 +00:00
|
|
|
$(AS) $(AFLAGS) function_dispatcher.s
|
2009-08-21 13:21:14 +00:00
|
|
|
$(AS) $(AFLAGS) ip.s
|
|
|
|
$(AS) $(AFLAGS) icmp.s
|
|
|
|
ar65 a ip65.lib $(ETHOBJS) function_dispatcher.o ip.o icmp.o
|
2009-06-21 05:49:11 +00:00
|
|
|
|
2009-08-21 13:21:14 +00:00
|
|
|
ip65_tcp.lib: tcp.o $(ETHOBJS) function_dispatcher.s ip.s tcp.s icmp.s
|
2009-07-17 02:53:46 +00:00
|
|
|
$(AS) $(AFLAGS) function_dispatcher.s -DTCP -DAPI_VERSION=2
|
2009-06-21 09:30:11 +00:00
|
|
|
$(AS) $(AFLAGS) ip.s -DTCP
|
2009-08-21 13:21:14 +00:00
|
|
|
$(AS) $(AFLAGS) icmp.s -DTCP
|
|
|
|
ar65 a ip65_tcp.lib $(ETHOBJS) function_dispatcher.o ip.o tcp.o icmp.o
|
2009-01-22 01:27:03 +00:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f *.o
|
|
|
|
rm -f ip65.lib
|
2009-06-21 09:30:11 +00:00
|
|
|
rm -f ip65_tcp.lib
|
2009-01-22 01:27:03 +00:00
|
|
|
|
|
|
|
|
|
|
|
distclean: clean
|
|
|
|
rm -f *~
|