summaryrefslogtreecommitdiffstats
path: root/schedutils
diff options
context:
space:
mode:
authorKarel Zak2012-05-22 15:57:23 +0200
committerKarel Zak2012-06-26 17:25:24 +0200
commit5ed5df5d6eed64bbec6fd8853713fff3506be8ab (patch)
tree9ad1d89ad2cdb4e9a93c215c0186795befeddf3f /schedutils
parentbuild-sys: define per-test -DTEST_PROGRAM in lib/ (diff)
downloadkernel-qcow2-util-linux-5ed5df5d6eed64bbec6fd8853713fff3506be8ab.tar.gz
kernel-qcow2-util-linux-5ed5df5d6eed64bbec6fd8853713fff3506be8ab.tar.xz
kernel-qcow2-util-linux-5ed5df5d6eed64bbec6fd8853713fff3506be8ab.zip
build-sys: convert schedutils/ to module
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'schedutils')
-rw-r--r--schedutils/Makefile.am23
-rw-r--r--schedutils/Makemodule.am33
2 files changed, 33 insertions, 23 deletions
diff --git a/schedutils/Makefile.am b/schedutils/Makefile.am
deleted file mode 100644
index e068d4674..000000000
--- a/schedutils/Makefile.am
+++ /dev/null
@@ -1,23 +0,0 @@
-include $(top_srcdir)/config/include-Makefile.am
-
-srcs_common = $(top_srcdir)/lib/strutils.c $(top_srcdir)/lib/procutils.c
-
-usrbin_exec_PROGRAMS = chrt
-dist_man_MANS = chrt.1
-
-chrt_SOURCES = chrt.c $(srcs_common)
-
-if BUILD_IONICE
-usrbin_exec_PROGRAMS += ionice
-ionice_SOURCES = ionice.c $(srcs_common)
-dist_man_MANS += ionice.1
-endif
-
-if BUILD_TASKSET
-usrbin_exec_PROGRAMS += taskset
-taskset_SOURCES = \
- taskset.c \
- $(top_srcdir)/lib/cpuset.c \
- $(srcs_common)
-dist_man_MANS += taskset.1
-endif
diff --git a/schedutils/Makemodule.am b/schedutils/Makemodule.am
new file mode 100644
index 000000000..060eba148
--- /dev/null
+++ b/schedutils/Makemodule.am
@@ -0,0 +1,33 @@
+if BUILD_SCHEDUTILS
+
+usrbin_exec_PROGRAMS += chrt
+dist_man_MANS += schedutils/chrt.1
+
+sched_common = \
+ lib/strutils.c \
+ lib/procutils.c
+
+chrt_SOURCES = \
+ schedutils/chrt.c \
+ $(sched_common)
+
+if BUILD_IONICE
+usrbin_exec_PROGRAMS += ionice
+ionice_SOURCES = \
+ schedutils/ionice.c \
+ $(sched_common)
+
+dist_man_MANS += schedutils/ionice.1
+endif
+
+if BUILD_TASKSET
+usrbin_exec_PROGRAMS += taskset
+taskset_SOURCES = \
+ schedutils/taskset.c \
+ lib/cpuset.c \
+ $(sched_common)
+
+dist_man_MANS += schedutils/taskset.1
+endif
+
+endif # BUILD_SCHEDUTILS