fixing stuff
[dyninst.git] / dyninstAPI / i386-unknown-nt4.0 / Makefile
1 #
2 # $Id: Makefile,v 1.31 2006/04/04 17:33:49 rutar 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/cpuid-x86.S \
23                 ../src/inst-x86.C \
24                 ../src/emit-x86.C \
25                 ../src/codegen-x86.C \
26                 ../src/syscall-nt.C \
27                 ../src/pdwinntDL.C \
28                 ../src/dynamiclinking.C \
29                 ../src/RegisterConversion-x86.C \
30                 ../src/BPatch_memoryAccessAdapter.C \
31                 ../src/IA_IAPI.C \
32                 ../src/IAPI_to_AST.C \
33                 ../src/image-x86.C
34 #               ../src/MapSymbols.C 
35 # ccw 13 july 2001
36
37 OBJS =          pdwinnt.obj \
38                 inst-winnt.obj \
39                 inst-x86.obj \
40                 codegen-x86.obj \
41                 emit-x86.obj \
42                 codeRange.obj \
43                 syscall-nt.obj \
44                 pdwinntDL.obj \
45                 dynamiclinking.obj \
46                 RegisterConversion-x86.obj \
47                 BPatch_memoryAccessAdapter.obj \
48                 IA_IAPI.obj \
49                 IAPI_to_AST.obj \
50                 image-x86.obj
51
52 #               MapSymbols.obj 
53 # ccw 13 july 2001
54
55 LIBS            = dbghelp.lib advapi32.lib psapi.lib ws2_32.lib
56
57 CXXFLAGS        = $(CXXFLAGS) -DNO_MDL_PRINT -DBPATCH_DLL_BUILD
58
59 # Include the module-specific Makefile, which defines everything about
60 # the module that is common across architectures.
61
62 include ../nmake.module.tmpl
63
64 # Include the "standard library template".  This defines all the
65 # common targets like "clean", "install", etc.
66
67 include ../../nmake.library.tmpl
68
69 # override target rule to force link to happen
70 $(TARGET): $(OBJS)
71         @$(MAKE) $(VOUCHER)
72         $(LD) $(LDFLAGS) -out:$(TARGET) $(VOUCHER).obj $(OBJS) $(LIBS)
73
74 install:        $(TARGET)
75         $(CP) $(TARGET) $(DEST)
76         $(CP) libdyninstAPI.lib $(DEST)
77
78 # DO NOT DELETE