2 include $(top_srcdir)/Makefile.am.common
10 IMPLEMENT_TLS += dll.c
11 AM_CPPFLAGS += -DHEIM_BASE_MAINTAINER
14 AM_CPPFLAGS += $(ROKEN_RENAME) -I../com_err -I$(srcdir)/../com_err
16 lib_LTLIBRARIES = libheimbase.la
17 check_PROGRAMS = test_base
19 libheimbase_la_LDFLAGS = -version-info 1:0:0
21 if FRAMEWORK_COREFOUNDATION
22 libheimbase_la_LDFLAGS += -framework CoreFoundation
28 libheimbase_la_LDFLAGS += $(LDFLAGS_VERSION_SCRIPT)$(srcdir)/version-script.map
31 libheimbase_la_LIBADD = $(PTHREAD_LIBADD) $(LIB_dlopen) $(LIB_com_err)
33 include_HEADERS = heimbase.h common_plugin.h heimbase-atomics.h heimbase-svc.h
35 ERR_FILES = heim_err.c
37 dist_libheimbase_la_SOURCES = \
63 nodist_libheimbase_la_SOURCES = $(ES) $(ERR_FILES)
65 $(libheimbase_la_OBJECTS): $(srcdir)/heimbase-protos.h heim_err.h
67 $(srcdir)/heimbase-protos.h: $(dist_libheimbase_la_SOURCES)
69 perl ../../cf/make-proto.pl -q -P comment -o heimbase-protos.h $(dist_libheimbase_la_SOURCES) || \
70 rm -f heimbase-protos.h
72 $(srcdir)/heimbase-private.h: $(dist_libheimbase_la_SOURCES)
74 perl ../../cf/make-proto.pl -q -P comment -p heimbase-private.h $(dist_libheimbase_la_SOURCES) || \
75 rm -f heimbase-private.h
79 libheimbase_la_DEPENDENCIES = version-script.map
81 test_base_LDADD = libheimbase.la $(LIB_roken)
83 CLEANFILES = base64.c test_db.json heim_err.c heim_err.h
85 EXTRA_DIST = NTMakefile version-script.map config_reg.c heim_err.et
87 dist_include_HEADERS = heimbase-protos.h
89 nodist_include_HEADERS = heim_err.h
91 heim_err.h: heim_err.et
95 $(LN_S) $(srcdir)/../roken/base64.c .