aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile.in
blob: ac97b3560f5c3e8fa3e4e42e6438a97a09b6b542 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
# 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