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 \
|
2022-08-29 18:28:03 +08:00
|
|
|
-I$(top_srcdir)/local \
|
2022-08-29 17:16:49 +08:00
|
|
|
-I$(top_srcdir)/library/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 = \
|
2022-08-29 18:28:03 +08:00
|
|
|
local \
|
2022-08-29 16:07:43 +08:00
|
|
|
po-man \
|
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
|
|
|
|
2022-08-29 17:02:44 +08:00
|
|
|
AM_CFLAGS = -Ilibrary/include
|
2022-08-29 18:38:17 +08:00
|
|
|
LDADD = ./library/libproc2.la $(CYGWINFLAGS)
|
2011-06-04 22:26:58 +08:00
|
|
|
|
2017-08-19 21:05:22 +08:00
|
|
|
if CYGWIN
|
2022-08-29 18:38:17 +08:00
|
|
|
AM_LDFLAGS += ./library/libproc2.la $(CYGWINFLAGS)
|
2017-08-19 21:05:22 +08:00
|
|
|
endif
|
|
|
|
|
|
|
|
transform =
|
|
|
|
|
|
|
|
if !CYGWIN
|
|
|
|
transform += s/pscommand/ps/; $(program_transform_name)
|
|
|
|
sbin_PROGRAMS = \
|
2022-08-29 16:29:28 +08:00
|
|
|
src/sysctl
|
2017-08-19 21:05:22 +08:00
|
|
|
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 = \
|
2022-08-29 16:29:28 +08:00
|
|
|
src/ps/pscommand \
|
|
|
|
src/free \
|
|
|
|
src/pgrep \
|
|
|
|
src/pkill \
|
|
|
|
src/pmap \
|
|
|
|
src/pwdx \
|
|
|
|
src/tload \
|
|
|
|
src/uptime \
|
|
|
|
src/vmstat
|
2021-02-15 18:10:06 +08:00
|
|
|
if BUILD_PIDWAIT
|
2022-08-29 16:29:28 +08:00
|
|
|
bin_PROGRAMS += src/pidwait
|
2020-02-24 11:02:59 +08:00
|
|
|
endif
|
2017-08-19 21:05:22 +08:00
|
|
|
else
|
|
|
|
usrbin_exec_PROGRAMS += \
|
2022-08-29 16:29:28 +08:00
|
|
|
src/ps/pscommand \
|
|
|
|
src/free \
|
|
|
|
src/pgrep \
|
|
|
|
src/pkill \
|
|
|
|
src/pmap \
|
|
|
|
src/uptime \
|
|
|
|
src/vmstat
|
2017-08-19 21:05:22 +08:00
|
|
|
endif
|
2015-05-02 14:27:13 +08:00
|
|
|
|
|
|
|
lib_LTLIBRARIES = \
|
2022-08-29 18:38:17 +08:00
|
|
|
library/libproc2.la
|
2015-05-02 14:27:13 +08:00
|
|
|
|
2011-06-04 22:26:58 +08:00
|
|
|
dist_man_MANS = \
|
2022-08-29 16:07:43 +08:00
|
|
|
man/free.1 \
|
|
|
|
man/pgrep.1 \
|
|
|
|
man/pkill.1 \
|
|
|
|
man/pmap.1 \
|
|
|
|
man/uptime.1 \
|
|
|
|
man/vmstat.8 \
|
|
|
|
man/procps.3 \
|
|
|
|
man/procps_pids.3 \
|
|
|
|
man/procps_misc.3
|
2011-06-04 22:26:58 +08:00
|
|
|
|
2017-08-19 21:05:22 +08:00
|
|
|
if !CYGWIN
|
|
|
|
dist_man_MANS += \
|
2022-08-29 16:07:43 +08:00
|
|
|
man/pwdx.1 \
|
|
|
|
man/tload.1 \
|
|
|
|
man/sysctl.8 \
|
|
|
|
man/sysctl.conf.5 \
|
|
|
|
man/ps.1
|
2020-02-24 11:02:59 +08:00
|
|
|
|
2021-02-15 18:10:06 +08:00
|
|
|
if BUILD_PIDWAIT
|
2022-08-29 16:07:43 +08:00
|
|
|
dist_man_MANS += man/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 \
|
|
|
|
COPYING.LIB \
|
2022-08-29 18:53:01 +08:00
|
|
|
local/git-version-gen \
|
2022-08-29 16:38:52 +08:00
|
|
|
doc/CodingStyle.md \
|
|
|
|
doc/TODO \
|
2022-08-29 16:29:28 +08:00
|
|
|
src/ps/HACKING \
|
|
|
|
src/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 = \
|
2022-08-29 16:38:52 +08:00
|
|
|
doc/bugs.md \
|
|
|
|
doc/FAQ \
|
|
|
|
doc/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
|
2022-08-29 16:29:28 +08:00
|
|
|
bin_PROGRAMS += src/pidof
|
2017-08-19 21:05:22 +08:00
|
|
|
else
|
2022-08-29 16:29:28 +08:00
|
|
|
usrbin_exec_PROGRAMS += src/pidof
|
2017-08-19 21:05:22 +08:00
|
|
|
endif
|
2022-08-29 16:07:43 +08:00
|
|
|
dist_man_MANS += man/pidof.1
|
2022-08-29 18:28:03 +08:00
|
|
|
src_pidof_SOURCES = src/pidof.c local/fileutils.c
|
2013-10-05 02:35:01 +08:00
|
|
|
else
|
2022-08-29 16:07:43 +08:00
|
|
|
EXTRA_DIST += man/pidof.1
|
2013-10-05 02:35:01 +08:00
|
|
|
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)
|
2022-08-29 16:29:28 +08:00
|
|
|
usrbin_exec_PROGRAMS += src/kill
|
2017-08-19 21:05:22 +08:00
|
|
|
else
|
2022-08-29 16:29:28 +08:00
|
|
|
bin_PROGRAMS += src/kill
|
2017-08-19 21:05:22 +08:00
|
|
|
endif
|
2022-08-29 16:07:43 +08:00
|
|
|
dist_man_MANS += man/kill.1
|
2022-08-29 18:28:03 +08:00
|
|
|
src_kill_SOURCES = src/kill.c local/strutils.c local/fileutils.c local/signals.c
|
2022-08-29 16:29:28 +08:00
|
|
|
src_kill_LDADD =
|
2012-05-20 15:27:14 +08:00
|
|
|
else
|
2022-08-29 16:07:43 +08:00
|
|
|
EXTRA_DIST += man/kill.1
|
2011-10-05 02:16:46 +08:00
|
|
|
endif
|
|
|
|
|
2021-04-24 03:58:36 +08:00
|
|
|
if BUILD_W
|
|
|
|
if CYGWIN
|
2022-08-29 16:29:28 +08:00
|
|
|
usrbin_exec_PROGRAMS += src/w
|
2021-04-24 03:58:36 +08:00
|
|
|
else
|
2022-08-29 16:29:28 +08:00
|
|
|
bin_PROGRAMS += src/w
|
2021-04-24 03:58:36 +08:00
|
|
|
endif
|
|
|
|
|
2022-08-29 16:07:43 +08:00
|
|
|
dist_man_MANS += man/w.1
|
2022-08-29 18:28:03 +08:00
|
|
|
src_w_SOURCES = src/w.c local/fileutils.c
|
2021-04-24 03:58:36 +08:00
|
|
|
else
|
2022-08-29 16:07:43 +08:00
|
|
|
EXTRA_DIST += man/w.1
|
2021-04-24 03:58:36 +08:00
|
|
|
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 += \
|
2022-08-29 16:29:28 +08:00
|
|
|
src/watch \
|
|
|
|
src/top/top
|
2017-08-19 21:05:22 +08:00
|
|
|
else
|
|
|
|
usrbin_exec_PROGRAMS += \
|
2022-08-29 16:29:28 +08:00
|
|
|
src/watch \
|
|
|
|
src/top/top
|
2017-08-19 21:05:22 +08:00
|
|
|
endif
|
|
|
|
|
2011-06-04 22:26:58 +08:00
|
|
|
dist_man_MANS += \
|
2022-08-29 16:07:43 +08:00
|
|
|
man/watch.1 \
|
|
|
|
man/top.1
|
2017-08-19 21:05:22 +08:00
|
|
|
if !CYGWIN
|
|
|
|
bin_PROGRAMS += \
|
2022-08-29 16:29:28 +08:00
|
|
|
src/slabtop
|
2017-08-19 21:05:22 +08:00
|
|
|
dist_man_MANS += \
|
2022-08-29 16:07:43 +08:00
|
|
|
man/slabtop.1
|
2022-08-29 18:28:03 +08:00
|
|
|
src_slabtop_SOURCES = src/slabtop.c local/strutils.c local/fileutils.c
|
2022-08-29 16:29:28 +08:00
|
|
|
src_slabtop_LDADD = $(LDADD) @NCURSES_LIBS@
|
2017-08-19 21:05:22 +08:00
|
|
|
endif
|
2022-08-29 18:28:03 +08:00
|
|
|
src_watch_SOURCES = src/watch.c local/strutils.c local/fileutils.c
|
2022-08-29 16:29:28 +08:00
|
|
|
src_watch_LDADD = @NCURSES_LIBS@ $(CYGWINFLAGS)
|
|
|
|
src_top_top_SOURCES = \
|
|
|
|
src/top/top.h \
|
|
|
|
src/top/top.c \
|
|
|
|
src/top/top_nls.h \
|
|
|
|
src/top/top_nls.c \
|
2022-08-29 18:28:03 +08:00
|
|
|
local/fileutils.c \
|
|
|
|
local/signals.c
|
2016-03-11 07:04:27 +08:00
|
|
|
if CYGWIN
|
2022-08-29 18:28:03 +08:00
|
|
|
src_top_top_SOURCES += local/strverscmp.c
|
2016-03-11 07:04:27 +08:00
|
|
|
endif
|
|
|
|
|
2022-08-29 16:29:28 +08:00
|
|
|
src_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 += \
|
2022-08-29 16:29:28 +08:00
|
|
|
src/skill \
|
|
|
|
src/snice
|
2017-08-19 21:05:22 +08:00
|
|
|
else
|
|
|
|
usrbin_exec_PROGRAMS += \
|
2022-08-29 16:29:28 +08:00
|
|
|
src/skill \
|
|
|
|
src/snice
|
2017-08-19 21:05:22 +08:00
|
|
|
endif
|
2022-08-29 18:28:03 +08:00
|
|
|
src_skill_SOURCES = src/skill.c local/strutils.c local/fileutils.c local/signals.c
|
|
|
|
src_snice_SOURCES = src/skill.c local/strutils.c local/fileutils.c local/signals.c
|
2012-03-16 04:29:13 +08:00
|
|
|
dist_man_MANS += \
|
2022-08-29 16:07:43 +08:00
|
|
|
man/skill.1 \
|
|
|
|
man/snice.1
|
2012-05-20 15:27:14 +08:00
|
|
|
else
|
|
|
|
EXTRA_DIST += \
|
2022-08-29 16:07:43 +08:00
|
|
|
man/skill.1 \
|
|
|
|
man/snice.1
|
2012-03-16 04:29:13 +08:00
|
|
|
endif
|
|
|
|
|
2022-08-29 18:28:03 +08:00
|
|
|
src_free_SOURCES = src/free.c local/strutils.c local/fileutils.c
|
|
|
|
src_pgrep_SOURCES = src/pgrep.c local/fileutils.c local/signals.c
|
|
|
|
src_pkill_SOURCES = src/pgrep.c local/fileutils.c local/signals.c
|
|
|
|
src_pmap_SOURCES = src/pmap.c local/fileutils.c
|
2021-02-15 18:10:06 +08:00
|
|
|
if BUILD_PIDWAIT
|
2022-08-29 18:28:03 +08:00
|
|
|
src_pidwait_SOURCES = src/pgrep.c local/fileutils.c local/signals.c
|
2020-02-24 11:02:59 +08:00
|
|
|
endif
|
2017-08-19 21:05:22 +08:00
|
|
|
if !CYGWIN
|
2022-08-29 18:28:03 +08:00
|
|
|
src_pwdx_SOURCES = src/pwdx.c local/fileutils.c
|
2022-08-29 16:29:28 +08:00
|
|
|
src_pwdx_LDADD= $(CYGWINFLAGS)
|
|
|
|
src_sysctl_SOURCES = \
|
|
|
|
src/sysctl.c \
|
2022-08-29 18:28:03 +08:00
|
|
|
local/fileutils.c \
|
|
|
|
local/procio.c
|
2022-08-29 16:29:28 +08:00
|
|
|
src_sysctl_LDADD=
|
2017-08-19 21:05:22 +08:00
|
|
|
endif
|
2022-08-29 18:28:03 +08:00
|
|
|
src_tload_SOURCES = src/tload.c local/strutils.c local/fileutils.c
|
|
|
|
src_uptime_SOURCES = src/uptime.c local/fileutils.c
|
|
|
|
src_vmstat_SOURCES = src/vmstat.c local/strutils.c local/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
|
2022-08-29 18:38:17 +08:00
|
|
|
LIBproc2_CURRENT=0
|
2022-12-05 18:04:05 +08:00
|
|
|
LIBproc2_REVISION=1
|
2022-08-29 18:38:17 +08:00
|
|
|
LIBproc2_AGE=0
|
2015-05-02 12:28:53 +08:00
|
|
|
|
2022-08-29 18:38:17 +08:00
|
|
|
library_libproc2_la_LIBADD = $(LIB_KPARTS)
|
2015-05-02 12:28:53 +08:00
|
|
|
|
|
|
|
if WITH_SYSTEMD
|
2022-08-29 18:38:17 +08:00
|
|
|
library_libproc2_la_LIBADD += @SYSTEMD_LIBS@
|
2015-05-02 12:28:53 +08:00
|
|
|
endif
|
|
|
|
|
2017-05-30 22:33:28 +08:00
|
|
|
if WITH_ELOGIND
|
2022-08-29 18:38:17 +08:00
|
|
|
library_libproc2_la_LIBADD += @ELOGIND_LIBS@
|
2017-05-30 22:33:28 +08:00
|
|
|
endif
|
|
|
|
|
2022-08-29 18:38:17 +08:00
|
|
|
library_libproc2_la_LDFLAGS = \
|
|
|
|
-version-info $(LIBproc2_CURRENT):$(LIBproc2_REVISION):$(LIBproc2_AGE) \
|
2015-05-02 12:28:53 +08:00
|
|
|
-no-undefined \
|
2022-08-29 18:38:17 +08:00
|
|
|
-Wl,--version-script=$(top_srcdir)/library/libproc2.sym
|
2022-08-29 17:02:44 +08:00
|
|
|
|
2022-08-29 18:38:17 +08:00
|
|
|
library_libproc2_la_SOURCES = \
|
2022-08-29 17:02:44 +08:00
|
|
|
library/devname.c \
|
|
|
|
library/include/devname.h \
|
|
|
|
library/diskstats.c \
|
|
|
|
library/include/diskstats.h \
|
|
|
|
library/escape.c \
|
|
|
|
library/include/escape.h \
|
|
|
|
library/include/procps-private.h \
|
|
|
|
library/meminfo.c \
|
|
|
|
library/include/meminfo.h \
|
|
|
|
library/include/misc.h \
|
|
|
|
library/namespace.c \
|
|
|
|
library/numa.c \
|
|
|
|
library/include/numa.h \
|
|
|
|
library/pids.c \
|
|
|
|
library/include/pids.h \
|
|
|
|
library/pwcache.c \
|
|
|
|
library/include/pwcache.h \
|
|
|
|
library/readproc.c \
|
|
|
|
library/include/readproc.h \
|
|
|
|
library/slabinfo.c \
|
|
|
|
library/include/slabinfo.h \
|
|
|
|
library/stat.c \
|
|
|
|
library/include/stat.h \
|
|
|
|
library/sysinfo.c \
|
|
|
|
library/version.c \
|
|
|
|
library/vmstat.c \
|
|
|
|
library/include/vmstat.h \
|
|
|
|
library/wchan.c \
|
|
|
|
library/include/wchan.h \
|
|
|
|
library/uptime.c \
|
|
|
|
library/include/xtra-procps-debug.h
|
|
|
|
|
2022-08-29 18:40:45 +08:00
|
|
|
library_libproc2_la_includedir = $(includedir)/libproc2/
|
2022-08-29 18:38:17 +08:00
|
|
|
library_libproc2_la_include_HEADERS = \
|
2022-08-29 17:02:44 +08:00
|
|
|
library/include/diskstats.h \
|
|
|
|
library/include/meminfo.h \
|
|
|
|
library/include/misc.h \
|
|
|
|
library/include/pids.h \
|
|
|
|
library/include/slabinfo.h \
|
|
|
|
library/include/stat.h \
|
|
|
|
library/include/vmstat.h \
|
|
|
|
library/include/xtra-procps-debug.h
|
2015-05-02 12:28:53 +08:00
|
|
|
|
|
|
|
pkgconfigdir = $(libdir)/pkgconfig
|
|
|
|
pkgconfig_DATA = \
|
2022-08-29 18:38:17 +08:00
|
|
|
library/libproc2.pc
|
2015-05-02 12:28:53 +08:00
|
|
|
|
2022-08-29 18:38:17 +08:00
|
|
|
EXTRA_DIST += library/libproc2.sym
|
2015-05-02 12:28:53 +08:00
|
|
|
|
|
|
|
# ps/pscommand
|
|
|
|
|
2022-08-29 16:29:28 +08:00
|
|
|
src_ps_pscommand_SOURCES = \
|
|
|
|
src/ps/common.h \
|
|
|
|
src/ps/display.c \
|
|
|
|
src/ps/global.c \
|
|
|
|
src/ps/help.c \
|
|
|
|
src/ps/output.c \
|
|
|
|
src/ps/parser.c \
|
|
|
|
src/ps/select.c \
|
|
|
|
src/ps/sortformat.c \
|
|
|
|
src/ps/stacktrace.c \
|
2022-08-29 18:28:03 +08:00
|
|
|
local/fileutils.c \
|
|
|
|
local/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 = \
|
2022-08-29 18:28:03 +08:00
|
|
|
src/tests/test_strutils \
|
|
|
|
src/tests/test_fileutils \
|
|
|
|
src/tests/test_process \
|
|
|
|
src/tests/test_strtod_nol \
|
|
|
|
src/tests/test_shm
|
|
|
|
|
|
|
|
src_tests_test_strutils_SOURCES = src/tests/test_strutils.c local/strutils.c
|
|
|
|
src_tests_test_strutils_LDADD = $(CYGWINFLAGS)
|
|
|
|
src_tests_test_fileutils_SOURCES = src/tests/test_fileutils.c local/fileutils.c
|
|
|
|
src_tests_test_fileutils_LDADD = $(CYGWINFLAGS)
|
|
|
|
src_tests_test_process_SOURCES = src/tests/test_process.c
|
|
|
|
src_tests_test_process_LDADD = $(CYGWINFLAGS)
|
|
|
|
src_tests_test_strtod_nol_SOURCES = src/tests/test_strtod_nol.c local/strutils.c
|
|
|
|
src_tests_test_strtod_nol_LDADD = $(CYGWINFLAGS)
|
|
|
|
src_tests_test_shm_SOURCES = src/tests/test_shm.c local/strutils.c
|
|
|
|
src_tests_test_shm_LDADD = $(CYGWINFLAGS)
|
2020-08-15 23:10:10 +08:00
|
|
|
|
2020-10-19 17:05:41 +08:00
|
|
|
check_PROGRAMS += \
|
2022-08-29 17:02:44 +08:00
|
|
|
library/tests/test_Itemtables \
|
|
|
|
library/tests/test_pids \
|
|
|
|
library/tests/test_uptime \
|
|
|
|
library/tests/test_sysinfo \
|
|
|
|
library/tests/test_version \
|
|
|
|
library/tests/test_namespace
|
|
|
|
|
|
|
|
library_tests_test_Itemtables_SOURCES = library/tests/test_Itemtables.c
|
2022-08-29 18:38:17 +08:00
|
|
|
library_tests_test_Itemtables_LDADD = library/libproc2.la
|
2022-08-29 17:02:44 +08:00
|
|
|
library_tests_test_pids_SOURCES = library/tests/test_pids.c
|
2022-08-29 18:38:17 +08:00
|
|
|
library_tests_test_pids_LDADD = library/libproc2.la
|
2022-08-29 17:02:44 +08:00
|
|
|
library_tests_test_uptime_SOURCES = library/tests/test_uptime.c
|
2022-08-29 18:38:17 +08:00
|
|
|
library_tests_test_uptime_LDADD = library/libproc2.la
|
2022-08-29 17:02:44 +08:00
|
|
|
library_tests_test_sysinfo_SOURCES = library/tests/test_sysinfo.c
|
2022-08-29 18:38:17 +08:00
|
|
|
library_tests_test_sysinfo_LDADD = library/libproc2.la
|
2022-08-29 17:02:44 +08:00
|
|
|
library_tests_test_version_SOURCES = library/tests/test_version.c
|
2022-08-29 18:38:17 +08:00
|
|
|
library_tests_test_version_LDADD = library/libproc2.la
|
2022-08-29 17:02:44 +08:00
|
|
|
library_tests_test_namespace_SOURCES = library/tests/test_namespace.c
|
2022-08-29 18:38:17 +08:00
|
|
|
library_tests_test_namespace_LDADD = library/libproc2.la
|
2016-03-03 18:24:08 +08:00
|
|
|
|
2017-08-19 21:05:22 +08:00
|
|
|
if CYGWIN
|
2022-08-29 16:29:28 +08:00
|
|
|
src_skill_LDADD = $(CYGWINFLAGS)
|
|
|
|
src_kill_LDADD = $(CYGWINFLAGS)
|
|
|
|
src_free_LDADD = $(CYGWINFLAGS)
|
|
|
|
src_pgrep_LDADD = $(CYGWINFLAGS)
|
|
|
|
src_pkill_LDADD = $(CYGWINFLAGS)
|
|
|
|
src_pidof_LDADD = $(CYGWINFLAGS)
|
|
|
|
src_pmap_LDADD = $(CYGWINFLAGS)
|
|
|
|
src_snice_LDADD = $(CYGWINFLAGS)
|
|
|
|
src_tload_LDADD = $(CYGWINFLAGS)
|
|
|
|
src_uptime_LDADD = $(CYGWINFLAGS)
|
|
|
|
src_w_LDADD = $(CYGWINFLAGS)
|
|
|
|
src_vmstat_LDADD = $(CYGWINFLAGS)
|
2017-08-19 21:05:22 +08:00
|
|
|
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
|
2022-08-31 15:30:34 +08:00
|
|
|
$(MAKE) CFLAGS=-DITEMTABLE_DEBUG library/tests/test_Itemtables
|
|
|
|
$(top_builddir)/library/tests/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 = \
|
2022-08-29 17:02:44 +08:00
|
|
|
library/tests/test_pids \
|
|
|
|
library/tests/test_uptime \
|
|
|
|
library/tests/test_sysinfo \
|
|
|
|
library/tests/test_version \
|
|
|
|
library/tests/test_namespace \
|
2022-08-29 18:28:03 +08:00
|
|
|
src/tests/test_fileutils \
|
|
|
|
src/tests/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
|
2022-08-29 16:07:43 +08:00
|
|
|
rsync -Lrtvz translationproject.org::tp/latest/procps-ng-man/ po-man
|
2022-11-10 18:52:19 +08:00
|
|
|
rm -f po-man/man.stamp
|
|
|
|
make -C po-man man.stamp
|