If we don't have libelf, fall back to heavyweight Symtab for analysis stepper's parsing.
[dyninst.git] / stackwalk / ppc64_bgq_ion / Makefile
1 #
2 # $Id: Makefile,v 1.1 2008/06/30 19:40:37 legendre Exp $
3 #
4
5 # Define any symbols needed to invoke configuration changes in make.config
6
7 NO_IMPLICIT_TEMPLATES = true
8
9 # Include standard make configuration stuff that applies to everything
10 # in the paradyn tree.
11
12 include ../../make.config 
13
14 # Now make any necessary architecture specific changes to variables:
15
16 LDFLAGS     += $(LIBDIR) -lcommon -ldl
17 CXXFLAGS    += -I/bgsys/drivers/ppcfloor/arch/include
18
19 SRCS =         ../../common/src/Elf_X.C \
20                ../src/ppc-swk.C \
21                ../src/symtab-swk.C \
22                                         ../src/linuxbsd-swk.C \
23                                         ../src/bluegeneq-swk.C
24
25 #STATIC_COMPS = true
26
27 ifdef LIBELF_INC
28 MYFLAGS += -I$(LIBELF_INC)
29 endif
30
31 LIBS   +=
32 CFLAGS  += $(MYFLAGS)
33 CXXFLAGS += $(MYFLAGS)
34 AS             = as
35
36 ifdef LIBELF_INC
37 MYFLAGS += -I$(LIBELF_INC)
38 endif
39 ifdef LIBELF_LIB
40 LDFLAGS += -L$(LIBELF_LIB) -lelf
41 else
42 LDFLAGS += -lelf
43 endif
44
45 # Include the module-specific Makefile, which defines everything about
46 # the module that is common across architectures.
47
48 include ../make.module.tmpl
49
50 # Include the "standard library template".  This defines all the
51 # common targets like "clean", "install", etc.
52
53 include ../../make.library.tmpl
54
55 # Now make any necessary architecture specific changes to variables:
56 VPATH += ../../common/src