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.7 1998/04/03 02:18:31 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 USES_SHM_SAMPLING
48 SRCS += ../../paradynd/src/fastInferiorHeap.C \
49 ../../paradynd/src/fastInferiorHeapHKs.C \
50 ../../paradynd/src/fastInferiorHeapMgr.C
51 CXXFLAGS += -DSHM_SAMPLING
52 TFLAGS += -DSHM_SAMPLING
53 CFLAGS += -DSHM_SAMPLING
63 SYSLIBS += -liberty -lg++ -lstdc++ -lm
68 IFLAGS += -I../$(PLATFORM) -I../src -I../h -I../../paradynd/src
72 templates0.o: ../src/templates0.C
73 $(CXX) $(TFLAGS) -c ../src/templates0.C
75 templates05.o: ../src/templates05.C
76 $(CXX) $(TFLAGS) -c ../src/templates05.C
78 templates1.o: ../src/templates1.C
79 $(CXX) $(TFLAGS) -c ../src/templates1.C