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.21 2000/03/18 21:53:58 tikir 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 \
17 CFLAGS += $(USEFULWARNINGS) $(DEFINES)
18 CXXFLAGS += $(USEFULWARNINGS) $(DEFINES)
19 TFLAGS += $(TCLFRIENDLYWARNINGS) $(DEFINES)
22 TARGET = libdyninstAPI.a
24 ifdef USES_LIBDYNINST_SO
25 TARGET3_SO = libdyninstAPI.so
26 ### TODO: why can this only be linked with "gcc"?
35 VPATH += ../../dyninstAPI/src:../dyninstAPI/h:\
36 ../../paradynd/src:../../paradyn/h
38 SRCS += ../src/BPatch.C \
39 ../src/BPatch_image.C \
40 ../src/BPatch_function.C \
41 ../src/BPatch_snippet.C \
42 ../src/BPatch_templates.C \
43 ../src/BPatch_thread.C \
44 ../src/BPatch_type.C \
45 ../src/BPatch_init.C \
46 ../src/BPatch_module.C \
47 ../src/BPatch_point.C \
48 ../src/BPatch_collections.C \
49 ../src/BPatch_sourceBlock.C \
50 ../src/BPatch_basicBlock.C \
51 ../src/BPatch_basicBlockLoop.C \
52 ../src/BPatch_flowGraph.C \
55 ../src/api_showerror.C \
62 ../src/sharedobject.C \
63 ../src/LineInformation.C \
65 ../src/templates05.C \
69 SRCS += ../../dyninstAPI/src/pdThread.C \
70 ../../paradynd/src/hashTable.C
73 ifdef USES_SHM_SAMPLING
74 SRCS += ../../paradynd/src/fastInferiorHeap.C \
75 ../../paradynd/src/fastInferiorHeapHKs.C \
76 ../../paradynd/src/fastInferiorHeapMgr.C
77 CXXFLAGS += -DSHM_SAMPLING
78 TFLAGS += -DSHM_SAMPLING
79 CFLAGS += -DSHM_SAMPLING
89 SYSLIBS += -liberty -lg++ -lstdc++ -lm
94 IFLAGS += -I../$(PLATFORM) -I../src -I../h -I../../paradynd/src
96 ifdef USES_LIBDYNINST_SO
102 BPatch_templates.o: ../src/BPatch_templates.C
103 $(CXX) $(TFLAGS) -c ../src/BPatch_templates.C
105 templates0.o: ../src/templates0.C
106 $(CXX) $(TFLAGS) -c ../src/templates0.C
108 templates05.o: ../src/templates05.C
109 $(CXX) $(TFLAGS) -c ../src/templates05.C
111 templates1.o: ../src/templates1.C
112 $(CXX) $(TFLAGS) -c ../src/templates1.C