removed compiler warning; added a member which removes (erase) an element
[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.37 2001/06/12 15:43:58 hollings Exp $
7 #
8
9 CFLAGS               += $(TCLFRIENDLYWARNINGS) -DNEW_TIME_TYPES
10 CXXFLAGS             += $(TCLFRIENDLYWARNINGS) -DNEW_TIME_TYPES
11 TFLAGS               += $(TCLFRIENDLYWARNINGS) -DNEW_TIME_TYPES
12
13 #TEMPORARY, FOR DEBUGGING....
14 #CXXFLAGS       += -DDEBUG_CALL_POINTS
15
16 TARGET        = paradynd
17
18 VPATH        += ../../paradynd/src:../../paradyn/h:../../dyninstAPI/src:\
19                 ../../dyninstAPI/h
20
21 SRCS         += ../src/association.C \
22                 ../../dyninstAPI/src/ast.C \
23                 ../src/comm.C \
24                 ../src/context.C \
25                 ../src/debugger.C \
26                 ../src/dynrpc.C \
27                 ../src/init.C \
28                 ../../dyninstAPI/src/inst.C \
29                 ../src/main.C \
30                 ../src/metric.C \
31                 ../src/internalMetrics.C \
32                 ../src/costmetrics.C \
33                 ../src/metricDefs-critPath.C \
34                 ../../dyninstAPI/src/Object.C \
35                 ../src/perfStream-def.C \
36                 ../src/perfStream.C \
37                 ../../dyninstAPI/src/process.C \
38                 ../../dyninstAPI/src/pdThread.C \
39                 ../src/resource.C \
40                 ../../dyninstAPI/src/stats.C \
41                 ../../dyninstAPI/src/symtab.C \
42                 ../../dyninstAPI/src/util.C \
43                 ../../dyninstAPI/src/sharedobject.C \
44                 ../src/mdl.C \
45                 ../src/showerror.C \
46                 ../../dyninstAPI/src/templates0.C \
47                 ../../dyninstAPI/src/templates05.C \
48                 ../../dyninstAPI/src/templates1.C \
49                 ../../dyninstAPI/src/templates2.C \
50                 ../src/templatesPD.C \
51                 ../src/templatesIGEN.C \
52                 ../src/hashTable.C
53
54 ifdef INCLUDE_PVM_SUPPORT
55 SRCS         += ../src/pvm_support.C \
56                 ../src/host_support.C \
57                 ../src/task_support.C \
58                 ../src/templatesPVM.C
59
60 CXXFLAGS        += -DPARADYND_PVM
61 LIBS            += $(PVM_LIB)
62 endif
63
64 ifdef USES_SHM_SAMPLING
65 SRCS            += ../src/fastInferiorHeap.C ../src/fastInferiorHeapHKs.C \
66                    ../src/fastInferiorHeapMgr.C ../src/baseTable.C \
67                    ../src/superTable.C ../src/superVector.C \
68                    ../src/shmSegment-unix.C
69 CXXFLAGS        += -DSHM_SAMPLING
70 TFLAGS          += -DSHM_SAMPLING
71 CFLAGS          += -DSHM_SAMPLING
72 endif
73
74 IGEN_GEN_SRCS = dyninstRPC.xdr.SRVR.C \
75                 dyninstRPC.xdr.C
76
77 IGEN_ISRCS    = dyninstRPC.I
78
79 LIBS            += -lpdutil
80
81 ifdef CROSSCOMPILER
82 SYSLIBS         += -liberty -lg++ -lstdc++ -lm
83 else
84 SYSLIBS         += -liberty
85 endif
86
87 IFLAGS       += -I../$(PLATFORM) -I../src
88
89 all:    $(TARGET)
90
91 templates0.o: ../../dyninstAPI/src/templates0.C
92         $(CXX) $(TFLAGS) -c ../../dyninstAPI/src/templates0.C
93
94 templates05.o: ../../dyninstAPI/src/templates05.C
95         $(CXX) $(TFLAGS) -c ../../dyninstAPI/src/templates05.C
96
97 templates1.o: ../../dyninstAPI/src/templates1.C
98         $(CXX) $(TFLAGS) -c ../../dyninstAPI/src/templates1.C
99
100 templatesPD.o: ../src/templatesPD.C
101         $(CXX) $(TFLAGS) -c ../src/templatesPD.C
102
103 templatesIGEN.o: ../src/templatesIGEN.C
104         $(CXX) $(TFLAGS) -c ../src/templatesIGEN.C