Update of the sample value pipeline with changes in pdutil, paradynd, rtinst,
[dyninst.git] / paradynd / nmake.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: nmake.module.tmpl,v 1.10 2000/10/17 17:42:28 schendel Exp $
7 #
8
9 TARGET        = paradynd.exe
10
11 #SRCS        = $(SRCS) ../src/association.C \
12 #               ../src/ast.C \
13 #               ../src/comm.C \
14 #               ../src/context.C \
15 #               ../src/debugger.C \
16 #               ../src/dynrpc.C \
17 #               ../src/init.C \
18 #               ../src/inst.C \
19 #               ../src/main.C \
20 #               ../src/metric.C \
21 #               ../src/internalMetrics.C \
22 #               ../src/costmetrics.C \
23 #               ../src/metricDefs-critPath.C \
24 #               ../src/perfStream-def.C \
25 #               ../src/perfStream.C \
26 #               ../src/process.C \
27 #               ../src/resource.C \
28 #               ../src/stats.C \
29 #               ../src/symtab.C \
30 #               ../src/util.C \
31 #               ../src/mdl.C \
32 #               ../src/templates0.C \
33 #               ../src/templates05.C \
34 #               ../src/templates1.C \
35 #               ../src/templatesIGEN.C
36
37 !ifdef INCLUDE_PVM_SUPPORT
38 #SRCS        += ../src/pvm_support.C \
39 #               ../src/host_support.C \
40 #               ../src/task_support.C \
41 #               ../src/templatesPVM.C
42
43 OBJS            = $(OBJS) pvm_support.obj \
44                         host_support.obj \
45                         task_support.obj
46
47 CXXFLAGS        = $(CXXFLAGS) -DPARADYND_PVM
48 #LIBS           += -lpvm3
49 !endif
50
51 !ifdef USES_SHM_SAMPLING
52 SRCS            = $(SRCS) \
53                         ../src/fastInferiorHeap.C \
54                         ../src/fastInferiorHeapHKs.C \
55                    ../src/fastInferiorHeapMgr.C \
56                    ../src/baseTable.C \
57                    ../src/superTable.C \
58                    ../src/superVector.C \
59                    ../src/shmSegment-nt.C
60 CXXFLAGS        = $(CXXFLAGS) -DSHM_SAMPLING
61 TFLAGS          = $(TFLAGS) -DSHM_SAMPLING
62 CFLAGS          = $(CFLAGS) -DSHM_SAMPLING
63 !endif
64
65 CXXFLAGS        = $(CXXFLAGS) -DNEW_TIME_TYPES
66 TFLAGS          = $(TFLAGS) -DNEW_TIME_TYPES
67 CFLAGS          = $(CFLAGS) -DNEW_TIME_TYPES
68
69 IGEN_GEN_SRCS = dyninstRPC.xdr.SRVR.C \
70                 dyninstRPC.xdr.C
71
72 IGEN_ISRCS    = dyninstRPC.I
73
74
75 OBJS      = $(OBJS) association.obj \
76                 ast.obj \
77                 CodeView.obj \
78                 comm.obj \
79                 context.obj \
80                 debugger.obj \
81                 dynrpc.obj \
82                 init.obj \
83                 inst.obj \
84                 main.obj \
85                 metric.obj \
86                 internalMetrics.obj \
87                 costmetrics.obj \
88                 metricDefs-critPath.obj \
89                 Object.obj \
90                 perfStream-def.obj \
91                 resource.obj \
92                 stats.obj \
93                 symtab.obj \
94                 util.obj \
95                 mdl.obj \
96                 showerror.obj \
97                 perfStream.obj \
98                 process.obj \
99                 sharedobject.obj \
100                 dyninstRPC.xdr.SRVR.obj \
101                 dyninstRPC.xdr.obj \
102                 templates-nt.obj
103
104 !ifdef USES_SHM_SAMPLING
105 OBJS    = $(OBJS) \
106                 fastInferiorHeap.obj \
107                 fastInferiorHeapHKs.obj \
108                 fastInferiorHeapMgr.obj \
109                 baseTable.obj \
110                 superTable.obj \
111                 superVector.obj \
112                 shmSegment-nt.obj
113 !endif
114
115
116 LIBS            = ..\..\..\lib\$(PLATFORM)\libpdutil.lib
117
118 SYSLIBS         = oncrpc.lib wsock32.lib imagehlp.lib
119
120 all:    $(IGEN_GEN_SRCS) $(TARGET)
121
122 $(TARGET):      $(IGEN_GEN_SRCS)
123
124 dyninstRPC.xdr.SRVR.C: ..\..\paradyn\h\dyninstRPC.I
125         igen -xdr ../../paradyn/h/dyninstRPC.I
126
127 {..\..\paradyn\h\}.I.C:
128         igen -xdr ../../paradyn/h/dyninstRPC.I
129
130 {..\..\paradyn\h\}.I.h:
131         igen -xdr ../../paradyn/h/dyninstRPC.I
132
133 {..\..\dyninstAPI\src\}.C.obj:
134         $(CXX) $(CXXFLAGS) -c $<
135
136