Changed uname to "wrapped" getHostName
[dyninst.git] / paradynd / make.module.tmpl
1
2 # Common makefile template for paradynd.  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.28 1998/04/01 02:50:01 wylie Exp $
7 #
8
9 CFLAGS               += $(TCLFRIENDLYWARNINGS)
10 CXXFLAGS             += $(TCLFRIENDLYWARNINGS)
11 TFLAGS               += $(TCLFRIENDLYWARNINGS)
12
13 TARGET        = paradynd
14
15 VPATH        += ../../paradynd/src:../../paradyn/h:../../dyninstAPI/src:\
16                 ../../dyninstAPI/h
17
18 SRCS         += ../src/association.C \
19                 ../../dyninstAPI/src/ast.C \
20                 ../src/comm.C \
21                 ../src/context.C \
22                 ../src/debugger.C \
23                 ../src/dynrpc.C \
24                 ../src/init.C \
25                 ../../dyninstAPI/src/inst.C \
26                 ../src/main.C \
27                 ../src/metric.C \
28                 ../src/internalMetrics.C \
29                 ../src/costmetrics.C \
30                 ../src/metricDefs-critPath.C \
31                 ../src/perfStream-def.C \
32                 ../src/perfStream.C \
33                 ../../dyninstAPI/src/process.C \
34                 ../src/resource.C \
35                 ../../dyninstAPI/src/stats.C \
36                 ../../dyninstAPI/src/symtab.C \
37                 ../../dyninstAPI/src/util.C \
38                 ../../dyninstAPI/src/sharedobject.C \
39                 ../src/mdl.C \
40                 ../src/showerror.C \
41                 ../../dyninstAPI/src/templates0.C \
42                 ../../dyninstAPI/src/templates05.C \
43                 ../../dyninstAPI/src/templates1.C \
44                 ../src/templatesPD.C \
45                 ../src/templatesIGEN.C \
46                 ../src/hashTable.C \
47                 ../../dyninstAPI/src/FunctionExpansionRecord.C \
48
49 ifdef INCLUDE_PVM_SUPPORT
50 SRCS         += ../src/pvm_support.C \
51                 ../src/host_support.C \
52                 ../src/task_support.C \
53                 ../src/templatesPVM.C
54
55 CXXFLAGS        += -DPARADYND_PVM -DPOWER_DEBUG
56 LIBS            += $(PVM_LIB)
57 endif
58
59 ifdef USES_SHM_SAMPLING
60 SRCS            += ../src/fastInferiorHeap.C ../src/fastInferiorHeapHKs.C \
61                    ../src/fastInferiorHeapMgr.C ../src/baseTable.C \
62                    ../src/superTable.C ../src/superVector.C
63 CXXFLAGS        += -DSHM_SAMPLING
64 TFLAGS          += -DSHM_SAMPLING
65 CFLAGS          += -DSHM_SAMPLING
66 endif
67
68 IGEN_GEN_SRCS = dyninstRPC.xdr.SRVR.C \
69                 dyninstRPC.xdr.C
70
71 IGEN_ISRCS    = dyninstRPC.I
72
73 LIBS            += -lpdutil
74
75 ifdef CROSSCOMPILER
76 SYSLIBS         += -liberty -lg++ -lstdc++ -lm
77 else
78 SYSLIBS         += -liberty
79 endif
80
81 IFLAGS       += -I../$(PLATFORM) -I../src
82
83 all:    $(TARGET)
84
85 templates0.o: ../../dyninstAPI/src/templates0.C
86         $(CXX) $(TFLAGS) -c ../../dyninstAPI/src/templates0.C
87
88 templates05.o: ../../dyninstAPI/src/templates05.C
89         $(CXX) $(TFLAGS) -c ../../dyninstAPI/src/templates05.C
90
91 templates1.o: ../../dyninstAPI/src/templates1.C
92         $(CXX) $(TFLAGS) -c ../../dyninstAPI/src/templates1.C
93
94 templatesPD.o: ../src/templatesPD.C
95         $(CXX) $(TFLAGS) -c ../src/templatesPD.C
96
97 templatesIGEN.o: ../src/templatesIGEN.C
98         $(CXX) $(TFLAGS) -c ../src/templatesIGEN.C