Changes to work towards compatability with IBM's version of dyninst.
[dyninst.git] / dyninstAPI / nmake.module.tmpl
1 #
2 # Common makefile template for dyninstAPI library.  This file is not
3 # intended to be a useful Makefile in isolation; instead, it should be
4 # included from within an architecture-specific Makefile.
5 #
6 # $Id: nmake.module.tmpl,v 1.19 2001/03/14 14:02:21 pcroth Exp $
7 #
8
9 SUITE_NAME      = Dyninst
10 RELEASE_NUM     = 2.3
11 #BUILD_MARK should be (re-)defined in core/make.config.local rather than here!
12
13 TARGET = libdyninstAPI.dll
14
15 # building as a DLL is not the common case
16 UNCOMMON_LINK           = true
17 UNCOMMON_INSTALL        = true
18
19
20
21 DEFINES      = -DBPATCH_LIBRARY -DBPATCH_SET_MUTATIONS_ACTIVE -DBPATCH_LIBRARY_F -DNEW_TIME_TYPES
22 CFLAGS       = $(CFLAGS) $(DEFINES)
23 CXXFLAGS     = $(CXXFLAGS) $(DEFINES)
24
25 IFLAGS       = $(IFLAGS) -I../h
26
27 SRCS         = $(SRCS) BPatch.C \
28                 BPatch_image.C \
29                 BPatch_function.C \
30                 BPatch_snippet.C \
31                 BPatch_templates.C \
32                 BPatch_thread.C \
33                 BPatch_type.C \
34                 BPatch_init.C \
35                 BPatch_module.C \
36                 BPatch_point.C \
37                 BPatch_collections.C \
38                 LineInformation.C \
39                 BPatch_sourceBlock.C \
40                 BPatch_basicBlock.C \
41                 BPatch_basicBlockLoop.C \
42                 BPatch_flowGraph.C \
43                 dummy.C \
44                 api_showerror.C \
45                 ast.C \
46                 CodeView.C \
47                 inst.C \
48                 Object.C \
49                 Object-nt.C \
50                 process.C \
51                 stats.C \
52                 symtab.C \
53                 util.C \
54                 sharedobject.C \
55                 ../../common/src/Dictionary.C \
56                 ../../common/src/Ident.C \
57                 ../../common/src/String.C \
58                 ../../common/src/Timer.C \
59                 ../../common/src/Types.C \
60                 ../../common/src/debugOstream.C \
61                 ../../common/src/lprintf.C \
62                 ../../common/src/pathName.C \
63                 ../../common/src/vectorSet.C \
64                 ../../common/src/int64iostream.C \
65                 ../../common/src/timing.C \
66                 ../../common/src/Time.C \
67                 ../../common/src/fraction.C \
68                 ../../common/src/timing-nt.C \
69                 templates-nt.C
70
71 OBJS         = $(OBJS) BPatch.obj \
72                 BPatch_image.obj \
73                 BPatch_function.obj \
74                 BPatch_snippet.obj \
75                 BPatch_templates.obj \
76                 BPatch_thread.obj \
77                 BPatch_type.obj \
78                 BPatch_init.obj \
79                 BPatch_module.obj \
80                 BPatch_point.obj \
81                 BPatch_collections.obj \
82                 LineInformation.obj \
83                 BPatch_sourceBlock.obj \
84                 BPatch_basicBlock.obj \
85                 BPatch_basicBlockLoop.obj \
86                 BPatch_flowGraph.obj \
87                 dummy.obj \
88                 api_showerror.obj \
89                 ast.obj \
90                 CodeView.obj \
91                 inst.obj \
92                 Object.obj \
93                 Object-nt.obj \
94                 process.obj \
95                 stats.obj \
96                 symtab.obj \
97                 util.obj \
98                 sharedobject.obj \
99                 Dictionary.obj \
100                 Ident.obj \
101                 String.obj \
102                 Timer.obj \
103                 Types.obj \
104                 debugOstream.obj \
105                 lprintf.obj \
106                 pathName.obj \
107                 vectorSet.obj \
108                 int64iostream.obj \
109                 timing.obj \
110                 Time.obj \
111                 fraction.obj \
112                 timing-nt.obj \
113                 templates-nt.obj
114
115 all: $(TARGET)
116
117 {..\..\common\src\}.C.obj:
118         $(CXX) $(CXXFLAGS) -c $<
119
120 {..\src\}.C.obj:
121         $(CXX) $(CXXFLAGS) -c $<
122
123 $(DEST)/libdyninstAPI.dll:      libdyninstAPI.dll
124         $(CP) libdyninstAPI.dll $(DEST)
125