first commit of dyninst library. Also includes:
[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 # $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.
12 #
13 #
14 #
15
16 CFLAGS               += $(TCLFRIENDLYWARNINGS) -DBPATCH_LIBRARY -UMT_THREAD
17 CXXFLAGS             += $(TCLFRIENDLYWARNINGS) -DBPATCH_LIBRARY -UMT_THREAD
18 TFLAGS               += $(TCLFRIENDLYWARNINGS)
19
20 TARGET        = libdyninstAPI.a
21
22 VPATH        += .././.dyninstAPI/src:../dyninstAPI/h:\
23                 ../../paradynd/src:../../paradyn/h
24
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 \
30                 ../src/dummy.C \
31                 ../src/api_showerror.C \
32                 ../src/ast.C \
33                 ../src/inst.C \
34                 ../src/process.C \
35                 ../src/process2.C \
36                 ../src/stats.C \
37                 ../src/symtab.C \
38                 ../src/util.C \
39                 ../src/templates0.C \
40                 ../src/templates05.C \
41                 ../src/templates1.C \
42
43 ifdef USES_PVM
44 SRCS         += ../../paradynd/src/pvm_support.C \
45                 ../../paradynd/src/host_support.C \
46                 ../../paradynd/src/task_support.C \
47                 ../../paradynd/src/templatesPVM.C
48
49 CXXFLAGS        += -DPARADYND_PVM -DPOWER_DEBUG
50 LIBS            += -lpvm3
51
52 endif
53
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
61 endif
62
63 IGEN_GEN_SRCS = 
64
65 IGEN_ISRCS    = 
66
67 LIBS            += -lpdutil
68
69 ifdef CROSSCOMPILER
70 SYSLIBS         += -liberty -lg++ -lstdc++ -lm
71 else
72 SYSLIBS         += -liberty
73 endif
74
75 IFLAGS       += -I../$(PLATFORM) -I../src -I../h -I../../paradynd/src
76
77 all:    $(TARGET)
78
79 templates0.o: ../src/templates0.C
80         $(CXX) -DBPATCH_LIBRARY $(TFLAGS) -c ../src/templates0.C
81
82 templates05.o: ../src/templates05.C
83         $(CXX) -DBPATCH_LIBRARY $(TFLAGS) -c ../src/templates05.C
84
85 templates1.o: ../src/templates1.C
86         $(CXX) -DBPATCH_LIBRARY $(TFLAGS) -c ../src/templates1.C