Added getHostName/getDomainName/getNetworkName/getNetworkAddr
[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 # $Id: make.module.tmpl,v 1.35 1999/11/08 20:12:38 pcroth Exp $
7 #
8
9 CFLAGS          += $(TCLFRIENDLYWARNINGS) $(XFLAGS)
10 #CXXFLAGS       += $(TCLFRIENDLYWARNINGS) $(XFLAGS) -DPCDEBUG
11 CXXFLAGS        += $(TCLFRIENDLYWARNINGS) $(XFLAGS)
12 TFLAGS          += $(TCLFRIENDLYWARNINGS) $(XFLAGS)
13
14 TARGET        = paradyn
15
16 VPATH        += ../h:$(wildcard ../src/*thread):\
17                 ../src/pdMain:../src/met
18
19 # We don't want to force the user to have "visi" checked out in order
20 # to compile paradyn:
21 VPATH   += $(shell if [ -d $(TO_CORE)/visi ]; then echo ":../../visi/h"; else echo ":$(BACKUP_CORE)/visi/h"; fi )
22
23 SRCS         += ../src/DMthread/DMpublic.C \
24                 ../src/DMthread/DMdaemon.C \
25                 ../src/DMthread/DMmetric.C \
26                 ../src/DMthread/DMmain.C \
27                 ../src/DMthread/DMperfstream.C \
28                 ../src/DMthread/DMresource.C \
29                 ../src/DMthread/DMabstractions.C \
30                 ../src/DMthread/DMcritPath.C \
31                 ../src/DMthread/DMphase.C \
32                 ../src/DMthread/CallGraph.C \
33                 ../src/DMthread/MagnifyManager.C \
34                 ../src/DMthread/DMtime-unix.C \
35                 ../src/pdMain/main.C \
36                 ../src/VMthread/VMmain.C \
37                 ../src/VISIthread/VISIthreadmain.C \
38                 ../src/VISIthread/VISIthreadpublic.C \
39                 ../src/PCthread/PCdata.C \
40                 ../src/PCthread/PCfocus.C \
41                 ../src/PCthread/PCsearch.C \
42                 ../src/PCthread/PCpublic.C \
43                 ../src/PCthread/PCmain.C \
44                 ../src/PCthread/PCconstants.C \
45                 ../src/PCthread/PCfilter.C \
46                 ../src/PCthread/PCmetric.C \
47                 ../src/PCthread/PCwhy.C \
48                 ../src/PCthread/PCexperiment.C \
49                 ../src/PCthread/PCrules.C \
50                 ../src/PCthread/PCshg.C \
51                 ../src/PCthread/PCmetricInst.C \
52                 ../src/PCthread/PCcostServer.C \
53                 ../src/UIthread/tclTunable.C \
54                 ../src/UIthread/Status.C \
55                 ../src/UIthread/uimpd.tcl.C \
56                 ../src/UIthread/UImain.C \
57                 ../src/UIthread/UIpublic.C \
58                 ../src/UIthread/UIwhere.C \
59                 ../src/UIthread/paradyn.tcl.C \
60                 ../src/UIthread/whereAxis.C \
61                 ../src/UIthread/abstractions.C \
62                 ../src/UIthread/where4treeConstants.C \
63                 ../src/UIthread/rootNode.C \
64                 ../src/UIthread/scrollbar.C \
65                 ../src/UIthread/callGraphConsts.C \
66                 ../src/UIthread/callGraphTcl.C \
67                 ../src/UIthread/callGraphDisplay.C \
68                 ../src/UIthread/callGraphRootNode.C \
69                 ../src/UIthread/callGraphs.C \
70                 ../src/UIthread/whereAxisTcl.C \
71                 ../src/UIthread/shg.C \
72                 ../src/UIthread/shgRootNode.C \
73                 ../src/UIthread/shgPhases.C \
74                 ../src/UIthread/shgConsts.C \
75                 ../src/UIthread/shgTcl.C \
76                 ../src/UIthread/tkTools.C \
77                 ../src/UIthread/pdLogo.C \
78                 ../src/TCthread/TCmain.C \
79                 ../src/TCthread/tunableConst.C \
80                 ../src/met/metMain.C \
81                 metParser.C \
82                 metScanner.C \
83                 ../src/met/metClass.C \
84                 ../src/templatesIGENMDL.C  \
85                 ../src/templatesDM.C  \
86                 ../src/templatesPCV.C  \
87                 ../src/templatesUI.C  \
88                 ../src/templatesUIWASHG.C  \
89                 ../src/met/mdl.C
90
91 IGEN_GEN_SRCS = dataManager.thread.C \
92                 dataManager.thread.CLNT.C \
93                 dataManager.thread.SRVR.C \
94                 performanceConsultant.thread.C \
95                 performanceConsultant.thread.CLNT.C \
96                 performanceConsultant.thread.SRVR.C \
97                 dyninstRPC.xdr.C \
98                 dyninstRPC.xdr.CLNT.C \
99                 visi.xdr.CLNT.C \
100                 visi.xdr.C \
101                 VISIthread.thread.C \
102                 VISIthread.thread.SRVR.C \
103                 VISIthread.thread.CLNT.C \
104                 UI.thread.C \
105                 UI.thread.CLNT.C \
106                 UI.thread.SRVR.C \
107                 VM.thread.C \
108                 VM.thread.SRVR.C \
109                 VM.thread.CLNT.C 
110
111         
112
113 IGEN_ISRCS    = dataManager.I \
114                 performanceConsultant.I \
115                 dyninstRPC.I \
116                 visi.I \
117                 VISIthread.I \
118                 UI.I \
119                 VM.I
120
121
122 TCL_SRCS        = ../tcl/applic.tcl \
123                                 ../tcl/callGraph.tcl \
124                                 ../tcl/errorList.tcl \
125                                 ../tcl/focusUtils.tcl \
126                                 ../tcl/generic.tcl \
127                                 ../tcl/mainMenu.tcl \
128                                 ../tcl/mets.tcl \
129                                 ../tcl/save.tcl \
130                                 ../tcl/shg.tcl \
131                                 ../tcl/startVisi.tcl \
132                                 ../tcl/status.tcl \
133                                 ../tcl/tclTunable.tcl \
134                                 ../tcl/uimProcs.tcl \
135                                 ../tcl/whereAxis.tcl
136
137 SRCS            += $(TCL2C_GEN_SRCS)
138
139
140 IFLAGS       += -DPARADYN
141
142 LIBS         += -lpdutil -lpdthread
143 SYSLIBS      += $(TCLTK_LIBS) $(X11_LIB) -lm $(FLEX_LIB)
144
145 CFLAGS       += -DNO_MDL_PRINT
146 CXXFLAGS     += -DNO_MDL_PRINT
147 TFLAGS       += -DNO_MDL_PRINT
148
149 all:    $(TARGET) 
150
151 templatesIGENMDL.o: ../src/templatesIGENMDL.C
152         $(CXX) $(TFLAGS) -c ../src/templatesIGENMDL.C
153 templatesDM.o: ../src/templatesDM.C
154         $(CXX) $(TFLAGS) -c ../src/templatesDM.C
155 templatesPCV.o: ../src/templatesPCV.C
156         $(CXX) $(TFLAGS) -c ../src/templatesPCV.C
157 templatesUI.o: ../src/templatesUI.C
158         $(CXX) $(TFLAGS) -c ../src/templatesUI.C
159
160 $(TCL2C_GEN_SRCS):      $(TCL_SRCS)
161         $(PERL) $(TCL2C) $^ > $@
162
163