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