Deleted Added
full compact
Makefile.X (24139) Makefile.X (89750)
1# Makefile for "top", a top 10 process display for Unix
2#
3# This makefile is for top, version 3
4#
1# Makefile for "top", a top 10 process display for Unix
2#
3# This makefile is for top, version 3
4#
5# Written by William LeFebvre, Argonne National Laboratory
5# Written by William LeFebvre, Group sys Consulting
6# (formerly of Northwestern University and Rice University)
7
8# DO NOT EDIT "Makefile"!!!! Make changes to "Makefile.X" and rerun
9# Configure.
10
11# Executables (these should be obvious):
12
13SHELL = %shell%

--- 26 unchanged lines hidden (view full) ---

40# DELAY - default delay between updates
41#
42# set TOPN to -1 to indicate infinity (so that top will display as many
43# as the screen will hold).
44
45TOPN = %topn%
46DELAY = %delay%
47
6# (formerly of Northwestern University and Rice University)
7
8# DO NOT EDIT "Makefile"!!!! Make changes to "Makefile.X" and rerun
9# Configure.
10
11# Executables (these should be obvious):
12
13SHELL = %shell%

--- 26 unchanged lines hidden (view full) ---

40# DELAY - default delay between updates
41#
42# set TOPN to -1 to indicate infinity (so that top will display as many
43# as the screen will hold).
44
45TOPN = %topn%
46DELAY = %delay%
47
48TARFILES = README INSTALL DISCLAIMER FAQ ADVERTISEMENT \
49 Changes Configure Porting \
50 Makefile.X Make.desc.X getans install \
51 top.c commands.c display.c screen.c username.c \
52 utils.c version.c getopt.c prime.c \
53 boolean.h display.h layout.h loadavg.h screen.h \
54 machine.h patchlevel.h top.h top.local.H os.h utils.h \
55 sigconv.awk top.X m-template metatop \
56 machine
57CFILES = top.c commands.c display.c screen.c username.c \
58 utils.c version.c getopt.c machine.c
59OBJS = top.o commands.o display.o screen.o username.o \
60 utils.o version.o getopt.o machine.o
61
62CDEFS = %cdefs%
63LIBS = %libs%
64TERMCAP = %termcap%
48CFILES = top.c commands.c display.c screen.c username.c \
49 utils.c version.c getopt.c machine.c
50OBJS = top.o commands.o display.o screen.o username.o \
51 utils.o version.o getopt.o machine.o
52
53CDEFS = %cdefs%
54LIBS = %libs%
55TERMCAP = %termcap%
56MATH = %math%
65
66CFLAGS = %cflgs% $(CDEFS)
67LINTFLAGS = -x $(CDEFS)
68
69all: Makefile top.local.h top
70
71Makefile: Makefile.X
72 @echo 'You need to run the script "Configure" before running "make".'
73 exit 10
74
75top.local.h: top.local.H
76 @echo 'You need to run the script "Configure" before running "make".'
77 exit 10
78
79top: $(OBJS)
80 rm -f top
57
58CFLAGS = %cflgs% $(CDEFS)
59LINTFLAGS = -x $(CDEFS)
60
61all: Makefile top.local.h top
62
63Makefile: Makefile.X
64 @echo 'You need to run the script "Configure" before running "make".'
65 exit 10
66
67top.local.h: top.local.H
68 @echo 'You need to run the script "Configure" before running "make".'
69 exit 10
70
71top: $(OBJS)
72 rm -f top
81 $(CC) -o top $(OBJS) $(TERMCAP) -lm $(LIBS)
73 $(CC) $(CDEFS) -o top $(OBJS) $(TERMCAP) $(MATH) $(LIBS)
82
83lint: sigdesc.h
84 $(LINT) $(LINTFLAGS) $(CFILES)
85
86# include file dependencies
87top.o: boolean.h display.h screen.h top.h top.local.h utils.h machine.h
74
75lint: sigdesc.h
76 $(LINT) $(LINTFLAGS) $(CFILES)
77
78# include file dependencies
79top.o: boolean.h display.h screen.h top.h top.local.h utils.h machine.h
88commands.o: boolean.h sigdesc.h utils.h
80commands.o: boolean.h sigdesc.h top.h utils.h
89display.o: boolean.h display.h layout.h screen.h top.h top.local.h utils.h
81display.o: boolean.h display.h layout.h screen.h top.h top.local.h utils.h
90machine.o: top.h machine.h utils.h
91screen.o: boolean.h screen.h
92utils.o: top.h
93version.o: top.h patchlevel.h
94username.o: top.local.h utils.h
95
82screen.o: boolean.h screen.h
83utils.o: top.h
84version.o: top.h patchlevel.h
85username.o: top.local.h utils.h
86
87# when compiling machine.c, include os revision definition
88machine.o: machine.c top.h machine.h utils.h
89 $(CC) "%osrev%" $(CFLAGS) -c machine.c
90
96# automatically built include file
97sigdesc.h: sigconv.awk $(SIGNAL)
98 $(AWK) -f sigconv.awk $(SIGNAL) >sigdesc.h
99
91# automatically built include file
92sigdesc.h: sigconv.awk $(SIGNAL)
93 $(AWK) -f sigconv.awk $(SIGNAL) >sigdesc.h
94
100tar:
101 rm -f top.tar machine/*.desc machine/*~
102 tar cvf top.tar $(TARFILES)
103
104shar:
105 rm -f top.shar* machine/*.desc
106 makekit -ntop.shar. -t"Now read README and INSTALL, then run Configure" machine $(TARFILES)/*
107
108clean:
109 rm -f *.o top core core.* sigdesc.h
110
111veryclean: clean
112 rm -f Make.desc machine/*.desc .defaults top.tar SYNOPSIS Makefile top.local.h top.1 machine.c prime
113
114install: top top.1 install-top install-$(MANSTY)
115

--- 15 unchanged lines hidden ---
95clean:
96 rm -f *.o top core core.* sigdesc.h
97
98veryclean: clean
99 rm -f Make.desc machine/*.desc .defaults top.tar SYNOPSIS Makefile top.local.h top.1 machine.c prime
100
101install: top top.1 install-top install-$(MANSTY)
102

--- 15 unchanged lines hidden ---