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