emailler/ip65/Makefile
Oliver Schmidt 6680772b04 Introduced C interface to IP65.
The IP5 usage of ld65 segments and zeropage variables was made compatible with cc65 C programs already a while ago. This commit is the next logical step which is to introduce the actual C interface to IP65.

IP65 for C programs shares the the ip65.lib / ip65_tcp.lib with IP65 for assembler programs. However the various libraries from the 'drivers' are not reused. Instead there's exactly one library for every target named ip65_<target>.lib. Those libraries contain only functions used by ip65.lib / ip65_tcp.lib.

TODOs:

- Introduce c64_timer.s and atr_timer.s.
- Add a C interface to the rest of the IP65 functionality (especially TCP).
2017-11-05 14:28:49 +01:00

49 lines
640 B
Makefile

# ip65.lib : minimal IP stack (UDP only)
# ip65_tcp.lib : full featured TCP/IP stack
all: ip65.lib ip65_tcp.lib
%.o: %.s
ca65 $<
%_tcp.o: %.s
ca65 -DTCP -o $@ $<
IP65OBJS=\
arithmetic.o \
arp.o \
config.o \
config_c.o \
copymem.o \
dhcp.o \
dhcp_c.o \
dns.o \
dns_c.o \
dottedquad.o \
dottedquad_c.o \
eth.o \
http.o \
httpd.o \
icmp_c.o \
ip65.o \
ip65_c.o \
tftp.o \
timer.o \
output_buffer.o \
parser.o \
sntp.o \
string_utils.o \
udp.o \
udp_c.o \
url.o
ip65.lib: $(IP65OBJS) ip.o icmp.o
ar65 a $@ $^
ip65_tcp.lib: $(IP65OBJS) ip_tcp.o icmp_tcp.o tcp.o
ar65 a $@ $^
clean:
-rm -f *.o
-rm -f *.lib