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 test_base_CFLAGS = -Wno-string-concatenation
21 libheimbase_la_LDFLAGS = -version-info 1:0:0
23 if FRAMEWORK_COREFOUNDATION
24 libheimbase_la_LDFLAGS += -framework CoreFoundation
30 libheimbase_la_LDFLAGS += $(LDFLAGS_VERSION_SCRIPT)$(srcdir)/version-script.map
33 libheimbase_la_LIBADD = $(PTHREAD_LIBADD) $(LIB_dlopen) $(LIB_com_err)
35 include_HEADERS = heimbase.h common_plugin.h heimbase-atomics.h heimbase-svc.h
37 ERR_FILES = heim_err.c
39 dist_libheimbase_la_SOURCES = \
65 nodist_libheimbase_la_SOURCES = $(ES) $(ERR_FILES)
67 $(libheimbase_la_OBJECTS): $(srcdir)/heimbase-protos.h heim_err.h
69 $(srcdir)/heimbase-protos.h: $(dist_libheimbase_la_SOURCES)
71 perl ../../cf/make-proto.pl -q -P comment -o heimbase-protos.h $(dist_libheimbase_la_SOURCES) || \
72 rm -f heimbase-protos.h
74 $(srcdir)/heimbase-private.h: $(dist_libheimbase_la_SOURCES)
76 perl ../../cf/make-proto.pl -q -P comment -p heimbase-private.h $(dist_libheimbase_la_SOURCES) || \
77 rm -f heimbase-private.h
81 libheimbase_la_DEPENDENCIES = version-script.map
83 test_base_LDADD = libheimbase.la $(LIB_roken)
85 CLEANFILES = base64.c test_db.json heim_err.c heim_err.h
87 EXTRA_DIST = NTMakefile version-script.map config_reg.c heim_err.et
89 dist_include_HEADERS = heimbase-protos.h
91 nodist_include_HEADERS = heim_err.h
93 heim_err.h: heim_err.et
97 $(LN_S) $(srcdir)/../roken/base64.c .