Bugfixes for slicing and general compile fixes for SymEval component
[dyninst.git] / symEval / 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.4 2008/09/15 17:38:17 jaw Exp $
7 #
8
9 SUITE_NAME      = Dyninst
10 RELEASE_NUM     = 5.2
11 #BUILD_MARK should be (re-)defined in core/make.config.local rather than here!
12
13 CFLAGS               += $(USEFULWARNINGS) -I$(TO_CORE)/../include
14 CXXFLAGS             += $(USEFULWARNINGS) -I$(TO_CORE)/../include
15
16 LDFLAGS += -lcommon
17
18 LDFLAGS     += $(LIBDIR)
19 ifndef USES_NATIVE_CC
20 LD              = $(GXX)
21 LDFLAGS         += -shared $(G_PTHREAD_LD)
22 CFLAGS          += -fPIC
23 CXXFLAGS        += -fPIC $(G_PTHREAD)
24 else
25 ifeq (solaris,$(findstring solaris,$(PLATFORM)))
26 LDFLAGS         += -G
27 endif #sparc
28 endif #USES_NATIVE
29
30
31 TO_INC   = ../h
32
33 PUBLIC_H = Absloc.h \
34          AbslocInterface.h \
35          slicing.h
36
37 SRCS += ../src/Absloc.C \
38         ../src/AbslocInterface.C \
39         ../src/SymEval.C \
40         ../src/SymEvalPolicy.C \
41         ../src/convertOpcodes.C \
42         ../src/RoseImpl.C \
43         ../src/slicing.C
44
45
46
47 ifndef USES_NATIVE_CC
48 ifdef CROSSCOMPILER
49 SYSLIBS         += -liberty -lg++ -lstdc++ -lm
50 else
51 SYSLIBS         += -liberty
52 endif
53 else
54 SYSLIBS         += -ldemangle
55 endif
56
57
58 IFLAGS       += -I../$(PLATFORM) -I../src -I../h -I../../dynutil/h -I../../symtabAPI/h -I../external -I../../dyninstAPI/h
59
60 DOCDIR  = ../doc
61
62
63 # All that, and we finally get a target...
64 all: $(TARGET) $(EXTRA_LIBS)
65