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