Removal of obsolete PVM remnants.
[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 # $Id: make.module.tmpl,v 1.7 1998/04/03 02:18:31 wylie Exp $
7 #
8
9 SUITE_NAME      = DynInst
10 RELEASE_NUM     = 1.1
11 #BUILD_MARK should be (re-)defined in core/make.config.local rather than here!
12
13 DEFINES              += -UMT_THREAD \
14                         -DBPATCH_LIBRARY -DBPATCH_SET_MUTATIONS_ACTIVE
15
16 CFLAGS               += $(TCLFRIENDLYWARNINGS) $(DEFINES)
17 CXXFLAGS             += $(TCLFRIENDLYWARNINGS) $(DEFINES)
18 TFLAGS               += $(TCLFRIENDLYWARNINGS) $(DEFINES)
19
20 TARGET        = libdyninstAPI.a
21
22 VPATH        += .././.dyninstAPI/src:../dyninstAPI/h:\
23                 ../../paradynd/src:../../paradyn/h
24
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 \
34                 ../src/dummy.C \
35                 ../src/api_showerror.C \
36                 ../src/ast.C \
37                 ../src/inst.C \
38                 ../src/process.C \
39                 ../src/stats.C \
40                 ../src/symtab.C \
41                 ../src/util.C \
42                 ../src/sharedobject.C \
43                 ../src/templates0.C \
44                 ../src/templates05.C \
45                 ../src/templates1.C
46
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
54 endif
55
56 #IGEN_GEN_SRCS = 
57
58 #IGEN_ISRCS    = 
59
60 LIBS            += -lpdutil
61
62 ifdef CROSSCOMPILER
63 SYSLIBS         += -liberty -lg++ -lstdc++ -lm
64 else
65 SYSLIBS         += -liberty
66 endif
67
68 IFLAGS       += -I../$(PLATFORM) -I../src -I../h -I../../paradynd/src
69
70 all:    $(TARGET)
71
72 templates0.o: ../src/templates0.C
73         $(CXX) $(TFLAGS) -c ../src/templates0.C
74
75 templates05.o: ../src/templates05.C
76         $(CXX) $(TFLAGS) -c ../src/templates05.C
77
78 templates1.o: ../src/templates1.C
79         $(CXX) $(TFLAGS) -c ../src/templates1.C