Due to differences in (mainly) measuring and accumulating CPU times, the two top programs end up serving different purposes: the NetBSD top is a system administration tool, while the MINIX3 top (now mtop) is a performance debugging tool. Therefore, we keep both. The newly imported BSD top has a few MINIX3-specific changes. CPU statistics separate system time from kernel time, rather than kernel time from time spent on handling interrupts. Memory statistics show numbers that are currently relevant for MINIX3. Swap statistics are disabled entirely. All of these changes effectively bring it closer to how mtop already worked as well. Change-Id: I9611917cb03e164ddf012c5def6da0e7fede826d
93 lines
2.5 KiB
Makefile
93 lines
2.5 KiB
Makefile
# Makefile
|
|
#
|
|
# This makefile was generated by configure from a Makefile.in definition.
|
|
|
|
PROGRAM=top
|
|
INC=boolean.h color.h commands.h config.h display.h globalstate.h hash.h \
|
|
loadavg.h machine.h message.h os.h screen.h sigdesc.h top.h username.h \
|
|
utils.h version.h
|
|
SRC=color.c commands.c display.c hash.c screen.c top.c username.c utils.c version.c @SRC@
|
|
OBJ=color.o commands.o display.o hash.o screen.o top.o username.o utils.o version.o @OBJ@
|
|
MANPAGE=top.1
|
|
CLEAN_SRC=sigdesc.h
|
|
CLEAN_EXTRA=@CLEAN_EXTRA@
|
|
|
|
srcdir=@srcdir@
|
|
prefix=@prefix@
|
|
exec_prefix=@exec_prefix@
|
|
bindir=@bindir@
|
|
mandir=@mandir@
|
|
datarootdir=@datarootdir@
|
|
VPATH=@srcdir@
|
|
|
|
PACKAGE_NAME=@PACKAGE_NAME@
|
|
SIGNAL=@SIGNAL_H@
|
|
ARCHFLAG=@ARCHFLAG@
|
|
AWK=@AWK@
|
|
CC=@CC@
|
|
CFLAGS=$(DEFS) $(DEFAULT_INCLUDES) $(CFLAGSONLY) $(ARCHFLAG)
|
|
CFLAGSONLY=@CFLAGS@
|
|
CPPFLAGS=@CPPFLAGS@
|
|
DEBUG=
|
|
DEFS=@DEFS@ $(DEBUG)
|
|
ISAEXEC=@ISAEXEC@
|
|
LDFLAGS=@LDFLAGS@
|
|
LIBS=@LIBS@
|
|
MODULE_CFLAGS=@MODULE_CFLAGS@
|
|
|
|
INSTALL=@INSTALL@
|
|
INSTALL_PROGRAM=@INSTALL_PROGRAM@
|
|
INSTALL_DATA=@INSTALL_DATA@
|
|
INSTALL_OPTS_PROG=@INSTALL_OPTS_PROG@
|
|
INSTALL_OPTS_DATA=
|
|
|
|
DEFAULT_INCLUDES = -I. -I$(srcdir)
|
|
|
|
BINARY = $@
|
|
COMPILE = $(CC) $(CFLAGS) $(CPPFLAGS)
|
|
LINK = $(CC) $(CFLAGS) $(LDFLAGS) -o $(BINARY)
|
|
|
|
|
|
@FIRST_RULE@
|
|
|
|
$(PROGRAM): $(OBJ)
|
|
$(LINK) $(OBJ) $(LIBS)
|
|
|
|
# explicit dependency for the module appropriate to this machine
|
|
m_@MODULE@.o: $(srcdir)/machine/m_@MODULE@.c
|
|
$(COMPILE) $(MODULE_CFLAGS) -o $@ -c $(srcdir)/machine/m_@MODULE@.c
|
|
|
|
sigdesc.h: $(srcdir)/sigconv.awk $(SIGNAL)
|
|
$(AWK) -f $(srcdir)/sigconv.awk $(SIGNAL) >sigdesc.h
|
|
|
|
@INSTALL_RULE@
|
|
|
|
install-man: $(MANPAGE)
|
|
mkdir -p $(DESTDIR)$(mandir)/man1
|
|
$(INSTALL_DATA) $(INSTALL_OPTS_DATA) \
|
|
$(MANPAGE) $(DESTDIR)$(mandir)/man1/$(MANPAGE)
|
|
|
|
clean:
|
|
-rm -f $(PROGRAM) $(OBJ) $(CLEAN_SRC) $(CLEAN_EXTRA)
|
|
|
|
distclean: clean
|
|
-rm -f Makefile config.status config.cache config.log config.h
|
|
|
|
configure: configure.ac
|
|
autoheader
|
|
autoconf
|
|
|
|
# Include file dependencies
|
|
color.o: os.h config.h message.h color.h
|
|
commands.o: os.h config.h sigdesc.h top.h machine.h globalstate.h \
|
|
boolean.h commands.h display.h utils.h version.h
|
|
display.o: os.h config.h top.h machine.h screen.h layout.h display.h \
|
|
boolean.h utils.h color.h
|
|
screen.o: os.h config.h top.h screen.h boolean.h
|
|
top.o: os.h config.h top.h machine.h globalstate.h commands.h display.h \
|
|
screen.h boolean.h username.h utils.h version.h color.h
|
|
username.o: os.h config.h top.h utils.h hash.h
|
|
utils.o: os.h config.h top.h utils.h
|
|
version.o: config.h top.h
|
|
m_@MODULE@.o: top.h machine.h utils.h loadavg.h
|