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 \
|
|
|
|
ip.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-06-24 13:52:23 +00:00
|
|
|
tcp.o \
|
|
|
|
arithmetic.o\
|
2009-06-21 05:49:11 +00:00
|
|
|
function_dispatcher.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-06-21 09:30:11 +00:00
|
|
|
ip65.lib: $(ETHOBJS)
|
|
|
|
$(AS) $(AFLAGS) function_dispatcher.s
|
|
|
|
$(AS) $(AFLAGS) ip.s
|
2009-01-22 01:27:03 +00:00
|
|
|
ar65 a ip65.lib $^
|
2009-06-21 05:49:11 +00:00
|
|
|
|
|
|
|
ip65_tcp.lib: tcp.o $(ETHOBJS)
|
2009-06-21 09:30:11 +00:00
|
|
|
$(AS) $(AFLAGS) function_dispatcher.s -DTCP
|
|
|
|
$(AS) $(AFLAGS) ip.s -DTCP
|
2009-06-21 05:49:11 +00:00
|
|
|
ar65 a ip65_tcp.lib $^
|
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 *~
|