Incorporation of new src/templates-nt.C to satisfy VC++ v5.0 linker's
[dyninst.git] / dyninstAPI / make.module.tmpl
1
2 # Common makefile template for the 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 #
7
8 CFLAGS               += $(TCLFRIENDLYWARNINGS) -DBPATCH_LIBRARY -UMT_THREAD -DBPATCH_SET_MUTATIONS_ACTIVE
9 CXXFLAGS             += $(TCLFRIENDLYWARNINGS) -DBPATCH_LIBRARY -UMT_THREAD -DBPATCH_SET_MUTATIONS_ACTIVE
10 TFLAGS               += $(TCLFRIENDLYWARNINGS)
11
12 TARGET        = libdyninstAPI.a
13
14 VPATH        += .././.dyninstAPI/src:../dyninstAPI/h:\
15                 ../../paradynd/src:../../paradyn/h
16
17 SRCS         += ../src/BPatch.C \
18                 ../src/BPatch_image.C \
19                 ../src/BPatch_snippet.C \
20                 ../src/BPatch_templates.C \
21                 ../src/BPatch_thread.C \
22                 ../src/BPatch_type.C \
23                 ../src/BPatch_init.C \
24                 ../src/BPatch_module.C \
25                 ../src/BPatch_point.C \
26                 ../src/dummy.C \
27                 ../src/api_showerror.C \
28                 ../src/ast.C \
29                 ../src/inst.C \
30                 ../src/process.C \
31                 ../src/stats.C \
32                 ../src/symtab.C \
33                 ../src/util.C \
34                 ../src/sharedobject.C \
35                 ../src/templates0.C \
36                 ../src/templates05.C \
37                 ../src/templates1.C \
38
39 ifdef USES_PVM
40 SRCS         += ../../paradynd/src/pvm_support.C \
41                 ../../paradynd/src/host_support.C \
42                 ../../paradynd/src/task_support.C \
43                 ../../paradynd/src/templatesPVM.C
44
45 CXXFLAGS        += -DPARADYND_PVM -DPOWER_DEBUG
46 LIBS            += -lpvm3
47
48 endif
49
50 ifdef USES_SHM_SAMPLING
51 SRCS            += ../../paradynd/src/fastInferiorHeap.C \
52                    ../../paradynd/src/fastInferiorHeapHKs.C \
53                    ../../paradynd/src/fastInferiorHeapMgr.C
54 CXXFLAGS        += -DSHM_SAMPLING
55 TFLAGS          += -DSHM_SAMPLING
56 CFLAGS          += -DSHM_SAMPLING
57 endif
58
59 #IGEN_GEN_SRCS = 
60
61 #IGEN_ISRCS    = 
62
63 LIBS            += -lpdutil
64
65 ifdef CROSSCOMPILER
66 SYSLIBS         += -liberty -lg++ -lstdc++ -lm
67 else
68 SYSLIBS         += -liberty
69 endif
70
71 IFLAGS       += -I../$(PLATFORM) -I../src -I../h -I../../paradynd/src
72
73 all:    $(TARGET)
74
75 templates0.o: ../src/templates0.C
76         $(CXX) -DBPATCH_LIBRARY $(TFLAGS) -c ../src/templates0.C
77
78 templates05.o: ../src/templates05.C
79         $(CXX) -DBPATCH_LIBRARY $(TFLAGS) -c ../src/templates05.C
80
81 templates1.o: ../src/templates1.C
82         $(CXX) -DBPATCH_LIBRARY $(TFLAGS) -c ../src/templates1.C