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
|