Added features to dyninstAPI library, including the ability to delete
[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
9 CXXFLAGS             += $(TCLFRIENDLYWARNINGS) -DBPATCH_LIBRARY -UMT_THREAD
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/dummy.C \
25                 ../src/api_showerror.C \
26                 ../src/ast.C \
27                 ../src/inst.C \
28                 ../src/process.C \
29                 ../src/process2.C \
30                 ../src/stats.C \
31                 ../src/symtab.C \
32                 ../src/util.C \
33                 ../src/templates0.C \
34                 ../src/templates05.C \
35                 ../src/templates1.C \
36
37 ifdef USES_PVM
38 SRCS         += ../../paradynd/src/pvm_support.C \
39                 ../../paradynd/src/host_support.C \
40                 ../../paradynd/src/task_support.C \
41                 ../../paradynd/src/templatesPVM.C
42
43 CXXFLAGS        += -DPARADYND_PVM -DPOWER_DEBUG
44 LIBS            += -lpvm3
45
46 endif
47
48 ifdef USES_SHM_SAMPLING
49 SRCS            += ../../paradynd/src/fastInferiorHeap.C \
50                    ../../paradynd/src/fastInferiorHeapHKs.C \
51                    ../../paradynd/src/fastInferiorHeapMgr.C
52 CXXFLAGS        += -DSHM_SAMPLING
53 TFLAGS          += -DSHM_SAMPLING
54 CFLAGS          += -DSHM_SAMPLING
55 endif
56
57 IGEN_GEN_SRCS = 
58
59 IGEN_ISRCS    = 
60
61 LIBS            += -lpdutil
62
63 ifdef CROSSCOMPILER
64 SYSLIBS         += -liberty -lg++ -lstdc++ -lm
65 else
66 SYSLIBS         += -liberty
67 endif
68
69 IFLAGS       += -I../$(PLATFORM) -I../src -I../h -I../../paradynd/src
70
71 all:    $(TARGET)
72
73 templates0.o: ../src/templates0.C
74         $(CXX) -DBPATCH_LIBRARY $(TFLAGS) -c ../src/templates0.C
75
76 templates05.o: ../src/templates05.C
77         $(CXX) -DBPATCH_LIBRARY $(TFLAGS) -c ../src/templates05.C
78
79 templates1.o: ../src/templates1.C
80         $(CXX) -DBPATCH_LIBRARY $(TFLAGS) -c ../src/templates1.C