Fixing wayward constness and general tidy-up.
[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.30  1998/02/05 22:19:00  czhang
8 # Removed the rule for "metTester", which was used for building a stand-alone
9 # test for the MDL scanner and parser.  Two of the source files for the test
10 # "metTester.C" and "metTemplates.C" were removed because they were obsolete.
11 #
12 # Revision 1.29  1996/05/12 04:41:20  tamches
13 # added templatesUIWASHG.C (split off from templatesUI.C), since our
14 # aix 4.1 machines barfed when assembling what was templatesUI.C
15 #
16 # Revision 1.28  1996/05/02 19:51:39  karavan
17 # added new cost server class, two new files, PCcostServer.C and PCcostServer.h
18 #
19 # Revision 1.27  1996/02/27 17:30:40  karavan
20 # removed PC debug printing flag
21 #
22 # Revision 1.26  1996/02/22 18:34:23  karavan
23 #  obsoleted PCdataQ.C
24 #
25 # Revision 1.25  1996/02/11 18:20:47  tamches
26 # templatesDMPCV.C to templatesDM.C
27 #
28 # Revision 1.24  1996/02/07 00:05:27  tamches
29 # added templatesPCV.C
30 #
31 # Revision 1.23  1996/02/06 16:27:43  mjrg
32 # Invoke tcl2c with perl, to avoid problems on HP.
33 #
34
35 CFLAGS          += $(TCLFRIENDLYWARNINGS)
36 #CXXFLAGS       += $(TCLFRIENDLYWARNINGS) -DPCDEBUG
37 CXXFLAGS        += $(TCLFRIENDLYWARNINGS) 
38 TFLAGS          += $(TCLFRIENDLYWARNINGS)
39
40 TARGET        = paradyn
41
42 VPATH        += ../h:$(wildcard ../src/*thread):\
43                 ../src/pdMain:../src/met
44
45 # We don't want to force the user to have "visi" checked out in order
46 # to compile paradyn:
47 VPATH   += $(shell if [ -d $(TO_CORE)/visi ]; then echo ":../../visi/h"; else echo ":/p/paradyn/core/visi/h"; fi )
48
49 SRCS         += ../src/DMthread/DMpublic.C \
50                 ../src/DMthread/DMdaemon.C \
51                 ../src/DMthread/DMmetric.C \
52                 ../src/DMthread/DMmain.C \
53                 ../src/DMthread/DMperfstream.C \
54                 ../src/DMthread/DMresource.C \
55                 ../src/DMthread/DMabstractions.C \
56                 ../src/DMthread/DMcritPath.C \
57                 ../src/DMthread/DMphase.C \
58                 ../src/pdMain/main.C \
59                 ../src/VMthread/VMmain.C \
60                 ../src/VISIthread/VISIthreadmain.C \
61                 ../src/VISIthread/VISIthreadpublic.C \
62                 ../src/PCthread/PCdata.C \
63                 ../src/PCthread/PCfocus.C \
64                 ../src/PCthread/PCsearch.C \
65                 ../src/PCthread/PCpublic.C \
66                 ../src/PCthread/PCmain.C \
67                 ../src/PCthread/PCconstants.C \
68                 ../src/PCthread/PCfilter.C \
69                 ../src/PCthread/PCmetric.C \
70                 ../src/PCthread/PCwhy.C \
71                 ../src/PCthread/PCexperiment.C \
72                 ../src/PCthread/PCrules.C \
73                 ../src/PCthread/PCshg.C \
74                 ../src/PCthread/PCmetricInst.C \
75                 ../src/PCthread/PCcostServer.C \
76                 ../src/UIthread/tclTunable.C \
77                 ../src/UIthread/Status.C \
78                 ../src/UIthread/uimpd.tcl.C \
79                 ../src/UIthread/UImain.C \
80                 ../src/UIthread/UIpublic.C \
81                 ../src/UIthread/UIwhere.C \
82                 ../src/UIthread/paradyn.tcl.C \
83                 ../src/UIthread/whereAxis.C \
84                 ../src/UIthread/abstractions.C \
85                 ../src/UIthread/where4treeConstants.C \
86                 ../src/UIthread/rootNode.C \
87                 ../src/UIthread/scrollbar.C \
88                 ../src/UIthread/whereAxisTcl.C \
89                 ../src/UIthread/shg.C \
90                 ../src/UIthread/shgRootNode.C \
91                 ../src/UIthread/shgPhases.C \
92                 ../src/UIthread/shgConsts.C \
93                 ../src/UIthread/shgTcl.C \
94                 ../src/UIthread/tkTools.C \
95                 ../src/UIthread/pdLogo.C \
96                 ../src/TCthread/TCmain.C \
97                 ../src/TCthread/tunableConst.C \
98                 ../src/met/metMain.C \
99                 metParser.C \
100                 metScanner.C \
101                 ../src/met/metClass.C \
102                 ../src/templatesIGENMDL.C  \
103                 ../src/templatesDM.C  \
104                 ../src/templatesPCV.C  \
105                 ../src/templatesUI.C  \
106                 ../src/templatesUIWASHG.C  \
107                 ../src/met/mdl.C
108
109 IGEN_GEN_SRCS = dataManager.thread.C \
110                 dataManager.thread.CLNT.C \
111                 dataManager.thread.SRVR.C \
112                 performanceConsultant.thread.C \
113                 performanceConsultant.thread.CLNT.C \
114                 performanceConsultant.thread.SRVR.C \
115                 dyninstRPC.xdr.C \
116                 dyninstRPC.xdr.CLNT.C \
117                 visi.xdr.CLNT.C \
118                 visi.xdr.C \
119                 VISIthread.thread.C \
120                 VISIthread.thread.SRVR.C \
121                 VISIthread.thread.CLNT.C \
122                 UI.thread.C \
123                 UI.thread.CLNT.C \
124                 UI.thread.SRVR.C \
125                 VM.thread.C \
126                 VM.thread.SRVR.C \
127                 VM.thread.CLNT.C 
128
129         
130
131 IGEN_ISRCS    = dataManager.I \
132                 performanceConsultant.I \
133                 dyninstRPC.I \
134                 visi.I \
135                 VISIthread.I \
136                 UI.I \
137                 VM.I
138
139
140 TCL_SRCS        = $(wildcard ../tcl/*.tcl)
141 #TCL_SRCS       =
142                 
143 SRCS            += $(TCL2C_GEN_SRCS)
144
145
146 IFLAGS       += -DPARADYN
147
148 LIBS         += -lpdutil -lpdthread
149 #SYSLIBS             += -ltix -ltk -ltcl -lX11 -lm -lfl
150 SYSLIBS      += -ltk -ltcl -lX11 -lm -lfl
151
152 CFLAGS       += -DNO_MDL_PRINT
153 CXXFLAGS     += -DNO_MDL_PRINT
154 TFLAGS       += -DNO_MDL_PRINT
155
156 all:    $(TARGET) 
157
158 templatesIGENMDL.o: ../src/templatesIGENMDL.C
159         $(CXX) $(TFLAGS) -c ../src/templatesIGENMDL.C
160 templatesDM.o: ../src/templatesDM.C
161         $(CXX) $(TFLAGS) -c ../src/templatesDM.C
162 templatesPCV.o: ../src/templatesPCV.C
163         $(CXX) $(TFLAGS) -c ../src/templatesPCV.C
164 templatesUI.o: ../src/templatesUI.C
165         $(CXX) $(TFLAGS) -c ../src/templatesUI.C
166
167 $(TCL2C_GEN_SRCS):      $(TCL_SRCS)
168         perl $(TCL2C) $^ > $@
169
170