dpkg (1.18.25) stretch; urgency=medium
[dpkg] / lib / compat / Makefile.am
CommitLineData
1479465f
GJ
1## Process this file with automake to produce Makefile.in
2
3AM_CPPFLAGS = \
4 -idirafter $(top_srcdir)/lib/compat \
5 -I$(top_builddir)
6
7
8noinst_LTLIBRARIES = libcompat-test.la libcompat.la
9
10libcompat_test_la_CPPFLAGS = $(AM_CPPFLAGS) -DTEST_LIBCOMPAT=1
11libcompat_test_la_SOURCES = \
12 compat.h \
13 strnlen.c \
14 strndup.c \
15 strsignal.c \
16 snprintf.c vsnprintf.c \
17 asprintf.c vasprintf.c \
18 alphasort.c \
19 scandir.c \
20 unsetenv.c
21
22if HAVE_SYS_ERRLIST
23libcompat_test_la_SOURCES += strerror.c
24endif
25
26if WITH_LIBSELINUX
27libcompat_test_la_SOURCES += selinux.c
28endif
29
30libcompat_la_SOURCES = \
31 empty.c \
32 compat.h \
33 gettext.h
34
35if !HAVE_LIBMD_MD5
36libcompat_la_SOURCES += md5.c md5.h
37endif
38
39if !HAVE_GETOPT
40libcompat_la_SOURCES += getopt.c getopt.h
41else
42if !HAVE_GETOPT_LONG
43libcompat_la_SOURCES += getopt.c getopt.h
44endif
45endif
46
47if !HAVE_GETOPT_LONG
48libcompat_la_SOURCES += getopt1.c
49endif
50
51if !HAVE_OBSTACK_FREE
52libcompat_la_SOURCES += obstack.c obstack.h
53endif
54
55if !HAVE_STRNLEN
56libcompat_la_SOURCES += strnlen.c
57endif
58
59if !HAVE_STRNDUP
60libcompat_la_SOURCES += strndup.c
61endif
62
63if !HAVE_STRERROR
64libcompat_la_SOURCES += strerror.c
65endif
66
67if !HAVE_STRSIGNAL
68libcompat_la_SOURCES += strsignal.c
69endif
70
71if WITH_LIBSELINUX
72if !HAVE_SETEXECFILECON
73libcompat_la_SOURCES += selinux.c
74endif
75endif
76
77if !HAVE_C99_SNPRINTF
78libcompat_la_SOURCES += snprintf.c vsnprintf.c
79endif
80
81if !HAVE_ASPRINTF
82libcompat_la_SOURCES += asprintf.c vasprintf.c
83endif
84
85if !HAVE_ALPHASORT
86libcompat_la_SOURCES += alphasort.c
87endif
88
89if !HAVE_SCANDIR
90libcompat_la_SOURCES += scandir.c
91endif
92
93if !HAVE_UNSETENV
94libcompat_la_SOURCES += unsetenv.c
95endif