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 # $Log: make.module.tmpl,v $
7 # Revision 1.1 1997/03/18 19:43:26 buck
8 # first commit of dyninst library. Also includes:
9 # moving templates from paradynd to dyninstAPI
10 # converting showError into a function (in showerror.C)
11 # many ifdefs for BPATCH_LIBRARY in dyinstAPI/src.
16 CFLAGS += $(TCLFRIENDLYWARNINGS) -DBPATCH_LIBRARY -UMT_THREAD
17 CXXFLAGS += $(TCLFRIENDLYWARNINGS) -DBPATCH_LIBRARY -UMT_THREAD
18 TFLAGS += $(TCLFRIENDLYWARNINGS)
20 TARGET = libdyninstAPI.a
22 VPATH += .././.dyninstAPI/src:../dyninstAPI/h:\
23 ../../paradynd/src:../../paradyn/h
25 SRCS += ../src/BPatch_image.C \
26 ../src/BPatch_snippet.C \
27 ../src/BPatch_templates.C \
28 ../src/BPatch_thread.C \
29 ../src/BPatch_init.C \
31 ../src/api_showerror.C \
40 ../src/templates05.C \
44 SRCS += ../../paradynd/src/pvm_support.C \
45 ../../paradynd/src/host_support.C \
46 ../../paradynd/src/task_support.C \
47 ../../paradynd/src/templatesPVM.C
49 CXXFLAGS += -DPARADYND_PVM -DPOWER_DEBUG
54 ifdef USES_SHM_SAMPLING
55 SRCS += ../../paradynd/src/fastInferiorHeap.C \
56 ../../paradynd/src/fastInferiorHeapHKs.C \
57 ../../paradynd/src/fastInferiorHeapMgr.C
58 CXXFLAGS += -DSHM_SAMPLING
59 TFLAGS += -DSHM_SAMPLING
60 CFLAGS += -DSHM_SAMPLING
70 SYSLIBS += -liberty -lg++ -lstdc++ -lm
75 IFLAGS += -I../$(PLATFORM) -I../src -I../h -I../../paradynd/src
79 templates0.o: ../src/templates0.C
80 $(CXX) -DBPATCH_LIBRARY $(TFLAGS) -c ../src/templates0.C
82 templates05.o: ../src/templates05.C
83 $(CXX) -DBPATCH_LIBRARY $(TFLAGS) -c ../src/templates05.C
85 templates1.o: ../src/templates1.C
86 $(CXX) -DBPATCH_LIBRARY $(TFLAGS) -c ../src/templates1.C