Fixes for StackwalkerAPI on BlueGene
[dyninst.git] / symtabAPI / x86_64_cnl / Makefile
1 #
2 # $Id: Makefile,v 1.8 2008/05/27 20:44:58 giri Exp $
3 #
4
5 # Define any symbols needed to invoke configuration changes in make.config
6
7 #USES_SHM_SAMPLING = true
8 #USES_PAPI = true
9 #DEBUG_FLAG = -g
10 NO_IMPLICIT_TEMPLATES = true
11 USES_DWARF_DEBUG = true
12 USES_LIBELF = true
13
14 # For debugging.
15 NO_OPT_FLAG = true
16
17 STATIC_COMPS = true
18
19 # Include standard make configuration stuff that applies to everything
20 # in the paradyn tree.
21
22 include ../../make.config 
23
24 # Now make any necessary architecture specific changes to variables:
25
26 SRCS =          ../src/Object-elf.C \
27                                 ../src/Archive.C \
28                                 ../src/Archive-elf.C\
29                 ../src/parseDwarf.C \
30                 ../src/parseStab.C \
31                 ../src/emitElf.C \
32                 ../src/emitElf-64.C \
33                 ../src/emitElfStatic.C \
34                 ../src/emitElfStatic-stub.C \
35                 ../src/LinkMap.C \
36                 ../src/relocationEntry-elf-x86.C
37
38
39 #MYFLAGS        += -DNO_MDL_PRINT
40 #MYFLAGS        += -DLD_DEBUG
41 #MYFLAGS        += -DATTACH_DETACH_DEBUG
42 #MYFLAGS        += -DPTRACEDEBUG
43 #MYFLAGS        += -DPTRACEDEBUG_EXCESSIVE
44 #MYFLAGS        += -DPTRACEDEBUG_ALWAYS
45 #MYFLAGS        += -DINST_TRAP_DEBUG
46 #MYFLAGS        += -DSIGNAL_DEBUG
47 #MYFLAGS        += -DASTDEBUG
48 #MYFLAGS        += -DINFERIOR_RPC_DEBUG
49 MYFLAGS         += -DUSES_DWARF_DEBUG -I$(LIBDWARF_INC)
50 MYFLAGS     += -I$(LIBELF_INC) 
51 MYFLAGS         += -I/usr/include/libelf
52
53 CXXFLAGS        += $(MYFLAGS)
54 CFLAGS          += $(MYFLAGS)
55 TFLAGS          += $(MYFLAGS)
56
57 # Tradeoff: adding -g to TFLAGS aids gdb but uses gobs of disk space
58 #TFLAGS         += -g
59
60 LIBS      +=  -L$(LIBDWARF_LIB) -L$(LIBELF_LIB)
61 LIBS += -ldwarf
62 LIBS += -lelf
63 LIBS    += -liberty
64
65 AS              = /usr/bin/as
66
67 # Add preprocessor and special link information for G++
68 G_PTHREAD       = -pthread
69
70 # Include the module-specific Makefile, which defines everything about
71 # the module that is common across architectures.
72
73 include ../make.module.tmpl
74
75 # Include the "standard library template".  This defines all the
76 # common targets like "clean", "install", etc.
77
78 include ../../make.library.tmpl