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