Move stubby from genode to genode-world

Issue genodelabs/genode#3789
This commit is contained in:
Norman Feske
2020-06-26 11:28:37 +02:00
parent a50a742a2f
commit 471283c69d
23 changed files with 1247 additions and 0 deletions

12
lib/mk/getdns-gldns.mk Normal file
View File

@@ -0,0 +1,12 @@
include $(REP_DIR)/lib/import/import-libgetdns.mk
GLDNS_SRC_DIR := $(GETDNS_PORT_DIR)/src/lib/getdns/src/gldns
LIBS += libc libssl
INC_DIR += $(GLDNS_SRC_DIR)/..
INC_DIR += $(REP_DIR)/src/lib/getdns
SRC_C += $(notdir $(wildcard $(GLDNS_SRC_DIR)/*.c))
vpath %.c $(GLDNS_SRC_DIR)

31
lib/mk/libgetdns.mk Normal file
View File

@@ -0,0 +1,31 @@
include $(REP_DIR)/lib/import/import-libgetdns.mk
GETDNS_SRC_DIR := $(GETDNS_PORT_DIR)/src/lib/getdns/src
LIBS += libc libcrypto libssl libyaml
INC_DIR += $(GETDNS_SRC_DIR)
INC_DIR += $(GETDNS_SRC_DIR)/../stubby/src
INC_DIR += $(GETDNS_SRC_DIR)/util/auxiliary
INC_DIR += $(REP_DIR)/src/lib/getdns
SRC_C += \
const-info.c convert.c dict.c dnssec.c general.c \
list.c request-internal.c platform.c pubkey-pinning.c rr-dict.c \
rr-iter.c server.c stub.c sync.c ub_loop.c util-internal.c \
mdns.c context.c rbtree.c select_eventloop.c version.c \
CC_OPT += -D_BSD_SOURCE -D_DEFAULT_SOURCE
SRC_C += $(notdir $(wildcard $(GETDNS_SRC_DIR)/gldns/*.c))
SRC_C += $(notdir $(wildcard $(GETDNS_SRC_DIR)/jsmn/*.c))
SRC_C += $(notdir $(wildcard $(GETDNS_SRC_DIR)/ssl_dane/*.c))
vpath %.c $(GETDNS_SRC_DIR)
vpath %.c $(GETDNS_SRC_DIR)/extension
vpath %.c $(GETDNS_SRC_DIR)/gldns
vpath %.c $(GETDNS_SRC_DIR)/jsmn
vpath %.c $(GETDNS_SRC_DIR)/ssl_dane
vpath %.c $(GETDNS_SRC_DIR)/util
SHARED_LIB = 1