libtommath: Fix possible integer overflow CVE-2023-36328
[heimdal.git] / lib / base / Makefile.am
blob606e00a975c44df6f39a2426bcb602d192fa1211
2 include $(top_srcdir)/Makefile.am.common
4 if do_roken_rename
5 ES = base64.c
6 endif
8 IMPLEMENT_TLS=
9 if MAINTAINER_MODE
10 IMPLEMENT_TLS += dll.c
11 AM_CPPFLAGS += -DHEIM_BASE_MAINTAINER
12 endif
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
25 endif
27 TESTS = test_base
29 if versionscript
30 libheimbase_la_LDFLAGS += $(LDFLAGS_VERSION_SCRIPT)$(srcdir)/version-script.map
31 endif
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 =   \
40         array.c                 \
41         baselocl.h              \
42         bsearch.c               \
43         bool.c                  \
44         common_plugin.h         \
45         config_file.c           \
46         context.c               \
47         data.c                  \
48         db.c                    \
49         dict.c                  \
50         $(IMPLEMENT_TLS)        \
51         error.c                 \
52         error_string.c          \
53         expand_path.c           \
54         heimbase.c              \
55         heimbasepriv.h          \
56         json.c                  \
57         log.c                   \
58         null.c                  \
59         number.c                \
60         plugin.c                \
61         roken_rename.h          \
62         string.c                \
63         warn.c
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)
70         cd $(srcdir) && \
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)
75         cd $(srcdir) && \
76             perl ../../cf/make-proto.pl -q -P comment -p heimbase-private.h $(dist_libheimbase_la_SOURCES) || \
77             rm -f heimbase-private.h
79 # install these?
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
95 base64.c:
96         rm -f base64.c
97         $(LN_S) $(srcdir)/../roken/base64.c .