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