Files
heimdal/lib/base/Makefile.am
Nicolas Williams a7f8732d79 Fix #182, add -lpthread to libheimbase as needed
We should really check whether pthread_once() is in libc so that then we
don't have to add an unnecessary dependency on -lpthread.

Also, we have a proper once implementation that we could use when we
don't have pthread_once(), so we should fallback on that if we detect
that we have neither pthread_once() in libc and --disable-pthread is
given.
2016-12-08 18:44:41 -06:00

65 lines
1.1 KiB
Makefile

include $(top_srcdir)/Makefile.am.common
if do_roken_rename
ES = base64.c
endif
IMPLEMENT_TLS=
if MAINTAINER_MODE
IMPLEMENT_TLS += dll.c
AM_CPPFLAGS += -DHEIM_BASE_MAINTAINER
endif
AM_CPPFLAGS += $(ROKEN_RENAME)
lib_LTLIBRARIES = libheimbase.la
check_PROGRAMS = test_base
libheimbase_la_LDFLAGS = -version-info 1:0:0
TESTS = test_base
if versionscript
libheimbase_la_LDFLAGS += $(LDFLAGS_VERSION_SCRIPT)$(srcdir)/version-script.map
endif
libheimbase_la_LIBADD = $(PTHREAD_LIBADD)
include_HEADERS = heimbase.h
dist_libheimbase_la_SOURCES = \
array.c \
baselocl.h \
bsearch.c \
bool.c \
data.c \
db.c \
dict.c \
$(IMPLEMENT_TLS) \
error.c \
heimbase.c \
heimbasepriv.h \
heimqueue.h \
json.c \
null.c \
number.c \
roken_rename.h \
string.c
nodist_libheimbase_la_SOURCES = $(ES)
# install these?
libheimbase_la_DEPENDENCIES = version-script.map
test_base_LDADD = libheimbase.la $(LIB_roken)
CLEANFILES = base64.c test_db.json
EXTRA_DIST = NTMakefile version-script.map
base64.c:
rm -f base64.c
$(LN_S) $(srcdir)/../roken/base64.c .