Updates for StackwalkerAPI
[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/addrtranslate.C \
34                 ../src/addrtranslate-linux.C \
35                 ../src/addrtranslate-sysv.C
36
37
38 #MYFLAGS        += -DNO_MDL_PRINT
39 #MYFLAGS        += -DLD_DEBUG
40 #MYFLAGS        += -DATTACH_DETACH_DEBUG
41 #MYFLAGS        += -DPTRACEDEBUG
42 #MYFLAGS        += -DPTRACEDEBUG_EXCESSIVE
43 #MYFLAGS        += -DPTRACEDEBUG_ALWAYS
44 #MYFLAGS        += -DINST_TRAP_DEBUG
45 #MYFLAGS        += -DSIGNAL_DEBUG
46 #MYFLAGS        += -DASTDEBUG
47 #MYFLAGS        += -DINFERIOR_RPC_DEBUG
48 MYFLAGS         += -DUSES_DWARF_DEBUG -I$(LIBDWARF_INC)
49 MYFLAGS     += -I$(LIBELF_INC) 
50 MYFLAGS         += -I/usr/include/libelf
51
52 CXXFLAGS        += $(MYFLAGS)
53 CFLAGS          += $(MYFLAGS)
54 TFLAGS          += $(MYFLAGS)
55
56 # Tradeoff: adding -g to TFLAGS aids gdb but uses gobs of disk space
57 #TFLAGS         += -g
58
59 SYSLIBS         = -ldl 
60
61 LIBS      +=  -L$(LIBDWARF_LIB) -L$(LIBELF_LIB)
62 ifdef LIBDWARFSTATIC
63 LIBS    += -Wl,-static -ldwarf -Wl,-call_shared
64 else
65 LIBS    += -ldwarf
66 endif
67 ifdef LIBELFSTATIC
68 LIBS    += -Wl,-static -lelf -Wl,-call_shared
69 else
70 LIBS    += -lelf
71 endif
72 LIBS    += -lgcc
73
74 AS              = /usr/bin/as
75
76 # Add preprocessor and special link information for G++
77 G_PTHREAD       = -pthread
78
79 # Include the module-specific Makefile, which defines everything about
80 # the module that is common across architectures.
81
82 include ../make.module.tmpl
83
84 # Include the "standard library template".  This defines all the
85 # common targets like "clean", "install", etc.
86
87 include ../../make.library.tmpl