Adding missed files in parseAPI previous commit.
[dyninst.git] / common / 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.40 2008/06/19 22:13:41 jaw Exp $
7 #
8
9 SUITE_NAME      = common 
10 RELEASE_MAJOR   = 7
11 RELEASE_MINOR = 0
12 #BUILD_MARK should be (re-)defined in core/make.config.local rather than here!
13
14 DEFINES              +=  
15
16 CFLAGS               += $(USEFULWARNINGS) $(DEFINES)
17 CXXFLAGS             += $(USEFULWARNINGS) $(DEFINES)
18 TFLAGS               += $(TCLFRIENDLYWARNINGS) $(DEFINES)
19
20 ifdef GCC_2_95
21 # This may cause problems on Alpha
22 # GCC has a new mangled name squisher (-fsquangle) which can be 
23 # set to "on" by default. This causes linker problems, so we
24 # default to "off".
25 CFLAGS          += -fno-squangle
26 CXXFLAGS        += -fno-squangle
27 TFLAGS          += -fno-squangle
28 endif
29
30 ifndef TARGET
31 ifndef STATIC_COMPS
32 TARGET          = libcommon.so
33 else
34 TARGET      = libcommon.a
35 endif
36 endif
37
38 ifndef STATIC_COMPS
39 MYFLAGS += -fPIC
40 endif
41
42 LDFLAGS     += $(LIBDIR)
43 ifndef USES_NATIVE_CC
44 LD              = $(GXX)
45 LDFLAGS         += -shared $(G_PTHREAD_LD)
46 CFLAGS          += 
47 CXXFLAGS        +=  $(G_PTHREAD)
48 else
49 ifeq (solaris,$(findstring solaris,$(PLATFORM)))
50 LDFLAGS         += -G
51 endif #sparc
52 endif #USES_NATIVE
53 TFLAGS          += 
54
55 VPATH        += ../.. common/src dynutil/h
56
57 SRCS         += ../../common/src/Ident.C \
58                 ../../common/src/string-regex.C \
59                 ../../common/src/Timer.C \
60                 ../../common/src/Types.C \
61                 ../../common/src/debugOstream.C \
62                 ../../common/src/lprintf.C \
63                 ../../common/src/pathName.C \
64                 ../../common/src/Time.C \
65                 ../../common/src/fraction.C \
66                 ../../common/src/timing.C \
67                 ../../common/src/stats.C \
68                 ../../common/src/Annotatable.C \
69                 ../../common/src/MappedFile.C \
70                 ../../common/src/sha1.C \
71                 ../../common/src/serialize-bin.C \
72                 ../../common/src/serialize-xml.C \
73                 ../../common/src/util.C \
74                 ../../common/src/Node.C \
75                 ../../common/src/Graph.C \
76                 ../../common/src/Edge.C \
77                 ../../common/src/DOT.C \
78                 ../../common/src/dyn_regs.C \
79                 ../../common/src/AST.C \
80                 ../../common/src/addrtranslate.C \
81                 ../../common/src/arch-x86.C \
82                 ../../common/src/arch-power.C \
83                 ../../common/src/arch-sparc.C
84 #               ../../common/src/Dictionary.C \
85 #               ../../common/src/vectorSet.C \
86
87
88 #IGEN_GEN_SRCS = 
89
90 #IGEN_ISRCS    = 
91
92 LIBS += $(DEMANGLER_LINK)
93
94 IFLAGS       += -I../$(PLATFORM) -I../src -I../h -I../../instructionAPI/h
95
96
97 ifdef LIBXML2_INC
98 IFLAGS       += -I$(LIBXML2_INC)
99 else
100 IFLAGS       += -I/usr/include/libxml2
101 endif
102
103 # All that, and we finally get a target...
104 all: $(TARGET) $(EXTRA_LIBS)