Old Imakefile
1 DEPLIBS = $(DEPXAWLIB) $(DEPXMULIB) $(DEPXTOOLLIB) $(DEPXLIB)
2 LOCAL_LIBRARIES = $(XAWLIB) $(XMULIB) $(XTOOLLIB) $(XLIB)
3 SRCS = xcpustate.c Bar.c s.c rstat.c rstat_clnt.c rstat_xdr.c
4 OBJS = xcpustate.o Bar.o s.o rstat.o rstat_clnt.o rstat_xdr.o
5 INSTPGMFLAGS = InstPgmFlags InstKmemFlags
6 /*
7 * Things to consider adding to DEFINES:
8 *
9 * -DRSTAT -- support the rstat protocol for querying the rstatd running
10 * on remote machines (using the -host option). There's no harm
11 * in leaving this in, unless you think your users will query
12 * machines they shouldn't.
13 * -DSHOWAVG -- this has no effect except on Linux machines. If defined,
14 * a CPU bar showing the "average" CPU will be added.
15 * -DDEF_FONT -- the default font. Leave this alone unless you don't want
16 * to use the X default font (XtdefaultFont). To force
17 * a particular font, e.g. 9x15, -DDEF_FONT=\"9x15" will work.
18 * -DDEF_INTERVAL -- the default update interval, normally 1 second. This is
19 * used when one isn't specified via the command line or an X
20 * resource. e.g. -DDEF_INTERVAL=2.5
21 * -DINTERVAL_MIN -- the minimum interval, normally 0 seconds. Set this
22 * to something greater to keep xcpustate from overloading your
23 * network or x-server with traffic, which it can easily do if
24 * a small interval (e.g. 0.01 seconds) is specified. For example,
25 * to prevent intervals less than half a second, use
26 * -DINTERVAL_MIN=0.5
27 */
28 DEFINES = $(SYSTYPE) -DRSTAT
29
30 #if defined(MACH)
31 SYS_LIBRARIES = -lmach
32 #endif /* MACH */
33
34 #if defined(SparcArchitecture) && OSMajorVersion == 4
35 SYS_LIBRARIES = -lkvm
36 /* add -DOMNI if you have OMNI nc400s */
37 SYSTYPE = -DSUNOS4
38 #endif
39
40 #if defined(SVR4)
41 SYS_LIBRARIES = -lelf
42 #endif
43
44 #if defined(SGIArchitecture)
45 SYSTYPE = -DIRIX
46 #endif
47
48 #if ( defined(SunArchitecture) || defined(SparcArchitecture)) && OSMajorVersion == 5
49 SYS_LIBRARIES = -lkstat -lelf
50 SYSTYPE = -DSUNOS5
51 INSTPGMFLAGS = InstPgmFlags
52 #endif
53
54 #if defined(AIXArchitecture) || defined(_AIX) || defined(AIX) || defined(aix)
55 #if OSMajorVersion > 3
56 SYSTYPE = -DSMP
57 #endif
58 #endif
59
60 #if defined (FreeBSDArchitecture) || defined(NetBSDArchitecture) || defined(OpenBSDArchitecture)
61 SYS_LIBRARIES = -lkvm
62 #endif
63
64 ComplexProgramTarget(xcpustate)
65
66 rstat.c: rstat.h
67
68 rstat.h rstat_clnt.c rstat_xdr.c: rstat.x
69 rpcgen rstat.x
70
71 xcpustate.c: levels.h
72
73 shar:
74 shar `awk '{print $$1}' MANIFEST` >xcpustate-`awk '{print $$7;exit}' patchlevel.h`.shar
75
76 veryclean: clean
77 $(RM) rstat_* rstat.h xcpustate-*.shar Makefile