Build fixes for static linked Dyninst components (compute node linux), when linking...
[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         ../src/x86-wanderer.C
26
27 # Include the module-specific Makefile, which defines everything about
28 # the module that is common across architectures.
29
30 include ../make.module.tmpl
31
32 # Include the "standard library template".  This defines all the
33 # common targets like "clean", "install", etc.
34
35 include ../../make.library.tmpl
36
37 # Now make any necessary architecture specific changes to variables:
38
39 ifdef LIBELF_INC
40 MYFLAGS += -I$(LIBELF_INC)
41 endif
42 ifdef LIBDWARF_INC
43 MYFLAGS += -I$(LIBDWARF_INC)
44 endif
45
46 ifdef LIBELF_LIB
47 LDFLAGS += -L$(LIBELF_LIB) -lelf
48 endif
49 ifdef LIBDWARF_LIB
50 LDFLAGS += -L$(LIBDWARF_LIB) -ldwarf
51 endif
52
53 LIBS    += 
54 CFLAGS  += -fno-omit-frame-pointer -Dcap_sw_catchfaults $(MYFLAGS)
55 CXXFLAGS  += -fno-omit-frame-pointer -Dcap_sw_catchfaults $(MYFLAGS)
56 AS              = as
57
58 # Now make any necessary architecture specific changes to variables:
59 VPATH += ../../common/src