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 \
|
|
|
|
icmp.o \
|
|
|
|
udp.o \
|
|
|
|
ip65.o \
|
|
|
|
printf.o \
|
|
|
|
debug.o \
|
|
|
|
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-08-11 11:32:06 +00:00
|
|
|
parser.o \
|
|
|
|
string_utils.o \
|
2009-07-30 10:43:37 +00:00
|
|
|
telnet.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-07-17 02:53:46 +00:00
|
|
|
ip65.lib: $(ETHOBJS) function_dispatcher.s ip.s
|
2009-06-21 09:30:11 +00:00
|
|
|
$(AS) $(AFLAGS) function_dispatcher.s
|
|
|
|
$(AS) $(AFLAGS) ip.s
|
2009-07-17 02:53:46 +00:00
|
|
|
ar65 a ip65.lib $(ETHOBJS) function_dispatcher.o ip.o
|
2009-06-21 05:49:11 +00:00
|
|
|
|
2009-07-17 02:53:46 +00:00
|
|
|
ip65_tcp.lib: tcp.o $(ETHOBJS) function_dispatcher.s ip.s tcp.s
|
|
|
|
$(AS) $(AFLAGS) function_dispatcher.s -DTCP -DAPI_VERSION=2
|
2009-06-21 09:30:11 +00:00
|
|
|
$(AS) $(AFLAGS) ip.s -DTCP
|
2009-07-17 02:53:46 +00:00
|
|
|
ar65 a ip65_tcp.lib $(ETHOBJS) function_dispatcher.o ip.o tcp.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 *~
|