Fix StackwalkerAPI on Cray build
[dyninst.git] / stackwalk / x86_64_cnl / Makefile
1 #
2 # $Id: Makefile,v 1.1 2008/06/30 19:40:57 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 STATIC_COMPS = true
13
14 include ../../make.config 
15
16 TARGET = libstackwalk.a
17
18 LDFLAGS     += $(LIBDIR) -lcommon
19
20 SRCS =  ../src/linux-swk.C \
21         ../src/linux-x86-swk.C \
22         ../src/x86-swk.C \
23         ../src/symtab-swk.C \
24         ../src/dbginfo-stepper.C \
25         ../../common/src/Elf_X.C \
26         ../src/x86-wanderer.C
27
28 # Include the module-specific Makefile, which defines everything about
29 # the module that is common across architectures.
30
31 include ../make.module.tmpl
32
33 # Include the "standard library template".  This defines all the
34 # common targets like "clean", "install", etc.
35
36 include ../../make.library.tmpl
37
38 # Now make any necessary architecture specific changes to variables:
39
40 ifdef LIBELF_INC
41 MYFLAGS += -I$(LIBELF_INC)
42 endif
43 ifdef LIBDWARF_INC
44 MYFLAGS += -I$(LIBDWARF_INC)
45 endif
46
47 ifdef LIBELF_LIB
48 LDFLAGS += -L$(LIBELF_LIB) -lelf
49 endif
50 ifdef LIBDWARF_LIB
51 LDFLAGS += -L$(LIBDWARF_LIB) -ldwarf
52 endif
53
54 LIBS    += 
55 CFLAGS  += -fno-omit-frame-pointer -Dcap_sw_catchfaults $(MYFLAGS)
56 CXXFLAGS  += -fno-omit-frame-pointer -Dcap_sw_catchfaults $(MYFLAGS)
57 AS              = as
58
59 # Now make any necessary architecture specific changes to variables:
60 VPATH += ../../common/src