Compilation fixes for gcc 3.1, MSVC 6.0 & 7.0
[dyninst.git] / dyninstAPI / i386-unknown-nt4.0 / Makefile
1 #
2 # $Id: Makefile,v 1.19 2002/06/17 17:04:04 gaburici Exp $
3 #
4
5 # Define any symbols needed to invoke configuration changes in make.config
6
7 # Include standard make configuration stuff that applies to everything
8 # in the paradyn tree.
9
10 include ../../nmake.config 
11 DEFCFLAGS = $(DEFCFLAGS) -MD # ccw 12 july 2001
12
13 # Now make any necessary architecture specific changes to variables:
14
15 # we require an uncommon link
16 LD              = link
17 LDFLAGS = -DLL -debug -pdb:none -export:V_libdyninstAPI  /NODEFAULTLIB:libc.lib # ccw 20 june 2001
18
19
20 SRCS =          ../src/pdwinnt.C \
21                 ../src/inst-winnt.C \
22                 ../src/inst-x86.C \
23                 ../src/func-reloc.C \
24                 ../src/LocalAlteration.C \
25                 ../src/LocalAlteration-x86.C \
26                 ../src/FunctionExpansionRecord.C \
27                 ../src/arch-x86.C \
28                 ../src/arch-ia32.C \
29                 ../src/InstrucIter-x86.C 
30 #               ../src/MapSymbols.C 
31 # ccw 13 july 2001
32
33 OBJS =          pdwinnt.obj \
34                 inst-winnt.obj \
35                 inst-x86.obj \
36                 arch-x86.obj \
37                 func-reloc.obj \
38                 LocalAlteration.obj \
39                 LocalAlteration-x86.obj \
40                 FunctionExpansionRecord.obj \
41                 InstrucIter-x86.obj \
42                 arch-ia32.obj
43 #               MapSymbols.obj 
44 # ccw 13 july 2001
45
46 LIBS            = imagehlp.lib advapi32.lib
47
48 CXXFLAGS        = $(CXXFLAGS) -DNO_MDL_PRINT -DBPATCH_DLL_BUILD
49
50 # Include the module-specific Makefile, which defines everything about
51 # the module that is common across architectures.
52
53 include ../nmake.module.tmpl
54
55 # Include the "standard library template".  This defines all the
56 # common targets like "clean", "install", etc.
57
58 include ../../nmake.library.tmpl
59
60 # override target rule to force link to happen
61 $(TARGET): $(OBJS)
62         @$(MAKE) $(VOUCHER)
63         $(LD) $(LDFLAGS) -out:$(TARGET) $(VOUCHER).obj $(OBJS) $(LIBS)
64
65 install:        $(TARGET)
66         $(CP) $(TARGET) $(DEST)
67         $(CP) libdyninstAPI.lib $(DEST)
68
69 # DO NOT DELETE