]> git.ipfire.org Git - thirdparty/util-linux.git/blob - lib/Makemodule.am
Merge branch 'test-fixes' of https://github.com/rudimeier/util-linux
[thirdparty/util-linux.git] / lib / Makemodule.am
1
2 noinst_LTLIBRARIES += libcommon.la
3 libcommon_la_CFLAGS = $(AM_CFLAGS)
4 libcommon_la_SOURCES = \
5 lib/at.c \
6 lib/blkdev.c \
7 lib/canonicalize.c \
8 lib/crc32.c \
9 lib/crc64.c \
10 lib/env.c \
11 lib/fileutils.c \
12 lib/ismounted.c \
13 lib/color-names.c \
14 lib/mangle.c \
15 lib/match.c \
16 lib/mbsalign.c \
17 lib/md5.c \
18 lib/pager.c \
19 lib/path.c \
20 lib/procutils.c \
21 lib/randutils.c \
22 lib/setproctitle.c \
23 lib/strutils.c \
24 lib/sysfs.c \
25 lib/timeutils.c \
26 lib/ttyutils.c \
27 lib/exec_shell.c \
28 lib/strv.c
29
30 if LINUX
31 libcommon_la_SOURCES += \
32 lib/linux_version.c \
33 lib/loopdev.c
34 endif
35
36 if !HAVE_LANGINFO
37 libcommon_la_SOURCES += lib/langinfo.c
38 endif
39
40 if HAVE_CPU_SET_T
41 libcommon_la_SOURCES += lib/cpuset.c
42 endif
43
44
45 noinst_LTLIBRARIES += libtcolors.la
46 libtcolors_la_CFLAGS = $(AM_CFLAGS) $(TINFO_CFLAGS)
47 libtcolors_la_LIBADD = $(TINFO_LIBS)
48 libtcolors_la_SOURCES = lib/colors.c lib/color-names.c include/colors.h include/color-names.h
49
50 dist_man_MANS += lib/terminal-colors.d.5
51
52
53 check_PROGRAMS += \
54 test_at \
55 test_blkdev \
56 test_canonicalize \
57 test_colors \
58 test_fileutils \
59 test_ismounted \
60 test_mangle \
61 test_procutils \
62 test_randutils \
63 test_strutils \
64 test_ttyutils
65
66
67
68
69 if LINUX
70 if HAVE_CPU_SET_T
71 check_PROGRAMS += test_cpuset
72 endif
73 check_PROGRAMS += \
74 test_sysfs \
75 test_pager
76 endif
77
78 test_ttyutils_SOURCES = lib/ttyutils.c
79 test_ttyutils_CFLAGS = -DTEST_PROGRAM
80 test_ttyutils_LDADD = libcommon.la
81
82 test_blkdev_SOURCES = lib/blkdev.c
83 test_blkdev_CFLAGS = -DTEST_PROGRAM_BLKDEV
84 test_blkdev_LDADD = libcommon.la
85
86 test_ismounted_SOURCES = lib/ismounted.c
87 test_ismounted_CFLAGS = -DTEST_PROGRAM
88 test_ismounted_LDADD = libcommon.la
89
90 test_mangle_SOURCES = lib/mangle.c
91 test_mangle_CFLAGS = -DTEST_PROGRAM
92
93 test_at_SOURCES = lib/at.c
94 test_at_CFLAGS = -DTEST_PROGRAM_AT
95
96 test_strutils_SOURCES = lib/strutils.c
97 test_strutils_CFLAGS = -DTEST_PROGRAM
98
99 test_colors_SOURCES = lib/colors.c lib/color-names.c
100 test_colors_CFLAGS = -DTEST_PROGRAM $(TINFO_CFLAGS)
101 test_colors_LDADD = $(LDADD) $(TINFO_LIBS)
102
103 test_randutils_SOURCES = lib/randutils.c
104 test_randutils_CFLAGS = -DTEST_PROGRAM
105
106 test_procutils_SOURCES = lib/procutils.c lib/at.c
107 test_procutils_CFLAGS = -DTEST_PROGRAM
108
109 if LINUX
110 test_cpuset_SOURCES = lib/cpuset.c
111 test_cpuset_CFLAGS = -DTEST_PROGRAM
112
113 test_sysfs_SOURCES = lib/sysfs.c
114 test_sysfs_CFLAGS = -DTEST_PROGRAM_SYSFS
115 test_sysfs_LDADD = libcommon.la
116
117 test_pager_SOURCES = lib/pager.c
118 test_pager_CFLAGS = -DTEST_PROGRAM
119 endif
120
121 test_fileutils_SOURCES = lib/fileutils.c
122 test_fileutils_CFLAGS = -DTEST_PROGRAM
123
124 test_canonicalize_SOURCES = lib/canonicalize.c
125 test_canonicalize_CFLAGS = -DTEST_PROGRAM_CANONICALIZE
126