Files
bind9/lib/isc/Makefile.am
Ondřej Surý a011d42211 Add new isc_managers API to simplify <*>mgr create/destroy
Previously, netmgr, taskmgr, timermgr and socketmgr all had their own
isc_<*>mgr_create() and isc_<*>mgr_destroy() functions.  The new
isc_managers_create() and isc_managers_destroy() fold all four into a
single function and makes sure the objects are created and destroy in
correct order.

Especially now, when taskmgr runs on top of netmgr, the correct order is
important and when the code was duplicated at many places it's easy to
make mistake.

The former isc_<*>mgr_create() and isc_<*>mgr_destroy() functions were
made private and a single call to isc_managers_create() and
isc_managers_destroy() is required at the program startup / shutdown.
2021-05-07 10:19:05 -07:00

270 lines
5.2 KiB
Makefile

include $(top_srcdir)/Makefile.top
lib_LTLIBRARIES = libisc.la
libisc_ladir = $(includedir)/isc
libisc_la_HEADERS = \
include/isc/aes.h \
include/isc/app.h \
include/isc/assertions.h \
include/isc/astack.h \
include/isc/atomic.h \
include/isc/attributes.h \
include/isc/backtrace.h \
include/isc/base32.h \
include/isc/base64.h \
include/isc/bind9.h \
include/isc/buffer.h \
include/isc/cmocka.h \
include/isc/commandline.h \
include/isc/counter.h \
include/isc/crc64.h \
include/isc/deprecated.h \
include/isc/endian.h \
include/isc/errno.h \
include/isc/error.h \
include/isc/event.h \
include/isc/eventclass.h \
include/isc/file.h \
include/isc/formatcheck.h \
include/isc/fsaccess.h \
include/isc/fuzz.h \
include/isc/glob.h \
include/isc/hash.h \
include/isc/heap.h \
include/isc/hex.h \
include/isc/hmac.h \
include/isc/hp.h \
include/isc/ht.h \
include/isc/httpd.h \
include/isc/interfaceiter.h \
include/isc/iterated_hash.h \
include/isc/lang.h \
include/isc/lex.h \
include/isc/lib.h \
include/isc/likely.h \
include/isc/list.h \
include/isc/log.h \
include/isc/magic.h \
include/isc/managers.h \
include/isc/md.h \
include/isc/mem.h \
include/isc/meminfo.h \
include/isc/mutexatomic.h \
include/isc/mutexblock.h \
include/isc/netaddr.h \
include/isc/netmgr.h \
include/isc/netscope.h \
include/isc/nonce.h \
include/isc/os.h \
include/isc/parseint.h \
include/isc/pool.h \
include/isc/portset.h \
include/isc/platform.h \
include/isc/print.h \
include/isc/queue.h \
include/isc/quota.h \
include/isc/radix.h \
include/isc/random.h \
include/isc/ratelimiter.h \
include/isc/refcount.h \
include/isc/regex.h \
include/isc/region.h \
include/isc/resource.h \
include/isc/result.h \
include/isc/resultclass.h \
include/isc/rwlock.h \
include/isc/safe.h \
include/isc/serial.h \
include/isc/siphash.h \
include/isc/sockaddr.h \
include/isc/socket.h \
include/isc/stats.h \
include/isc/stdio.h \
include/isc/strerr.h \
include/isc/string.h \
include/isc/symtab.h \
include/isc/task.h \
include/isc/taskpool.h \
include/isc/timer.h \
include/isc/tls.h \
include/isc/tm.h \
include/isc/types.h \
include/isc/url.h \
include/isc/utf8.h \
include/isc/util.h \
pthreads/include/isc/condition.h\
pthreads/include/isc/mutex.h \
pthreads/include/isc/once.h \
pthreads/include/isc/thread.h \
unix/errno2result.h \
unix/include/isc/align.h \
unix/include/isc/dir.h \
unix/include/isc/netdb.h \
unix/include/isc/net.h \
unix/include/isc/offset.h \
unix/include/isc/stat.h \
unix/include/isc/stdatomic.h \
unix/include/isc/stdtime.h \
unix/include/isc/syslog.h \
unix/include/isc/time.h
pk11dir = $(includedir)/pk11
pk11_HEADERS = \
include/pk11/constants.h \
include/pk11/internal.h \
include/pk11/pk11.h \
include/pk11/result.h \
include/pk11/site.h
pkcs11dir = $(includedir)/pkcs11
pkcs11_HEADERS = \
include/pkcs11/pkcs11.h
libisc_la_SOURCES = \
$(libisc_la_HEADERS) \
$(pk11_HEADERS) \
$(pkcs11_HEADERS) \
netmgr/http.c \
netmgr/netmgr-int.h \
netmgr/netmgr.c \
netmgr/tcp.c \
netmgr/tcpdns.c \
netmgr/tlsdns.c \
netmgr/tlsstream.c \
netmgr/udp.c \
netmgr/uv-compat.c \
netmgr/uv-compat.h \
netmgr/uverr2result.c \
unix/pk11_api.c \
unix/dir.c \
unix/errno.c \
unix/errno2result.c \
unix/file.c \
unix/fsaccess.c \
unix/interfaceiter.c \
unix/meminfo.c \
unix/net.c \
unix/os.c \
unix/resource.c \
unix/socket.c \
unix/stdio.c \
unix/stdtime.c \
unix/syslog.c \
unix/time.c \
url.c \
pk11.c \
pk11_result.c \
aes.c \
app.c \
assertions.c \
astack.c \
backtrace.c \
base32.c \
base64.c \
bind9.c \
buffer.c \
commandline.c \
counter.c \
crc64.c \
entropy.c \
error.c \
event.c \
fsaccess_common.c \
glob.c \
hash.c \
hp.c \
ht.c \
heap.c \
hex.c \
hmac.c \
httpd.c \
iterated_hash.c \
lex.c \
lib.c \
log.c \
managers.c \
md.c \
mem.c \
mutexblock.c \
netaddr.c \
netscope.c \
nonce.c \
openssl_shim.c \
queue.c \
openssl_shim.h \
pool.c \
parseint.c \
portset.c \
quota.c \
radix.c \
random.c \
ratelimiter.c \
region.c \
regex.c \
result.c \
rwlock.c \
safe.c \
serial.c \
siphash.c \
sockaddr.c \
stats.c \
string.c \
symtab.c \
task.c \
taskpool.c \
timer.c \
tls.c \
trampoline.c \
trampoline_p.h \
tm.c \
utf8.c \
pthreads/condition.c \
pthreads/mutex.c \
pthreads/thread.c \
entropy_private.h \
fsaccess_common_p.h \
task_p.h \
timer_p.h \
socket_p.h \
netmgr_p.h \
lib_p.h \
mem_p.h \
tls_p.h
libisc_la_CPPFLAGS = \
$(AM_CPPFLAGS) \
$(LIBISC_CFLAGS) \
$(LIBUV_CFLAGS) \
$(OPENSSL_CFLAGS) \
$(ZLIB_CFLAGS)
libisc_la_LDFLAGS = \
$(AM_LDFLAGS) \
-release "$(PACKAGE_VERSION)"
libisc_la_LIBADD = \
$(LIBUV_LIBS) \
$(OPENSSL_LIBS) \
$(ZLIB_LIBS)
if HAVE_JSON_C
libisc_la_CPPFLAGS += \
$(JSON_C_CFLAGS)
libisc_la_LIBADD += \
$(JSON_C_LIBS)
endif HAVE_JSON_C
if HAVE_LIBXML2
libisc_la_CPPFLAGS += \
$(LIBXML2_CFLAGS)
libisc_la_LIBADD += \
$(LIBXML2_LIBS)
endif HAVE_LIBXML2
if HAVE_CMOCKA
SUBDIRS = tests
endif