Moved file paths to make.config.local
[dyninst.git] / dyninstAPI / i386-unknown-linux2.4 / Makefile
1 #
2 # $Id: Makefile,v 1.23 2004/06/24 22:27:43 legendre 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/linux.C \
25                 ../src/linux-x86.C \
26                 ../src/linuxDL.C \
27                 ../src/dynamiclinking.C \
28                 ../src/linuxMT.C \
29                 ../src/inst-linux.C \
30                 ../src/inst-x86.C \
31                 ../src/arch-x86.C \
32                 ../src/arch-ia32.C \
33                 ../src/Object-elf.C \
34                 ../src/unix.C \
35                 ../src/parseStab.C \
36                 ../src/InstrucIter-x86.C \
37                 ../src/func-reloc.C \
38                 ../src/LocalAlteration.C \
39                 ../src/LocalAlteration-x86.C \
40                 ../src/FunctionExpansionRecord.C \
41                 ../src/addLibraryLinux.C \
42                 ../src/writeBackElf.C \
43                 ../src/saveSharedLibrary.C \
44                 ../src/parseDwarf.C \
45                 ../../common/src/linuxKludges.C \
46                 ../../common/src/timing-linux.C \
47                 ../src/syscall-linux.C
48
49 #MYFLAGS        += -DNO_MDL_PRINT
50 #MYFLAGS        += -DLD_DEBUG
51 #MYFLAGS        += -DATTACH_DETACH_DEBUG
52 #MYFLAGS        += -DPTRACEDEBUG
53 #MYFLAGS        += -DPTRACEDEBUG_EXCESSIVE
54 #MYFLAGS        += -DPTRACEDEBUG_ALWAYS
55 #MYFLAGS        += -DINST_TRAP_DEBUG
56 #MYFLAGS        += -DSIGNAL_DEBUG
57 #MYFLAGS        += -DASTDEBUG
58 #MYFLAGS        += -DINFERIOR_RPC_DEBUG
59 MYFLAGS         += -DUSES_DWARF_DEBUG -I$(LIBDWARF_INC)
60 MYFLAGS     += -I$(LIBELF_INC) 
61 MYFLAGS         += -I/usr/include/libelf
62
63 CXXFLAGS        += $(MYFLAGS)
64 CFLAGS          += $(MYFLAGS)
65 TFLAGS          += $(MYFLAGS)
66
67 # Tradeoff: adding -g to TFLAGS aids gdb but uses gobs of disk space
68 #TFLAGS         += -g
69
70 SYSLIBS         = -ldl 
71
72 LIBS      +=  -L$(LIBDWARF_LIB) -L$(LIBELF_LIB)
73 ifdef LIBDWARFSTATIC
74 LIBS    += -Wl,-static -ldwarf -Wl,-call_shared
75 else
76 LIBS    += -ldwarf
77 endif
78 ifdef LIBELFSTATIC
79 LIBS    += -Wl,-static -lelf -Wl,-call_shared
80 else
81 LIBS    += -lelf
82 endif
83 LIBS    += -lgcc
84
85 AS              = /usr/bin/as
86
87 # no support for elf64_XXX() functions
88 CXXFLAGS        += -DUSES_ELF32_ONLY
89 CFLAGS          += -DUSES_ELF32_ONLY
90 TFLAGS          += -DUSES_ELF32_ONLY
91
92 # Include the module-specific Makefile, which defines everything about
93 # the module that is common across architectures.
94
95 include ../make.module.tmpl
96
97 # Include the "standard library template".  This defines all the
98 # common targets like "clean", "install", etc.
99
100 include ../../make.library.tmpl