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