mirror of
https://github.com/0intro/conterm
synced 2024-11-21 21:31:23 +03:00
23a48c7cfe
Addresses are now stored as uchar[16] instead of ulong, with enough room for IPv6. Generic IP functions have been removed from devip.c and replaced by libip, imported from Plan 9. Names and addresses are resolved using either gethostbyname() or getaddrinfo() functions. On Windows, IPv6 name resolution is not enabled, because mingw32 doesn't provide inet_ntop(). R=rsc http://codereview.appspot.com/6408044
20 lines
225 B
Makefile
20 lines
225 B
Makefile
ROOT=..
|
|
include ../Make.config
|
|
LIB=libip.a
|
|
|
|
OFILES=\
|
|
eipfmt.$O\
|
|
parseip.$O\
|
|
classmask.$O\
|
|
bo.$O\
|
|
ipaux.$O\
|
|
|
|
default: $(LIB)
|
|
$(LIB): $(OFILES)
|
|
$(AR) r $(LIB) $(OFILES)
|
|
$(RANLIB) $(LIB)
|
|
|
|
%.$O: %.c
|
|
$(CC) $(CFLAGS) $*.c
|
|
|