diff options
author | Karel Zak | 2012-05-17 00:54:26 +0200 |
---|---|---|
committer | Karel Zak | 2012-06-26 17:13:08 +0200 |
commit | e0ef609e890007d43f61e949ba3f89abb4e9b0d5 (patch) | |
tree | aced28ddf17a846ae92816ae08990ea45da96832 /lib/Makemodule.am | |
parent | build-sys: convert include/ to module (diff) | |
download | kernel-qcow2-util-linux-e0ef609e890007d43f61e949ba3f89abb4e9b0d5.tar.gz kernel-qcow2-util-linux-e0ef609e890007d43f61e949ba3f89abb4e9b0d5.tar.xz kernel-qcow2-util-linux-e0ef609e890007d43f61e949ba3f89abb4e9b0d5.zip |
build-sys: convert lib/ to module
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'lib/Makemodule.am')
-rw-r--r-- | lib/Makemodule.am | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/lib/Makemodule.am b/lib/Makemodule.am new file mode 100644 index 000000000..f60edeb65 --- /dev/null +++ b/lib/Makemodule.am @@ -0,0 +1,64 @@ + +AM_CPPFLAGS += -DTEST_PROGRAM + +noinst_PROGRAMS += \ + test_at \ + test_blkdev \ + test_canonicalize \ + test_fileutils \ + test_ismounted \ + test_mangle \ + test_pager \ + test_procutils \ + test_randutils \ + test_strutils \ + test_tt \ + test_wholedisk + +if LINUX +if HAVE_CPU_SET_T +noinst_PROGRAMS += test_cpuset +endif +noinst_PROGRAMS += \ + test_sysfs \ + test_loopdev +endif + +test_blkdev_SOURCES = lib/blkdev.c +test_ismounted_SOURCES = lib/ismounted.c +test_wholedisk_SOURCES = lib/wholedisk.c +test_mangle_SOURCES = lib/mangle.c + +test_at_SOURCES = lib/at.c +test_at_CFLAGS = -DTEST_PROGRAM_AT + +test_strutils_SOURCES = lib/strutils.c +test_randutils_SOURCES = lib/randutils.c +test_procutils_SOURCES = lib/procutils.c + +if LINUX +test_cpuset_SOURCES = lib/cpuset.c +test_sysfs_SOURCES = lib/sysfs.c lib/at.c +test_pager_SOURCES = lib/pager.c +test_sysfs_CFLAGS = -DTEST_PROGRAM_SYSFS + +test_loopdev_SOURCES = \ + $(test_sysfs_SOURCES) \ + lib/loopdev.c \ + lib/canonicalize.c \ + lib/linux_version.c + +test_loopdev_CFLAGS = -DTEST_PROGRAM_LOOPDEV +endif + +test_fileutils_SOURCES = lib/fileutils.c +test_tt_SOURCES = \ + lib/tt.c \ + lib/mbsalign.c + +test_canonicalize_SOURCES = lib/canonicalize.c +test_canonicalize_CFLAGS = -DTEST_PROGRAM_CANONICALIZE + +if LINUX +test_blkdev_SOURCES += lib/inux_version.c +endif |