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