2014-05-07 21:52:52 +00:00
|
|
|
LIBC_NET_DIR = $(LIBC_DIR)/lib/libc/net
|
2012-05-24 13:26:59 +00:00
|
|
|
|
|
|
|
# needed for compiling getservbyname() and getservbyport()
|
|
|
|
SRC_C = getservent.c nsdispatch.c nsparser.c nslexer.c
|
|
|
|
|
|
|
|
# needed for getaddrinfo()
|
2012-07-12 11:39:31 +00:00
|
|
|
SRC_C += getaddrinfo.c
|
2012-05-24 13:26:59 +00:00
|
|
|
|
2012-07-12 11:39:31 +00:00
|
|
|
# needed for getnameinfo()
|
|
|
|
SRC_C += getnameinfo.c name6.c
|
2012-05-24 13:26:59 +00:00
|
|
|
|
|
|
|
# needed for gethostbyname()
|
|
|
|
SRC_C += gethostnamadr.c gethostbydns.c gethostbyht.c map_v4v6.c
|
|
|
|
|
|
|
|
# needed for getprotobyname()
|
|
|
|
SRC_C += getprotoent.c getprotoname.c
|
|
|
|
|
|
|
|
# defines in6addr_any
|
|
|
|
SRC_C += vars.c
|
|
|
|
|
|
|
|
# b64_ntop
|
|
|
|
SRC_C += base64.c
|
|
|
|
|
|
|
|
include $(REP_DIR)/lib/mk/libc-common.inc
|
|
|
|
|
2017-09-28 16:02:30 +00:00
|
|
|
INC_DIR += $(LIBC_REP_DIR)/include/libc
|
|
|
|
INC_DIR += $(LIBC_REP_DIR)/include/libc/sys
|
2014-05-07 21:52:52 +00:00
|
|
|
INC_DIR += $(LIBC_PORT_DIR)/include/libc/sys
|
2012-07-12 11:39:31 +00:00
|
|
|
|
|
|
|
# needed for name6.c, contains res_private.h
|
2014-05-07 21:52:52 +00:00
|
|
|
INC_DIR += $(LIBC_DIR)/lib/libc/resolv
|
2012-07-12 11:39:31 +00:00
|
|
|
|
2012-05-24 13:26:59 +00:00
|
|
|
vpath %.c $(LIBC_NET_DIR)
|
2017-08-18 12:37:35 +00:00
|
|
|
|
|
|
|
nslexer.o: nsparser.c nsparser.c
|
|
|
|
|
|
|
|
nslexer.c: nslexer.l
|
|
|
|
$(MSG_CONVERT)$(notdir $@)
|
|
|
|
$(VERBOSE)flex -P_nsyy -t $< | sed -e '/YY_BUF_SIZE/s/16384/1024/' > $@
|
|
|
|
|
|
|
|
vpath nslexer.l $(LIBC_NET_DIR)
|
|
|
|
|
|
|
|
nsparser.c: nsparser.y
|
|
|
|
$(MSG_CONVERT)$(notdir $@)
|
|
|
|
$(VERBOSE)bison -d -p_nsyy $< \
|
2017-11-13 14:22:05 +00:00
|
|
|
--defines=nsparser.h --output=$@
|
2017-08-18 12:37:35 +00:00
|
|
|
|
|
|
|
vpath nsparser.y $(LIBC_NET_DIR)
|