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