add ppc64_linux platform - - - - - - - - - - - - - - - - - - - - - - - -
[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.55 2007/01/17 22:47:41 giri Exp $
7 #
8
9 CFLAGS          += $(TCLFRIENDLYWARNINGS) $(XFLAGS)
10 #CXXFLAGS       += $(TCLFRIENDLYWARNINGS) $(XFLAGS) -DPCDEBUG
11 CXXFLAGS        += $(TCLFRIENDLYWARNINGS) $(XFLAGS) -DTHREADLIB_DEBUG
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/DMcritPath.C \
30                 ../src/DMthread/DMphase.C \
31                 ../src/DMthread/DMmetricFocusReqBundle.C \
32                 ../src/DMthread/DMmetricFocusReq.C \
33                 ../src/DMthread/CallGraph.C \
34                 ../src/DMthread/MagnifyManager.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/paradyn.tcl.C \
59                 ../src/UIthread/whereAxis.C \
60                 ../src/UIthread/abstractions.C \
61                 ../src/UIthread/where4treeConstants.C \
62                 ../src/UIthread/rootNode.C \
63                 ../src/UIthread/scrollbar.C \
64                 ../src/UIthread/callGraphConsts.C \
65                 ../src/UIthread/callGraphTcl.C \
66                 ../src/UIthread/callGraphDisplay.C \
67                 ../src/UIthread/callGraphRootNode.C \
68                 ../src/UIthread/callGraphs.C \
69                 ../src/UIthread/whereAxisTcl.C \
70                 ../src/UIthread/shg.C \
71                 ../src/UIthread/shgRootNode.C \
72                 ../src/UIthread/shgPhases.C \
73                 ../src/UIthread/shgConsts.C \
74                 ../src/UIthread/shgTcl.C \
75                 ../src/UIthread/tkTools.C \
76                 ../src/UIthread/pdLogo.C \
77                 ../src/UIthread/ParadynUI.C \
78                 ../src/UIthread/ParadynTclUI.C \
79                 ../src/UIthread/ParadynTkGUI.C \
80                 ../src/TCthread/TCmain.C \
81                 ../src/TCthread/tunableConst.C \
82                 ../src/met/metMain.C \
83                 ../src/templatesIGENMDL.C  \
84                 ../src/templatesDM.C  \
85                 ../src/templatesPCV.C  \
86                 ../src/templatesUI.C  \
87                 ../src/templatesUIWASHG.C  \
88                 ../src/met/mdl.C
89
90 IGEN_GEN_SRCS = dataManager.thread.C \
91                 dataManager.thread.CLNT.C \
92                 dataManager.thread.SRVR.C \
93                 performanceConsultant.thread.C \
94                 performanceConsultant.thread.CLNT.C \
95                 performanceConsultant.thread.SRVR.C \
96                 dyninstRPC.mrnet.CLNT.C \
97                 dyninstRPC.mrnet.temp.C \
98                 visi.xdr.C \
99                 visi.xdr.CLNT.C \
100                 visi.xdr.temp.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                 termWin.xdr.C \
111                 termWin.xdr.CLNT.C \
112                 termWin.xdr.temp.C
113
114 IGEN_ISRCS    = dataManager.I \
115                 performanceConsultant.I \
116                 dyninstRPC.I \
117                 visi.I \
118                 VISIthread.I \
119                 UI.I \
120                 VM.I \
121                 termWin.I
122
123 PREREQUISITES = $(IGEN_GEN_SRCS)
124
125 TCL_SRCS        = ../tcl/applic.tcl \
126                 ../tcl/callGraph.tcl \
127                 ../tcl/errorList.tcl \
128                 ../tcl/focusUtils.tcl \
129                 ../tcl/generic.tcl \
130                 ../tcl/mainMenu.tcl \
131                 ../tcl/mets.tcl \
132                 ../tcl/save.tcl \
133                 ../tcl/shg.tcl \
134                 ../tcl/startVisi.tcl \
135                 ../tcl/status.tcl \
136                 ../tcl/tclTunable.tcl \
137                 ../tcl/uimProcs.tcl \
138                 ../tcl/whereAxis.tcl
139
140 SRCS            += $(TCL2C_GEN_SRCS)
141
142 IFLAGS       += -DPARADYN -I../../mrnet/mrnet/h/ -I../../mrnet -I../../mrnet/mrnet/src/ 
143
144 LIBS         += -lpdthread -lpdutil -lmrnet -lcommon -lxplat $(THREADSLIB)  
145 LIBS         += -lnsl
146
147 SYSLIBS      += $(TCLTK_LIBS) $(X11_LIB) -lm $(FLEX_LIB)
148
149 CFLAGS       += -DNO_MDL_PRINT
150 CXXFLAGS     += -DNO_MDL_PRINT
151 TFLAGS       += -DNO_MDL_PRINT
152
153 CFLAGS       += -I../../dyninstAPI/h
154 CXXFLAGS       += -I../../dyninstAPI/h
155 TFLAGS       += -I../../dyninstAPI/h
156
157 all:    $(TARGET) 
158
159 templatesIGENMDL.o: ../src/templatesIGENMDL.C
160         $(CXX) $(TFLAGS) -c ../src/templatesIGENMDL.C
161 templatesDM.o: ../src/templatesDM.C
162         $(CXX) $(TFLAGS) -c ../src/templatesDM.C
163 templatesPCV.o: ../src/templatesPCV.C
164         $(CXX) $(TFLAGS) -c ../src/templatesPCV.C
165 templatesUI.o: ../src/templatesUI.C
166         $(CXX) $(TFLAGS) -c ../src/templatesUI.C
167 templatesUIWASHG.o: ../src/templatesUIWASHG.C
168         $(CXX) $(TFLAGS) -c ../src/templatesUIWASHG.C
169
170 $(TCL2C_GEN_SRCS):      $(TCL_SRCS)
171         $(PERL) $(TCL2C) $^ > $@