Updated with new support for Windows NT in front end and thread lib
[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.6 1999/01/21 20:54:22 wylie 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                 comm.obj \
70                 context.obj \
71                 debugger.obj \
72                 dynrpc.obj \
73                 init.obj \
74                 inst.obj \
75                 main.obj \
76                 metric.obj \
77                 internalMetrics.obj \
78                 costmetrics.obj \
79                 metricDefs-critPath.obj \
80                 perfStream-def.obj \
81                 resource.obj \
82                 stats.obj \
83                 symtab.obj \
84                 util.obj \
85                 mdl.obj \
86                 showerror.obj \
87                 perfStream.obj \
88                 process.obj \
89                 sharedobject.obj \
90                 dyninstRPC.xdr.SRVR.obj \
91                 dyninstRPC.xdr.obj \
92                 templates-nt.obj
93
94
95
96 LIBS            = ..\..\..\lib\$(PLATFORM)\libpdutil.lib
97
98 SYSLIBS         = oncrpc.lib wsock32.lib imagehlp.lib
99
100 IFLAGS       = $(IFLAGS) -I../$(PLATFORM)
101
102 all:    $(IGEN_GEN_SRCS) $(TARGET)
103
104 $(TARGET):      $(IGEN_GEN_SRCS)
105
106 dyninstRPC.xdr.SRVR.C: ..\..\paradyn\h\dyninstRPC.I
107         igen -xdr ../../paradyn/h/dyninstRPC.I
108
109 {..\..\paradyn\h\}.I.C:
110         igen -xdr ../../paradyn/h/dyninstRPC.I
111
112 {..\..\paradyn\h\}.I.h:
113         igen -xdr ../../paradyn/h/dyninstRPC.I
114
115 {..\..\dyninstAPI\src\}.C.obj:
116         $(CXX) $(CXXFLAGS) -c $<
117
118