Support for wrapping C++ in C
[dyninst.git] / symtabAPI / x86_64-unknown-linux2.4 / 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 NO_IMPLICIT_TEMPLATES = true
8 USES_DWARF_DEBUG = true
9 USES_LIBELF = true
10
11 # Include standard make configuration stuff that applies to everything
12 # in the paradyn tree.
13
14 include ../../make.config 
15
16 # Now make any necessary architecture specific changes to variables:
17
18 SRCS =          ../src/Object-elf.C \
19                                 ../src/Archive.C \
20                                 ../src/Archive-elf.C\
21                 ../src/parseDwarf.C \
22                 ../src/parseStab.C \
23                 ../src/emitElf.C \
24                 ../src/emitElf-64.C \
25                 ../src/LinkMap.C \
26                 ../src/emitElfStatic.C \
27                 ../src/emitElfStatic-linux-x86.C \
28                 ../src/relocationEntry-elf-x86.C
29
30
31 #MYFLAGS        += -DNO_MDL_PRINT
32 #MYFLAGS        += -DLD_DEBUG
33 #MYFLAGS        += -DATTACH_DETACH_DEBUG
34 #MYFLAGS        += -DPTRACEDEBUG
35 #MYFLAGS        += -DPTRACEDEBUG_EXCESSIVE
36 #MYFLAGS        += -DPTRACEDEBUG_ALWAYS
37 #MYFLAGS        += -DINST_TRAP_DEBUG
38 #MYFLAGS        += -DSIGNAL_DEBUG
39 #MYFLAGS        += -DASTDEBUG
40 #MYFLAGS        += -DINFERIOR_RPC_DEBUG
41 MYFLAGS         += -DUSES_DWARF_DEBUG -I$(LIBDWARF_INC)
42 MYFLAGS     += -I$(LIBELF_INC) 
43 MYFLAGS         += -I/usr/include/libelf
44
45 CXXFLAGS        += $(MYFLAGS)
46 CFLAGS          += $(MYFLAGS)
47 TFLAGS          += $(MYFLAGS)
48
49 # Tradeoff: adding -g to TFLAGS aids gdb but uses gobs of disk space
50 #TFLAGS         += -g
51
52 SYSLIBS         = -ldl 
53
54 LIBS      +=  -L$(LIBDWARF_LIB) -L$(LIBELF_LIB)
55 ifndef LIBDWARF_STATIC
56 LIBS += -ldwarf
57 endif
58 ifndef LIBELF_STATIC
59 LIBS += -lelf
60 endif
61 ifndef LIBIBERTY_STATIC
62 LIBS    += -liberty
63 endif
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