summaryrefslogtreecommitdiff
path: root/src/pmdas/hotproc/GNUmakefile
blob: 2c69ac642ac3fd74791814f0b85516a865463be6 (plain)
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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
#
# Copyright (c) 1995-2002,2007 Silicon Graphics, Inc.  All Rights Reserved.
# 
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; either version 2 of the License, or (at your
# option) any later version.
# 
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
# for more details.
#

TOPDIR = ../../..
include $(TOPDIR)/src/include/builddefs

# This is just to get the source exported to the community.
# 'Makefile' in particular is included only for clues it might offer,
# and should almost certainly be removed from SRCFILES once
# the pmda is working.
LSRCFILES = fixpmns.awk general.pmie help.fmt Install \
	    pmns.hotproc Remove sample.conf \
	    general.conf help.hotproc Makefile README root 
SUBDIRS = src

default default_pcp: 
install install_pcp:
include $(BUILDRULES)

# Remove # from start of all following lines to get pre-existing
# (but currently non-functional) content

#IAM	= hotproc
#DOMAIN	= HOTPROC
#
#TARGETS	= $(IAM) pmns help 
#
#PROC_DIR = ../linux
#PROC_SRCDIR = $(PROC_DIR)/src
#
#FROM_PROC_H = cluster.h pracinfo.h proc_aux.h pscred.h \
#	      pstatus.h pmemory.h proc.h procmem.h psinfo.h \
#	      psusage.h ctltab.h nameinfo.h
#FROM_PROC_C = pmemory.c pracinfo.c proc_aux.c \
#	      pscred.c psinfo.c pstatus.c psusage.c \
#	      ttyname.c procmem.c nameinfo.c
#
#FROM_PROC = $(FROM_PROC_C) $(FROM_PROC_H)
#
#CFILES	= $(FROM_PROC_C) \
#	  pglobal.c ctltab.c hotproc.c pcpu.c \
#	  config.c gram_node.c error.c ppred_values.c
#
#OBJECTS = gram.o lex.o $(CFILES:S/.c/.o/g)
#
#LCOPTS	= -fullwarn
#LCINCS  = $(PCP_INC_PATH)
#LCDEFS	= $(DEBUG)
#LLDOPTS	= $(PCP_LIBS_PATH)
#LLDLIBS	= $(PCP_PMDALIB)
#
#PMDADIR = $(PCP_PMDAS_DIR)/$(IAM)
#LDIRT	= domain.h *.log *.dir *.pag 
#
#default: $(TARGETS) check_help_src
#
#include $(TOPDIR)/src/include/buildrules.pro
#
#install: default
#	$(INSTALL) -m 755 -d $(PMDADIR)
#	$(INSTALL) -lns ../../..$(PMDADIR)/pmda$(IAM) pmda$(IAM) $(PCP_SHARE_DIR)/lib
#	$(INSTALL) -lns ../../..$(PMDADIR) $(IAM) $(PCP_PMDAS_DIR)
#	$(INSTALL) -m 755 pmda$(IAM) $(PMDADIR)
#	$(INSTALL) -m 755 Install Remove $(PMDADIR)
#	$(INSTALL) -m 644 README root help pmns domain.h sample.conf general.conf general.pmie $(PMDADIR)
#
#$(IAM):	$(OBJECTS)
#
#domain.h: ../../pmns/stdpmid
#	$(DOMAIN_MAKERULE)
#
#help: $(PROC_DIR)/help help.hotproc pmns
#	$(AWK) <$(PROC_DIR)/help '\
#$1 == "@"			{ want=0 }\
#$1 == "@" && $2 ~ /^proc/	{ want=1 }\
#want == 1	{ print }' \
#	| sed -e 's/proc\./hotproc./g' \
#	      -e 's/number of processes/number of "interesting" processes/g' \
#	| cat - help.hotproc \
#	| ./help.fmt >$@ 
#
#pmns: $(PROC_DIR)/root_linux pmns.hotproc fixpmns.awk
#	$(AWK) < $(PROC_DIR)/root_linux -f fixpmns.awk \
#	| sed -e '/nprocs/d' -e 's/60:/HOTPROC:/g' -e 's/^proc/hotproc/g' \
#	| cat - pmns.hotproc >$@
#
#hotproc.o: domain.h
#
#config.o: gram.tab.h
#
#check_help_src:	domain.h help root pmns
#	PCP_SRC_DEPTH=$(PCP_SRC_DEPTH) $(PCP_SRC_DEPTH)/buildtools/check_help_src help root
#
##
## PROC_SRCDIR dependencies
##
#cluster.h: $(PROC_SRCDIR)/cluster.h
#	ln -s $? $@
#pracinfo.h: $(PROC_SRCDIR)/pracinfo.h
#	ln -s $? $@
#pracinfo.c: $(PROC_SRCDIR)/pracinfo.c
#	ln -s $? $@
#proc_aux.h: $(PROC_SRCDIR)/proc_aux.h
#	ln -s $? $@
#proc_aux.c: $(PROC_SRCDIR)/proc_aux.c
#	ln -s $? $@
#pscred.h: $(PROC_SRCDIR)/pscred.h
#	ln -s $? $@
#pscred.c: $(PROC_SRCDIR)/pscred.c
#	ln -s $? $@
#pstatus.h: $(PROC_SRCDIR)/pstatus.h
#	ln -s $? $@
#pstatus.c: $(PROC_SRCDIR)/pstatus.c
#	ln -s $? $@
#pmemory.h: $(PROC_SRCDIR)/pmemory.h
#	ln -s $? $@
#pmemory.c: $(PROC_SRCDIR)/pmemory.c
#	ln -s $? $@
#proc.h: $(PROC_SRCDIR)/proc.h
#	ln -s $? $@
#procmem.h: $(PROC_SRCDIR)/procmem.h
#	ln -s $? $@
#procmem.c: $(PROC_SRCDIR)/procmem.c
#	ln -s $? $@
#psinfo.h: $(PROC_SRCDIR)/psinfo.h
#	ln -s $? $@
#psinfo.c: $(PROC_SRCDIR)/psinfo.c
#	ln -s $? $@
#psusage.h: $(PROC_SRCDIR)/psusage.h
#	ln -s $? $@
#psusage.c: $(PROC_SRCDIR)/psusage.c
#	ln -s $? $@
#ttyname.c: $(PROC_SRCDIR)/ttyname.c
#	ln -s $? $@
#ctltab.h: $(PROC_SRCDIR)/ctltab.h
#	ln -s $? $@
#nameinfo.h: $(PROC_SRCDIR)/nameinfo.h
#	ln -s $? $@
#nameinfo.c: $(PROC_SRCDIR)/nameinfo.c
#	ln -s $? $@
#
#
#
#
#default_pro : default
#