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