emailler/client/ip65/Makefile

55 lines
713 B
Makefile
Raw Normal View History

AS=ca65
LD=ld65
AFLAGS=
%.o: %.c
$(CC) -c $(CFLAGS) $<
%.o: %.s
$(AS) $(AFLAGS) $<
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 \
dottedquad.o \
output_buffer.o\
tftp.o \
tcp.o \
arithmetic.o\
function_dispatcher.o \
all: ip65.lib ip65_tcp.lib
ip65.lib: $(ETHOBJS)
$(AS) $(AFLAGS) function_dispatcher.s
$(AS) $(AFLAGS) ip.s
ar65 a ip65.lib $^
ip65_tcp.lib: tcp.o $(ETHOBJS)
$(AS) $(AFLAGS) function_dispatcher.s -DTCP
$(AS) $(AFLAGS) ip.s -DTCP
ar65 a ip65_tcp.lib $^
clean:
rm -f *.o
rm -f ip65.lib
rm -f ip65_tcp.lib
distclean: clean
rm -f *~