genode/repos/libports/lib/mk/libc-net.mk
Norman Feske 366bba0227 Exclude higher-level repos from strict warnings
This is a follow-up commit to "Increase default warning level", which
overrides Genode's new default warning level for targets contained in
higher-level repositories. By explicitly whitelisting all those targets,
we can selectively adjust them to the new strictness over time - by
looking out for 'CC_CXX_WARN_STRICT' in the target description files.

Issue #465
2018-01-17 12:14:36 +01:00

51 lines
1.1 KiB
Makefile

LIBC_NET_DIR = $(LIBC_DIR)/lib/libc/net
# needed for compiling getservbyname() and getservbyport()
SRC_C = getservent.c nsdispatch.c nsparser.c nslexer.c
# needed for getaddrinfo()
SRC_C += getaddrinfo.c
# needed for getnameinfo()
SRC_C += getnameinfo.c name6.c
# 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
INC_DIR += $(LIBC_REP_DIR)/include/libc
INC_DIR += $(LIBC_REP_DIR)/include/libc/sys
INC_DIR += $(LIBC_PORT_DIR)/include/libc/sys
# needed for name6.c, contains res_private.h
INC_DIR += $(LIBC_DIR)/lib/libc/resolv
vpath %.c $(LIBC_NET_DIR)
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 $< \
--defines=nsparser.h --output=$@
vpath nsparser.y $(LIBC_NET_DIR)
CC_CXX_WARN_STRICT =