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.
6 # $Id: make.module.tmpl,v 1.6 1998/04/01 02:23:19 wylie Exp $
11 #BUILD_MARK should be (re-)defined in core/make.config.local rather than here!
13 DEFINES += -UMT_THREAD \
14 -DBPATCH_LIBRARY -DBPATCH_SET_MUTATIONS_ACTIVE
16 CFLAGS += $(TCLFRIENDLYWARNINGS) $(DEFINES)
17 CXXFLAGS += $(TCLFRIENDLYWARNINGS) $(DEFINES)
18 TFLAGS += $(TCLFRIENDLYWARNINGS) $(DEFINES)
20 TARGET = libdyninstAPI.a
22 VPATH += .././.dyninstAPI/src:../dyninstAPI/h:\
23 ../../paradynd/src:../../paradyn/h
25 SRCS += ../src/BPatch.C \
26 ../src/BPatch_image.C \
27 ../src/BPatch_snippet.C \
28 ../src/BPatch_templates.C \
29 ../src/BPatch_thread.C \
30 ../src/BPatch_type.C \
31 ../src/BPatch_init.C \
32 ../src/BPatch_module.C \
33 ../src/BPatch_point.C \
35 ../src/api_showerror.C \
42 ../src/sharedobject.C \
44 ../src/templates05.C \
47 ifdef INCLUDE_PVM_SUPPORT
48 SRCS += ../../paradynd/src/pvm_support.C \
49 ../../paradynd/src/host_support.C \
50 ../../paradynd/src/task_support.C \
51 ../../paradynd/src/templatesPVM.C
53 CXXFLAGS += -DPARADYND_PVM
57 ifdef USES_SHM_SAMPLING
58 SRCS += ../../paradynd/src/fastInferiorHeap.C \
59 ../../paradynd/src/fastInferiorHeapHKs.C \
60 ../../paradynd/src/fastInferiorHeapMgr.C
61 CXXFLAGS += -DSHM_SAMPLING
62 TFLAGS += -DSHM_SAMPLING
63 CFLAGS += -DSHM_SAMPLING
73 SYSLIBS += -liberty -lg++ -lstdc++ -lm
78 IFLAGS += -I../$(PLATFORM) -I../src -I../h -I../../paradynd/src
82 templates0.o: ../src/templates0.C
83 $(CXX) $(TFLAGS) -c ../src/templates0.C
85 templates05.o: ../src/templates05.C
86 $(CXX) $(TFLAGS) -c ../src/templates05.C
88 templates1.o: ../src/templates1.C
89 $(CXX) $(TFLAGS) -c ../src/templates1.C