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