Standard file
[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 # make.module.tmpl,v
7 # Revision 1.5  1995/05/30  22:16:30  krisna
8 # moved arch-os specific sources to appropriate directory
9 #
10 # Revision 1.4  1995/05/18  10:46:08  markc
11 # Added new source files
12 #
13 # Revision 1.3  1995/03/11  06:03:52  krisna
14 # libutil name change
15 #
16 # Revision 1.2  1995/02/16  08:26:31  markc
17 # New support for templates
18 #
19 # Revision 1.1  1995/01/30  18:10:31  jcargill
20 # Major build system reorganization
21 #
22 #
23
24 CFLAGS               += $(TCLFRIENDLYWARNINGS)
25 CXXFLAGS             += $(TCLFRIENDLYWARNINGS)
26 TFLAGS               += $(TCLFRIENDLYWARNINGS)
27
28 TARGET        = paradynd
29
30 VPATH        += ../../paradynd/src:../../paradyn/h:../../dyninstAPI/src:\
31                 ../../dyninstAPI/h
32
33 SRCS         += ../src/association.C \
34                 ../../dyninstAPI/src/ast.C \
35                 ../src/comm.C \
36                 ../src/context.C \
37                 ../src/debugger.C \
38                 ../src/dynrpc.C \
39                 ../src/init.C \
40                 ../../dyninstAPI/src/inst.C \
41                 ../src/main.C \
42                 ../src/metric.C \
43                 ../src/internalMetrics.C \
44                 ../src/costmetrics.C \
45                 ../src/metricDefs-critPath.C \
46                 ../src/perfStream-def.C \
47                 ../src/perfStream.C \
48                 ../../dyninstAPI/src/process.C \
49                 ../src/resource.C \
50                 ../../dyninstAPI/src/stats.C \
51                 ../../dyninstAPI/src/symtab.C \
52                 ../../dyninstAPI/src/util.C \
53                 ../../dyninstAPI/src/sharedobject.C \
54                 ../src/mdl.C \
55                 ../src/showerror.C \
56                 ../../dyninstAPI/src/templates0.C \
57                 ../../dyninstAPI/src/templates05.C \
58                 ../../dyninstAPI/src/templates1.C \
59                 ../src/templatesPD.C \
60                 ../src/templatesIGEN.C \
61                 ../src/hashTable.C
62
63 ifdef USES_PVM
64 SRCS         += ../src/pvm_support.C \
65                 ../src/host_support.C \
66                 ../src/task_support.C \
67                 ../src/templatesPVM.C
68
69 CXXFLAGS        += -DPARADYND_PVM -DPOWER_DEBUG
70 LIBS            += -lpvm3
71
72 endif
73
74 ifdef USES_SHM_SAMPLING
75 SRCS            += ../src/fastInferiorHeap.C ../src/fastInferiorHeapHKs.C \
76                    ../src/fastInferiorHeapMgr.C ../src/baseTable.C \
77                    ../src/superTable.C ../src/superVector.C
78 CXXFLAGS        += -DSHM_SAMPLING
79 TFLAGS          += -DSHM_SAMPLING
80 CFLAGS          += -DSHM_SAMPLING
81 endif
82
83 IGEN_GEN_SRCS = dyninstRPC.xdr.SRVR.C \
84                 dyninstRPC.xdr.C
85
86 IGEN_ISRCS    = dyninstRPC.I
87
88 LIBS            += -lpdutil
89
90 ifdef CROSSCOMPILER
91 SYSLIBS         += -liberty -lg++ -lstdc++ -lm
92 else
93 SYSLIBS         += -liberty
94 endif
95
96 IFLAGS       += -I../$(PLATFORM) -I../src
97
98 all:    $(TARGET)
99
100 templates0.o: ../../dyninstAPI/src/templates0.C
101         $(CXX) $(TFLAGS) -c ../../dyninstAPI/src/templates0.C
102
103 templates05.o: ../../dyninstAPI/src/templates05.C
104         $(CXX) $(TFLAGS) -c ../../dyninstAPI/src/templates05.C
105
106 templates1.o: ../../dyninstAPI/src/templates1.C
107         $(CXX) $(TFLAGS) -c ../../dyninstAPI/src/templates1.C
108
109 templatesPD.o: ../src/templatesPD.C
110         $(CXX) $(TFLAGS) -c ../src/templatesPD.C
111
112 templatesIGEN.o: ../src/templatesIGEN.C
113         $(CXX) $(TFLAGS) -c ../src/templatesIGEN.C