Add libdynDwarf, libdynElf, and libsymLite. Removes multiple copies of Elf_X and...
[dyninst.git] / dwarf / 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      = dynDwarf 
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 USES_DWARF_DEBUG = true
17 USES_LIBELF = true
18
19 CFLAGS               += $(USEFULWARNINGS) $(DEFINES)
20 CXXFLAGS             += $(USEFULWARNINGS) $(DEFINES)
21 TFLAGS               += $(TCLFRIENDLYWARNINGS) $(DEFINES)
22
23 ifdef GCC_2_95
24 # This may cause problems on Alpha
25 # GCC has a new mangled name squisher (-fsquangle) which can be 
26 # set to "on" by default. This causes linker problems, so we
27 # default to "off".
28 CFLAGS          += -fno-squangle
29 CXXFLAGS        += -fno-squangle
30 TFLAGS          += -fno-squangle
31 endif
32
33 ifndef TARGET
34 ifndef STATIC_COMPS
35 TARGET          = libdynDwarf.so
36 else
37 TARGET      = libdynDwarf.a
38 endif
39 endif
40
41 MYFLAGS += -DlibdynDwarf
42
43 LDFLAGS     += $(LIBDIR)
44 LD              = $(GXX)
45 LDFLAGS         += -shared $(G_PTHREAD_LD)
46 CFLAGS          += 
47 CXXFLAGS        +=  $(G_PTHREAD)
48 TFLAGS          += 
49
50
51 SRCS         += ../src/dwarfResult.C \
52                 ../src/dwarfExprParser.C \
53                 ../src/dwarfFrameParser.C
54
55 TO_INC          = ../h
56 PUBLIC_H        = dwarfResult.h \
57                   dwarfExprParser.h \
58                   dwarfFrameParser.h
59
60 IFLAGS       += -I../$(PLATFORM) -I../src -I../h