Copy over of SymEval prototype
[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 = 
34
35 SRCS += ../src/AbslocInterface.C \
36         ../src/SymEval.C \
37         ../src/SymEvalPolicy.C \
38         ../src/convertOpcodes.C \
39         ../src/RoseImpl.C
40
41
42
43 ifndef USES_NATIVE_CC
44 ifdef CROSSCOMPILER
45 SYSLIBS         += -liberty -lg++ -lstdc++ -lm
46 else
47 SYSLIBS         += -liberty
48 endif
49 else
50 SYSLIBS         += -ldemangle
51 endif
52
53
54 IFLAGS       += -I../$(PLATFORM) -I../src -I../h -I../../dynutil/h -I../../symtabAPI/h -I../external -I../../dyninstAPI/h
55
56 DOCDIR  = ../doc
57
58
59 # All that, and we finally get a target...
60 all: $(TARGET) $(EXTRA_LIBS)
61