2020-08-15 23:10:10 +08:00
|
|
|
|
2016-03-11 07:04:27 +08:00
|
|
|
CYGWINFLAGS =
|
|
|
|
if CYGWIN
|
2017-08-19 21:05:22 +08:00
|
|
|
CYGWINFLAGS += -lintl
|
|
|
|
usrbin_exec_PROGRAMS =
|
2016-03-11 07:04:27 +08:00
|
|
|
endif
|
|
|
|
|
2012-01-02 23:08:58 +08:00
|
|
|
AM_CPPFLAGS = \
|
|
|
|
-include $(top_builddir)/config.h \
|
2015-05-02 08:09:39 +08:00
|
|
|
-I$(top_srcdir) \
|
2012-01-02 23:08:58 +08:00
|
|
|
-I$(top_srcdir)/include \
|
2020-07-14 13:00:00 +08:00
|
|
|
-Wno-unused-result \
|
2016-04-25 15:07:22 +08:00
|
|
|
-DLOCALEDIR=\"$(localedir)\" \
|
|
|
|
@HARDEN_CFLAGS@
|
|
|
|
|
|
|
|
AM_LDFLAGS = @HARDEN_LDFLAGS@
|
2011-06-04 22:26:58 +08:00
|
|
|
|
2015-05-02 12:28:53 +08:00
|
|
|
PACKAGE_VERSION = @PACKAGE_VERSION@
|
|
|
|
|
2011-06-04 22:26:58 +08:00
|
|
|
ACLOCAL_AMFLAGS = -I m4
|
2011-10-09 03:14:21 +08:00
|
|
|
SUBDIRS = \
|
2011-10-19 16:37:03 +08:00
|
|
|
include \
|
2014-06-28 21:38:13 +08:00
|
|
|
man-po \
|
2011-10-09 03:14:21 +08:00
|
|
|
po \
|
2015-05-02 12:28:53 +08:00
|
|
|
testsuite
|
2011-06-04 22:26:58 +08:00
|
|
|
|
|
|
|
AM_CFLAGS = -Iproc
|
2021-02-20 19:30:31 +08:00
|
|
|
LDADD = ./proc/libproc-2.la $(CYGWINFLAGS)
|
2011-06-04 22:26:58 +08:00
|
|
|
|
2017-08-19 21:05:22 +08:00
|
|
|
if CYGWIN
|
2021-02-20 19:30:31 +08:00
|
|
|
AM_LDFLAGS += ./proc/libproc-2.la $(CYGWINFLAGS)
|
2017-08-19 21:05:22 +08:00
|
|
|
endif
|
|
|
|
|
|
|
|
transform =
|
|
|
|
|
|
|
|
if !CYGWIN
|
|
|
|
transform += s/pscommand/ps/; $(program_transform_name)
|
|
|
|
sbin_PROGRAMS = \
|
|
|
|
sysctl
|
|
|
|
else
|
|
|
|
transform += s/pscommand/procps/; $(program_transform_name)
|
|
|
|
endif
|
2015-05-02 12:28:53 +08:00
|
|
|
|
2017-08-19 21:05:22 +08:00
|
|
|
if !CYGWIN
|
2015-05-02 12:28:53 +08:00
|
|
|
bin_PROGRAMS = \
|
2015-05-02 14:27:13 +08:00
|
|
|
ps/pscommand \
|
2011-06-04 22:26:58 +08:00
|
|
|
free \
|
|
|
|
pgrep \
|
|
|
|
pkill \
|
|
|
|
pmap \
|
|
|
|
pwdx \
|
|
|
|
tload \
|
|
|
|
uptime \
|
2021-04-24 03:58:36 +08:00
|
|
|
vmstat
|
2021-02-15 18:10:06 +08:00
|
|
|
if BUILD_PIDWAIT
|
|
|
|
bin_PROGRAMS += pidwait
|
2020-02-24 11:02:59 +08:00
|
|
|
endif
|
2017-08-19 21:05:22 +08:00
|
|
|
else
|
|
|
|
usrbin_exec_PROGRAMS += \
|
|
|
|
ps/pscommand \
|
|
|
|
free \
|
|
|
|
pgrep \
|
|
|
|
pkill \
|
|
|
|
pmap \
|
|
|
|
uptime \
|
2021-04-24 03:58:36 +08:00
|
|
|
vmstat
|
2017-08-19 21:05:22 +08:00
|
|
|
endif
|
2015-05-02 14:27:13 +08:00
|
|
|
|
|
|
|
lib_LTLIBRARIES = \
|
2021-02-20 19:30:31 +08:00
|
|
|
proc/libproc-2.la
|
2015-05-02 14:27:13 +08:00
|
|
|
|
2011-06-04 22:26:58 +08:00
|
|
|
dist_man_MANS = \
|
|
|
|
free.1 \
|
|
|
|
pgrep.1 \
|
|
|
|
pkill.1 \
|
|
|
|
pmap.1 \
|
|
|
|
uptime.1 \
|
|
|
|
vmstat.8 \
|
2020-06-22 13:00:00 +08:00
|
|
|
doc/procps.3 \
|
|
|
|
doc/procps_pids.3 \
|
2020-12-22 08:27:17 +08:00
|
|
|
doc/procps_misc.3
|
2011-06-04 22:26:58 +08:00
|
|
|
|
2017-08-19 21:05:22 +08:00
|
|
|
if !CYGWIN
|
|
|
|
dist_man_MANS += \
|
|
|
|
pwdx.1 \
|
|
|
|
tload.1 \
|
|
|
|
sysctl.8 \
|
|
|
|
sysctl.conf.5 \
|
|
|
|
ps/ps.1
|
2020-02-24 11:02:59 +08:00
|
|
|
|
2021-02-15 18:10:06 +08:00
|
|
|
if BUILD_PIDWAIT
|
|
|
|
dist_man_MANS += pidwait.1
|
2020-02-24 11:02:59 +08:00
|
|
|
endif
|
2017-08-19 21:05:22 +08:00
|
|
|
endif
|
|
|
|
|
2012-05-20 15:27:14 +08:00
|
|
|
EXTRA_DIST = \
|
2015-08-09 14:27:37 +08:00
|
|
|
.version \
|
2012-05-20 15:27:14 +08:00
|
|
|
autogen.sh \
|
|
|
|
contrib \
|
|
|
|
COPYING.LIB \
|
|
|
|
misc/git-version-gen \
|
2015-05-10 15:49:11 +08:00
|
|
|
Documentation/CodingStyle.md \
|
2012-05-20 15:27:14 +08:00
|
|
|
Documentation/TODO \
|
2015-05-02 12:28:53 +08:00
|
|
|
ps/HACKING \
|
|
|
|
ps/regression \
|
2014-06-25 21:11:15 +08:00
|
|
|
$(DIST_MAN_POTS)
|
2012-05-20 15:27:14 +08:00
|
|
|
|
2017-08-19 21:05:22 +08:00
|
|
|
if !CYGWIN
|
|
|
|
EXTRA_DIST += \
|
|
|
|
sysctl.conf
|
|
|
|
endif
|
|
|
|
|
2015-05-02 12:28:53 +08:00
|
|
|
procpsngdir = $(docdir)
|
|
|
|
dist_procpsng_DATA = \
|
2015-05-10 15:49:11 +08:00
|
|
|
Documentation/bugs.md \
|
2021-10-14 13:00:00 +08:00
|
|
|
Documentation/FAQ \
|
|
|
|
Documentation/libproc.supp
|
2015-05-02 12:28:53 +08:00
|
|
|
|
2013-10-05 02:35:01 +08:00
|
|
|
if BUILD_PIDOF
|
2017-08-19 21:05:22 +08:00
|
|
|
if !CYGWIN
|
2015-05-02 14:27:13 +08:00
|
|
|
bin_PROGRAMS += pidof
|
2017-08-19 21:05:22 +08:00
|
|
|
else
|
|
|
|
usrbin_exec_PROGRAMS += pidof
|
|
|
|
endif
|
2013-10-05 02:35:01 +08:00
|
|
|
dist_man_MANS += pidof.1
|
2015-05-02 12:36:40 +08:00
|
|
|
pidof_SOURCES = pidof.c lib/fileutils.c
|
2013-10-05 02:35:01 +08:00
|
|
|
else
|
|
|
|
EXTRA_DIST += pidof.1
|
|
|
|
endif
|
|
|
|
|
2011-10-05 02:16:46 +08:00
|
|
|
if BUILD_KILL
|
2017-08-19 21:05:22 +08:00
|
|
|
if CYGWIN
|
|
|
|
transform += ;s/^kill/prockill/; $(program_transform_name)
|
|
|
|
usrbin_exec_PROGRAMS += kill
|
|
|
|
else
|
2015-05-02 12:28:53 +08:00
|
|
|
bin_PROGRAMS += kill
|
2017-08-19 21:05:22 +08:00
|
|
|
endif
|
2011-10-05 02:16:46 +08:00
|
|
|
dist_man_MANS += kill.1
|
2015-09-26 07:13:13 +08:00
|
|
|
kill_SOURCES = kill.c lib/strutils.c lib/fileutils.c lib/signals.c
|
2015-12-01 13:00:00 +08:00
|
|
|
kill_LDADD =
|
2012-05-20 15:27:14 +08:00
|
|
|
else
|
|
|
|
EXTRA_DIST += kill.1
|
2011-10-05 02:16:46 +08:00
|
|
|
endif
|
|
|
|
|
2021-04-24 03:58:36 +08:00
|
|
|
if BUILD_W
|
|
|
|
if CYGWIN
|
|
|
|
usrbin_exec_PROGRAMS += w
|
|
|
|
else
|
|
|
|
bin_PROGRAMS += w
|
|
|
|
endif
|
|
|
|
|
|
|
|
dist_man_MANS += w.1
|
|
|
|
w_SOURCES = w.c lib/fileutils.c
|
|
|
|
else
|
|
|
|
EXTRA_DIST += w.1
|
|
|
|
endif
|
|
|
|
|
2011-10-27 05:53:55 +08:00
|
|
|
if WITH_NCURSES
|
2017-08-19 21:05:22 +08:00
|
|
|
if !CYGWIN
|
2015-05-02 14:27:13 +08:00
|
|
|
bin_PROGRAMS += \
|
2015-05-02 12:28:53 +08:00
|
|
|
watch \
|
|
|
|
top/top
|
2017-08-19 21:05:22 +08:00
|
|
|
else
|
|
|
|
usrbin_exec_PROGRAMS += \
|
|
|
|
watch \
|
|
|
|
top/top
|
|
|
|
endif
|
|
|
|
|
2011-06-04 22:26:58 +08:00
|
|
|
dist_man_MANS += \
|
2015-05-02 12:28:53 +08:00
|
|
|
watch.1 \
|
|
|
|
top/top.1
|
2017-08-19 21:05:22 +08:00
|
|
|
if !CYGWIN
|
|
|
|
bin_PROGRAMS += \
|
|
|
|
slabtop
|
|
|
|
dist_man_MANS += \
|
|
|
|
slabtop.1
|
2015-05-02 12:36:40 +08:00
|
|
|
slabtop_SOURCES = slabtop.c lib/strutils.c lib/fileutils.c
|
2015-05-12 03:31:59 +08:00
|
|
|
slabtop_LDADD = $(LDADD) @NCURSES_LIBS@
|
2017-08-19 21:05:22 +08:00
|
|
|
endif
|
2015-05-02 12:36:40 +08:00
|
|
|
watch_SOURCES = watch.c lib/strutils.c lib/fileutils.c
|
2016-03-11 07:04:27 +08:00
|
|
|
watch_LDADD = @WATCH_NCURSES_LIBS@ $(CYGWINFLAGS)
|
2015-05-02 12:28:53 +08:00
|
|
|
top_top_SOURCES = \
|
|
|
|
top/top.h \
|
|
|
|
top/top.c \
|
|
|
|
top/top_nls.h \
|
|
|
|
top/top_nls.c \
|
2015-06-29 20:09:59 +08:00
|
|
|
lib/fileutils.c \
|
2015-06-29 19:52:51 +08:00
|
|
|
lib/signals.c
|
2016-03-11 07:04:27 +08:00
|
|
|
if CYGWIN
|
2017-08-19 21:05:22 +08:00
|
|
|
top_top_SOURCES += lib/strverscmp.c
|
2016-03-11 07:04:27 +08:00
|
|
|
endif
|
|
|
|
|
2015-05-12 03:31:59 +08:00
|
|
|
top_top_LDADD = $(LDADD) @NCURSES_LIBS@ $(DL_LIB)
|
2011-06-04 22:26:58 +08:00
|
|
|
endif
|
|
|
|
|
2012-03-16 04:29:13 +08:00
|
|
|
if BUILD_SKILL
|
2017-08-19 21:05:22 +08:00
|
|
|
if !CYGWIN
|
2015-05-02 14:27:13 +08:00
|
|
|
bin_PROGRAMS += \
|
2012-03-16 04:29:13 +08:00
|
|
|
skill \
|
|
|
|
snice
|
2017-08-19 21:05:22 +08:00
|
|
|
else
|
|
|
|
usrbin_exec_PROGRAMS += \
|
|
|
|
skill \
|
|
|
|
snice
|
|
|
|
endif
|
2015-09-03 20:32:19 +08:00
|
|
|
skill_SOURCES = skill.c lib/strutils.c lib/fileutils.c lib/signals.c
|
|
|
|
snice_SOURCES = skill.c lib/strutils.c lib/fileutils.c lib/signals.c
|
2012-03-16 04:29:13 +08:00
|
|
|
dist_man_MANS += \
|
|
|
|
skill.1 \
|
|
|
|
snice.1
|
2012-05-20 15:27:14 +08:00
|
|
|
else
|
|
|
|
EXTRA_DIST += \
|
|
|
|
skill.1 \
|
|
|
|
snice.1
|
2012-03-16 04:29:13 +08:00
|
|
|
endif
|
|
|
|
|
2015-05-02 12:36:40 +08:00
|
|
|
free_SOURCES = free.c lib/strutils.c lib/fileutils.c
|
2015-09-03 20:32:19 +08:00
|
|
|
pgrep_SOURCES = pgrep.c lib/fileutils.c lib/signals.c
|
|
|
|
pkill_SOURCES = pgrep.c lib/fileutils.c lib/signals.c
|
2015-05-02 12:36:40 +08:00
|
|
|
pmap_SOURCES = pmap.c lib/fileutils.c
|
2021-02-15 18:10:06 +08:00
|
|
|
if BUILD_PIDWAIT
|
|
|
|
pidwait_SOURCES = pgrep.c lib/fileutils.c lib/signals.c
|
2020-02-24 11:02:59 +08:00
|
|
|
endif
|
2017-08-19 21:05:22 +08:00
|
|
|
if !CYGWIN
|
2015-05-02 12:36:40 +08:00
|
|
|
pwdx_SOURCES = pwdx.c lib/fileutils.c
|
2016-03-11 07:04:27 +08:00
|
|
|
pwdx_LDADD= $(CYGWINFLAGS)
|
2018-03-01 18:25:04 +08:00
|
|
|
sysctl_SOURCES = \
|
|
|
|
sysctl.c \
|
|
|
|
lib/fileutils.c \
|
2018-04-01 14:00:00 +08:00
|
|
|
lib/procio.c
|
2015-09-01 18:57:56 +08:00
|
|
|
sysctl_LDADD=
|
2017-08-19 21:05:22 +08:00
|
|
|
endif
|
2015-05-02 12:36:40 +08:00
|
|
|
tload_SOURCES = tload.c lib/strutils.c lib/fileutils.c
|
|
|
|
uptime_SOURCES = uptime.c lib/fileutils.c
|
|
|
|
vmstat_SOURCES = vmstat.c lib/strutils.c lib/fileutils.c
|
2011-06-04 22:26:58 +08:00
|
|
|
|
2015-05-02 12:28:53 +08:00
|
|
|
|
|
|
|
# See http://www.gnu.org/software/libtool/manual/html_node/Updating-version-info.html
|
2021-02-20 19:30:31 +08:00
|
|
|
LIBproc_2_CURRENT=0
|
|
|
|
LIBproc_2_REVISION=0
|
|
|
|
LIBproc_2_AGE=0
|
2015-05-02 12:28:53 +08:00
|
|
|
|
2021-02-20 19:30:31 +08:00
|
|
|
proc_libproc_2_la_LIBADD = $(LIB_KPARTS)
|
2015-05-02 12:28:53 +08:00
|
|
|
|
|
|
|
if WITH_SYSTEMD
|
2021-02-20 19:30:31 +08:00
|
|
|
proc_libproc_2_la_LIBADD += @SYSTEMD_LIBS@
|
2015-05-02 12:28:53 +08:00
|
|
|
endif
|
|
|
|
|
2021-02-20 19:30:31 +08:00
|
|
|
proc_libproc_2_la_LDFLAGS = \
|
|
|
|
-version-info $(LIBproc_2_CURRENT):$(LIBproc_2_REVISION):$(LIBproc_2_AGE) \
|
2015-05-02 12:28:53 +08:00
|
|
|
-no-undefined \
|
2021-02-20 19:30:31 +08:00
|
|
|
-Wl,--version-script=$(top_srcdir)/proc/libproc-2.sym
|
2015-05-02 12:28:53 +08:00
|
|
|
|
2021-02-20 19:30:31 +08:00
|
|
|
proc_libproc_2_la_SOURCES = \
|
2015-05-02 12:28:53 +08:00
|
|
|
proc/devname.c \
|
|
|
|
proc/devname.h \
|
2016-07-20 13:00:00 +08:00
|
|
|
proc/diskstats.c \
|
|
|
|
proc/diskstats.h \
|
2015-05-02 12:28:53 +08:00
|
|
|
proc/escape.c \
|
|
|
|
proc/escape.h \
|
2015-06-19 21:34:12 +08:00
|
|
|
proc/procps-private.h \
|
2015-06-20 21:08:47 +08:00
|
|
|
proc/meminfo.c \
|
|
|
|
proc/meminfo.h \
|
2021-01-19 14:00:00 +08:00
|
|
|
proc/misc.h \
|
2015-09-03 20:32:19 +08:00
|
|
|
proc/namespace.c \
|
2017-05-12 13:03:00 +08:00
|
|
|
proc/numa.c \
|
|
|
|
proc/numa.h \
|
2015-08-19 13:00:00 +08:00
|
|
|
proc/pids.c \
|
|
|
|
proc/pids.h \
|
2015-05-02 12:28:53 +08:00
|
|
|
proc/pwcache.c \
|
|
|
|
proc/pwcache.h \
|
|
|
|
proc/readproc.c \
|
|
|
|
proc/readproc.h \
|
2016-06-05 13:00:00 +08:00
|
|
|
proc/slabinfo.c \
|
|
|
|
proc/slabinfo.h \
|
2016-04-25 13:00:00 +08:00
|
|
|
proc/stat.c \
|
|
|
|
proc/stat.h \
|
2015-05-02 12:28:53 +08:00
|
|
|
proc/sysinfo.c \
|
|
|
|
proc/version.c \
|
2015-06-20 05:43:02 +08:00
|
|
|
proc/vmstat.c \
|
|
|
|
proc/vmstat.h \
|
2015-06-18 13:00:00 +08:00
|
|
|
proc/wchan.c \
|
2015-05-02 12:28:53 +08:00
|
|
|
proc/wchan.h \
|
2015-06-21 16:22:28 +08:00
|
|
|
proc/uptime.c \
|
2016-08-05 13:00:00 +08:00
|
|
|
proc/xtra-procps-debug.h
|
2015-05-02 12:28:53 +08:00
|
|
|
|
2021-02-20 19:30:31 +08:00
|
|
|
proc_libproc_2_la_includedir = $(includedir)/procps/
|
|
|
|
proc_libproc_2_la_include_HEADERS = \
|
2016-07-20 13:00:00 +08:00
|
|
|
proc/diskstats.h \
|
2017-08-14 02:45:12 +08:00
|
|
|
proc/meminfo.h \
|
2021-01-19 14:00:00 +08:00
|
|
|
proc/misc.h \
|
2015-08-19 13:00:00 +08:00
|
|
|
proc/pids.h \
|
2016-06-05 13:00:00 +08:00
|
|
|
proc/slabinfo.h \
|
2017-08-14 02:45:12 +08:00
|
|
|
proc/stat.h \
|
2015-06-23 20:22:50 +08:00
|
|
|
proc/vmstat.h \
|
2016-08-05 13:00:00 +08:00
|
|
|
proc/xtra-procps-debug.h
|
2015-05-02 12:28:53 +08:00
|
|
|
|
|
|
|
pkgconfigdir = $(libdir)/pkgconfig
|
|
|
|
pkgconfig_DATA = \
|
2021-02-20 19:30:31 +08:00
|
|
|
proc/libproc-2.pc
|
2015-05-02 12:28:53 +08:00
|
|
|
|
2021-02-20 19:30:31 +08:00
|
|
|
EXTRA_DIST += proc/libproc-2.sym
|
2015-05-02 12:28:53 +08:00
|
|
|
|
|
|
|
# ps/pscommand
|
|
|
|
|
|
|
|
ps_pscommand_SOURCES = \
|
|
|
|
ps/common.h \
|
|
|
|
ps/display.c \
|
|
|
|
ps/global.c \
|
|
|
|
ps/help.c \
|
|
|
|
ps/output.c \
|
|
|
|
ps/parser.c \
|
|
|
|
ps/select.c \
|
|
|
|
ps/sortformat.c \
|
|
|
|
ps/stacktrace.c \
|
2015-06-29 19:52:51 +08:00
|
|
|
lib/fileutils.c \
|
|
|
|
lib/signals.c
|
2015-05-02 12:28:53 +08:00
|
|
|
|
2016-03-03 18:24:08 +08:00
|
|
|
|
2020-08-15 23:10:10 +08:00
|
|
|
# Test programs required for dejagnu or standalone testing
|
2020-10-19 17:05:41 +08:00
|
|
|
check_PROGRAMS = \
|
2015-06-13 13:04:31 +08:00
|
|
|
lib/test_strutils \
|
|
|
|
lib/test_fileutils \
|
2020-08-15 23:10:10 +08:00
|
|
|
lib/test_process \
|
|
|
|
lib/test_strtod_nol
|
2015-05-02 12:28:53 +08:00
|
|
|
|
|
|
|
lib_test_strutils_SOURCES = lib/test_strutils.c lib/strutils.c
|
2016-03-11 07:04:27 +08:00
|
|
|
lib_test_strutils_LDADD = $(CYGWINFLAGS)
|
2015-05-02 12:28:53 +08:00
|
|
|
lib_test_fileutils_SOURCES = lib/test_fileutils.c lib/fileutils.c
|
2016-03-11 07:04:27 +08:00
|
|
|
lib_test_fileutils_LDADD = $(CYGWINFLAGS)
|
2015-06-14 06:54:59 +08:00
|
|
|
lib_test_process_SOURCES = lib/test_process.c
|
2016-03-11 07:04:27 +08:00
|
|
|
lib_test_process_LDADD = $(CYGWINFLAGS)
|
2020-08-15 23:10:10 +08:00
|
|
|
lib_test_strtod_nol_SOURCES = lib/test_strtod_nol.c lib/strutils.c
|
|
|
|
lib_test_strtod_nol_LDADD = $(CYGWINFLAGS)
|
|
|
|
|
2020-10-19 17:05:41 +08:00
|
|
|
check_PROGRAMS += \
|
2020-08-16 01:12:12 +08:00
|
|
|
proc/test_Itemtables \
|
2020-08-15 23:10:10 +08:00
|
|
|
proc/test_pids \
|
|
|
|
proc/test_uptime \
|
|
|
|
proc/test_sysinfo \
|
|
|
|
proc/test_version \
|
|
|
|
proc/test_namespace
|
2015-05-02 12:28:53 +08:00
|
|
|
|
2020-08-16 01:12:12 +08:00
|
|
|
proc_test_Itemtables_SOURCES = proc/test_Itemtables.c
|
2021-02-20 19:30:31 +08:00
|
|
|
proc_test_Itemtables_LDADD = proc/libproc-2.la
|
2016-04-19 19:33:02 +08:00
|
|
|
proc_test_pids_SOURCES = proc/test_pids.c
|
2021-02-20 19:30:31 +08:00
|
|
|
proc_test_pids_LDADD = proc/libproc-2.la
|
2020-08-15 23:10:10 +08:00
|
|
|
proc_test_uptime_SOURCES = proc/test_uptime.c
|
2021-02-20 19:30:31 +08:00
|
|
|
proc_test_uptime_LDADD = proc/libproc-2.la
|
2020-08-15 23:10:10 +08:00
|
|
|
proc_test_sysinfo_SOURCES = proc/test_sysinfo.c
|
2021-02-20 19:30:31 +08:00
|
|
|
proc_test_sysinfo_LDADD = proc/libproc-2.la
|
2020-08-15 23:10:10 +08:00
|
|
|
proc_test_version_SOURCES = proc/test_version.c
|
2021-02-20 19:30:31 +08:00
|
|
|
proc_test_version_LDADD = proc/libproc-2.la
|
2020-08-15 23:10:10 +08:00
|
|
|
proc_test_namespace_SOURCES = proc/test_namespace.c
|
2021-02-20 19:30:31 +08:00
|
|
|
proc_test_namespace_LDADD = proc/libproc-2.la
|
2016-03-03 18:24:08 +08:00
|
|
|
|
2017-08-19 21:05:22 +08:00
|
|
|
if CYGWIN
|
|
|
|
skill_LDADD = $(CYGWINFLAGS)
|
|
|
|
kill_LDADD = $(CYGWINFLAGS)
|
|
|
|
free_LDADD = $(CYGWINFLAGS)
|
|
|
|
pgrep_LDADD = $(CYGWINFLAGS)
|
|
|
|
pkill_LDADD = $(CYGWINFLAGS)
|
|
|
|
pidof_LDADD = $(CYGWINFLAGS)
|
|
|
|
pmap_LDADD = $(CYGWINFLAGS)
|
|
|
|
snice_LDADD = $(CYGWINFLAGS)
|
|
|
|
tload_LDADD = $(CYGWINFLAGS)
|
|
|
|
uptime_LDADD = $(CYGWINFLAGS)
|
|
|
|
w_LDADD = $(CYGWINFLAGS)
|
|
|
|
vmstat_LDADD = $(CYGWINFLAGS)
|
|
|
|
endif
|
|
|
|
|
2012-04-29 23:22:29 +08:00
|
|
|
if EXAMPLE_FILES
|
2017-08-19 21:05:22 +08:00
|
|
|
if !CYGWIN
|
2011-06-04 22:26:58 +08:00
|
|
|
sysconf_DATA = sysctl.conf
|
2012-04-29 23:22:29 +08:00
|
|
|
endif
|
2017-08-19 21:05:22 +08:00
|
|
|
endif
|
2011-06-04 22:26:58 +08:00
|
|
|
|
2012-06-24 18:51:18 +08:00
|
|
|
BUILT_SOURCES = $(top_srcdir)/.version
|
2014-06-24 20:20:13 +08:00
|
|
|
|
2020-10-19 16:25:33 +08:00
|
|
|
check-lib: clean
|
|
|
|
$(MAKE) CFLAGS=-DITEMTABLE_DEBUG proc/test_Itemtables
|
|
|
|
$(top_builddir)/proc/test_Itemtables
|
2020-10-21 13:00:00 +08:00
|
|
|
$(MAKE) clean &>/dev/null
|
2020-10-19 16:25:33 +08:00
|
|
|
|
2016-07-09 13:06:32 +08:00
|
|
|
# Test programs not used by dejagnu but run directly
|
2020-08-15 23:10:10 +08:00
|
|
|
TESTS = \
|
2016-04-19 19:33:02 +08:00
|
|
|
proc/test_pids \
|
2016-04-16 20:02:10 +08:00
|
|
|
proc/test_uptime \
|
2020-08-15 23:10:10 +08:00
|
|
|
proc/test_sysinfo \
|
2016-04-14 20:28:38 +08:00
|
|
|
proc/test_version \
|
2020-08-15 23:10:10 +08:00
|
|
|
proc/test_namespace \
|
|
|
|
lib/test_fileutils \
|
2016-03-08 04:19:47 +08:00
|
|
|
lib/test_strtod_nol
|
2020-08-15 23:10:10 +08:00
|
|
|
|
2020-10-19 17:05:41 +08:00
|
|
|
# Automake should do this, but it doesn't
|
2022-03-21 18:37:17 +08:00
|
|
|
check: $(check_PROGRAMS) $(PROGRAMS)
|
2015-07-20 20:23:21 +08:00
|
|
|
|
2012-05-20 15:27:14 +08:00
|
|
|
$(top_srcdir)/.version:
|
2012-06-24 18:51:18 +08:00
|
|
|
touch $(top_srcdir)/.version
|
2012-05-20 15:27:14 +08:00
|
|
|
echo $(VERSION) > $@-t && mv $@-t $@
|
|
|
|
dist-hook:
|
|
|
|
echo $(VERSION) > $(distdir)/.tarball-version
|
2014-06-25 21:11:15 +08:00
|
|
|
|
2014-02-22 08:34:53 +08:00
|
|
|
get-trans:
|
2014-05-28 17:51:37 +08:00
|
|
|
echo "Getting the latest translations from translationproject.org..."
|
2014-04-17 15:12:01 +08:00
|
|
|
rsync -Lrtvz translationproject.org::tp/latest/procps-ng/ po
|
2014-05-28 17:51:37 +08:00
|
|
|
rsync -Lrtvz translationproject.org::tp/latest/procps-ng-man/ man-po
|