fixes for gcc 4
[dyninst.git] / symtabAPI / i386-unknown-linux2.4 / Makefile
1 #
2 # $Id: Makefile,v 1.12 2008/09/15 18:37:49 jaw 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 # Include standard make configuration stuff that applies to everything
18 # in the paradyn tree.
19
20 include ../../make.config 
21
22 # Now make any necessary architecture specific changes to variables:
23
24 SRCS =          ../src/Object-elf.C \
25                 ../src/Archive.C \
26                 ../src/Archive-elf.C \
27                 ../src/parseDwarf.C \
28                 ../src/parseStab.C \
29                 ../src/addrtranslate.C \
30                 ../src/addrtranslate-linux.C \
31                 ../src/addrtranslate-sysv.C \
32                 ../src/emitElf.C
33
34 #MYFLAGS        += -DNO_MDL_PRINT
35 #MYFLAGS        += -DLD_DEBUG
36 #MYFLAGS        += -DATTACH_DETACH_DEBUG
37 #MYFLAGS        += -DPTRACEDEBUG
38 #MYFLAGS        += -DPTRACEDEBUG_EXCESSIVE
39 #MYFLAGS        += -DPTRACEDEBUG_ALWAYS
40 #MYFLAGS        += -DINST_TRAP_DEBUG
41 #MYFLAGS        += -DSIGNAL_DEBUG
42 #MYFLAGS        += -DASTDEBUG
43 #MYFLAGS                += -DINFERIOR_RPC_DEBUG
44 MYFLAGS         += -DUSES_DWARF_DEBUG -I$(LIBDWARF_INC)
45 MYFLAGS         += -I$(LIBELF_INC)
46
47 CXXFLAGS        += $(MYFLAGS)
48 CFLAGS          += $(MYFLAGS)
49 TFLAGS          += $(MYFLAGS)
50
51 # Tradeoff: adding -g to TFLAGS aids gdb but uses gobs of disk space
52 #TFLAGS         += -g
53
54 SYSLIBS         = -ldl 
55
56 LIBS      +=  -L$(LIBDWARF_LIB) -L$(LIBELF_LIB)
57 ifdef LIBDWARFSTATIC
58 LIBS    += -Wl,-static -ldwarf -Wl,-call_shared
59 else
60 LIBS    += -ldwarf
61 endif
62 ifdef LIBELFSTATIC
63 LIBS    += -Wl,-static -lelf -Wl,-call_shared
64 else
65 LIBS    += -lelf
66 endif
67 LIBS    += -lgcc
68
69 LIBS    += -liberty
70
71 AS              = /usr/bin/as
72
73 # no support for elf64_XXX() functions
74 CXXFLAGS        += -DUSES_ELF32_ONLY
75 CFLAGS          += -DUSES_ELF32_ONLY
76 TFLAGS          += -DUSES_ELF32_ONLY
77
78 # Add preprocessor and special link information for G++
79 G_PTHREAD       = -pthread
80 G_PTHREAD_LD    = -pthread
81
82 # Include the module-specific Makefile, which defines everything about
83 # the module that is common across architectures.
84
85 include ../make.module.tmpl
86
87 # Include the "standard library template".  This defines all the
88 # common targets like "clean", "install", etc.
89
90 include ../../make.library.tmpl