added new cost server class, two new files, PCcostServer.C and PCcostServer.h
[dyninst.git] / paradyn / make.module.tmpl
1
2 # Common makefile template for paradyn.  This file is not intended to
3 # be a useful Makefile in isolation; instead, it should be included
4 # from within an architecture-specific Makefile.
5 #
6 # $Log: make.module.tmpl,v $
7 # Revision 1.28  1996/05/02 19:51:39  karavan
8 # added new cost server class, two new files, PCcostServer.C and PCcostServer.h
9 #
10 # Revision 1.27  1996/02/27 17:30:40  karavan
11 # removed PC debug printing flag
12 #
13 # Revision 1.26  1996/02/22 18:34:23  karavan
14 #  obsoleted PCdataQ.C
15 #
16 # Revision 1.25  1996/02/11 18:20:47  tamches
17 # templatesDMPCV.C to templatesDM.C
18 #
19 # Revision 1.24  1996/02/07 00:05:27  tamches
20 # added templatesPCV.C
21 #
22 # Revision 1.23  1996/02/06 16:27:43  mjrg
23 # Invoke tcl2c with perl, to avoid problems on HP.
24 #
25 # Revision 1.22  1996/02/02 02:22:52  karavan
26 #  Its a baby performance consultant!
27 #
28 # Revision 1.21  1995/12/20 01:11:40  tamches
29 # removed TCL2C, TCL2C_GEN_SRCS (now in make.config)
30 #
31 # Revision 1.20  1995/12/12 22:33:07  newhall
32 # divided templates.C into 3 template files
33 #
34 # Revision 1.19  1995/11/29 00:14:52  tamches
35 # added pdLogo.C
36 #
37 # Revision 1.18  1995/11/08 23:44:21  tamches
38 # added TCLFRIENDLYWARNINGS to the flags
39 #
40 # Revision 1.17  1995/10/18 00:52:32  tamches
41 # removed 4 no-longer-used .C files from SRCS
42 #
43 # Revision 1.16  1995/10/17 20:39:19  tamches
44 # Added whereAxis.C, abstractions.C, shg.C, shgRootNode.C,
45 # shgPhases.C, shgConsts.C, shgTcl.C
46 #
47 # Revision 1.15  1995/10/05 04:50:56  karavan
48 # added shgDisplay.C
49 #
50 # Revision 1.14  1995/09/20  01:32:01  tamches
51 # Added tkTools.C; added /s/flex/lib (for -fl on instructional solaris machines)
52 #
53 # Revision 1.13  1995/08/24  15:01:52  hollings
54 # AIX/SP-2 port (including option for split instruction/data heaps)
55 # Tracing of rexec (correctly spawns a paradynd if needed)
56 # Added rtinst function to read getrusage stats (can now be used in metrics)
57 # Critical Path
58 # Improved Error reporting in MDL sematic checks
59 # Fixed MDL Function call statement
60 # Fixed bugs in TK usage (strings passed where UID expected)
61 #
62 # Revision 1.12  1995/07/18  19:14:12  krisna
63 # changes to convert Tcl sources to C
64 #
65 # Revision 1.11  1995/07/17 05:02:52  tamches
66 # Additions for new where axis code (actually, certain files, such as
67 # where4tree.C, have been left out, since templates.C 'compiles' them
68 # just fine)
69 #
70 # Revision 1.10  1995/06/02  20:59:22  newhall
71 # changes for new dataManager interface
72 #
73 # Revision 1.9  1995/05/18  10:53:47  markc
74 # added define to quiet mdl error printing
75 #
76 # Revision 1.8  1995/05/18  10:50:05  markc
77 # Added mdl.C and define for mdl code
78 #
79 # Revision 1.7  1995/03/15  19:16:15  jcargill
80 # Removed -lresolv for all architectures, and added it back for Sunos
81 # and Solaris; libresolv.a causes trouble for hppa.
82 #
83 # Revision 1.6  1995/03/11  06:02:54  krisna
84 # libthread, libutil name change
85 #
86 # Revision 1.5  1995/02/27  18:32:30  tamches
87 # Changes to reflect the new TCthread.
88 #
89 # Revision 1.4  1995/02/26  02:14:39  newhall
90 # added source file DMphase.C
91 #
92 # Revision 1.3  1995/02/16  08:03:56  markc
93 # Added rule for templates file.
94 #
95 # Revision 1.2  1995/01/31  15:16:56  jcargill
96 # Fixed minor glitch: CC++ instead of CXX
97 #
98 # Revision 1.1  1995/01/30  18:10:07  jcargill
99 # Major build system reorganization
100 #
101 #
102
103 CFLAGS          += $(TCLFRIENDLYWARNINGS)
104 #CXXFLAGS       += $(TCLFRIENDLYWARNINGS) -DPCDEBUG
105 CXXFLAGS        += $(TCLFRIENDLYWARNINGS) 
106 TFLAGS          += $(TCLFRIENDLYWARNINGS)
107
108 TARGET        = paradyn
109
110 VPATH        += ../h:$(wildcard ../src/*thread):\
111                 ../src/pdMain:../src/met
112
113 # We don't want to force the user to have "visi" checked out in order
114 # to compile paradyn:
115 VPATH   += $(shell if [ -d $(TO_CORE)/visi ]; then echo ":../../visi/h"; else echo ":/p/paradyn/core/visi/h"; fi )
116
117 SRCS         += ../src/DMthread/DMpublic.C \
118                 ../src/DMthread/DMdaemon.C \
119                 ../src/DMthread/DMmetric.C \
120                 ../src/DMthread/DMmain.C \
121                 ../src/DMthread/DMperfstream.C \
122                 ../src/DMthread/DMresource.C \
123                 ../src/DMthread/DMabstractions.C \
124                 ../src/DMthread/DMcritPath.C \
125                 ../src/DMthread/DMphase.C \
126                 ../src/pdMain/main.C \
127                 ../src/VMthread/VMmain.C \
128                 ../src/VISIthread/VISIthreadmain.C \
129                 ../src/VISIthread/VISIthreadpublic.C \
130                 ../src/PCthread/PCdata.C \
131                 ../src/PCthread/PCfocus.C \
132                 ../src/PCthread/PCsearch.C \
133                 ../src/PCthread/PCpublic.C \
134                 ../src/PCthread/PCmain.C \
135                 ../src/PCthread/PCconstants.C \
136                 ../src/PCthread/PCfilter.C \
137                 ../src/PCthread/PCmetric.C \
138                 ../src/PCthread/PCwhy.C \
139                 ../src/PCthread/PCexperiment.C \
140                 ../src/PCthread/PCrules.C \
141                 ../src/PCthread/PCshg.C \
142                 ../src/PCthread/PCmetricInst.C \
143                 ../src/PCthread/PCcostServer.C \
144                 ../src/UIthread/tclTunable.C \
145                 ../src/UIthread/Status.C \
146                 ../src/UIthread/uimpd.tcl.C \
147                 ../src/UIthread/UImain.C \
148                 ../src/UIthread/UIpublic.C \
149                 ../src/UIthread/UIwhere.C \
150                 ../src/UIthread/paradyn.tcl.C \
151                 ../src/UIthread/whereAxis.C \
152                 ../src/UIthread/abstractions.C \
153                 ../src/UIthread/where4treeConstants.C \
154                 ../src/UIthread/rootNode.C \
155                 ../src/UIthread/scrollbar.C \
156                 ../src/UIthread/whereAxisTcl.C \
157                 ../src/UIthread/shg.C \
158                 ../src/UIthread/shgRootNode.C \
159                 ../src/UIthread/shgPhases.C \
160                 ../src/UIthread/shgConsts.C \
161                 ../src/UIthread/shgTcl.C \
162                 ../src/UIthread/tkTools.C \
163                 ../src/UIthread/pdLogo.C \
164                 ../src/TCthread/TCmain.C \
165                 ../src/TCthread/tunableConst.C \
166                 ../src/met/metMain.C \
167                 metParser.C \
168                 metScanner.C \
169                 ../src/met/metClass.C \
170                 ../src/templatesIGENMDL.C  \
171                 ../src/templatesDM.C  \
172                 ../src/templatesPCV.C  \
173                 ../src/templatesUI.C  \
174                 ../src/met/mdl.C
175
176 IGEN_GEN_SRCS = dataManager.thread.C \
177                 dataManager.thread.CLNT.C \
178                 dataManager.thread.SRVR.C \
179                 performanceConsultant.thread.C \
180                 performanceConsultant.thread.CLNT.C \
181                 performanceConsultant.thread.SRVR.C \
182                 dyninstRPC.xdr.C \
183                 dyninstRPC.xdr.CLNT.C \
184                 visi.xdr.CLNT.C \
185                 visi.xdr.C \
186                 VISIthread.thread.C \
187                 VISIthread.thread.SRVR.C \
188                 VISIthread.thread.CLNT.C \
189                 UI.thread.C \
190                 UI.thread.CLNT.C \
191                 UI.thread.SRVR.C \
192                 VM.thread.C \
193                 VM.thread.SRVR.C \
194                 VM.thread.CLNT.C 
195
196         
197
198 IGEN_ISRCS    = dataManager.I \
199                 performanceConsultant.I \
200                 dyninstRPC.I \
201                 visi.I \
202                 VISIthread.I \
203                 UI.I \
204                 VM.I
205
206
207 TCL_SRCS        = $(wildcard ../tcl/*.tcl)
208 #TCL_SRCS       =
209                 
210 SRCS            += $(TCL2C_GEN_SRCS)
211
212
213 IFLAGS       += -DPARADYN
214
215 LIBS         += -lpdutil -lpdthread
216 #SYSLIBS             += -ltix -ltk -ltcl -lX11 -lm -lfl
217 SYSLIBS      += -ltk -ltcl -lX11 -lm -lfl
218
219 CFLAGS       += -DNO_MDL_PRINT
220 CXXFLAGS     += -DNO_MDL_PRINT
221 TFLAGS       += -DNO_MDL_PRINT
222
223 all:    $(TARGET) 
224
225 metTester: metParser.o metTester.o metScanner.o metTemplates.o metClass.o
226         $(CXX) $(LIBDIR) -o metTester metTemplates.o metParser.o metTester.o \
227         metScanner.o metClass.o -lfl
228
229 templatesIGENMDL.o: ../src/templatesIGENMDL.C
230         $(CXX) $(TFLAGS) -c ../src/templatesIGENMDL.C
231 templatesDM.o: ../src/templatesDM.C
232         $(CXX) $(TFLAGS) -c ../src/templatesDM.C
233 templatesPCV.o: ../src/templatesPCV.C
234         $(CXX) $(TFLAGS) -c ../src/templatesPCV.C
235 templatesUI.o: ../src/templatesUI.C
236         $(CXX) $(TFLAGS) -c ../src/templatesUI.C
237
238 $(TCL2C_GEN_SRCS):      $(TCL_SRCS)
239         perl $(TCL2C) $^ > $@
240
241