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.
6 # $Id: make.module.tmpl,v 1.4 2008/09/15 17:38:17 jaw Exp $
11 #BUILD_MARK should be (re-)defined in core/make.config.local rather than here!
13 CFLAGS += $(USEFULWARNINGS) -I$(TO_CORE)/../include
14 CXXFLAGS += $(USEFULWARNINGS) -I$(TO_CORE)/../include
21 LDFLAGS += -shared $(G_PTHREAD_LD)
23 CXXFLAGS += -fPIC $(G_PTHREAD)
25 ifeq (solaris,$(findstring solaris,$(PLATFORM)))
37 SRCS += ../src/Absloc.C \
38 ../src/AbslocInterface.C \
40 ../src/SymEvalPolicy.C \
41 ../src/convertOpcodes.C \
49 SYSLIBS += -liberty -lg++ -lstdc++ -lm
58 IFLAGS += -I../$(PLATFORM) -I../src -I../h -I../../dynutil/h -I../../symtabAPI/h -I../external -I../../dyninstAPI/h
63 # All that, and we finally get a target...
64 all: $(TARGET) $(EXTRA_LIBS)