Moved file paths to make.config.local
[dyninst.git] / paradynd / i386-unknown-linux2.4 / Makefile
1 #
2 # $Id: Makefile,v 1.23 2004/06/24 22:27:47 legendre Exp $
3 #
4
5 # Define any symbols needed to invoke configuration changes in make.config
6
7 USES_LIBERTY = true
8 USES_SHM_SAMPLING = true
9 NO_IMPLICIT_TEMPLATES = true
10 USES_DWARF_DEBUG = true
11 USES_LIBELF = true
12 # DEBUG_FLAG = -g
13
14 #If libhrtime is not installed on your computer and you have no interest
15 #  in using it, then comment out the following line (with a #), remove
16 #  the DEPENDS file in this directory, and recompile with make.
17 #If you have libhrtime, but it can't be found, the libhrtime path can 
18 #  be adjusted in ../../make.config.  You'll need to remake DEPENDS if
19 #  this path is adjusted.
20 #USES_LIBHRTIME = true
21 #USES_PAPI = true
22
23 # Include standard make configuration stuff that applies to everything
24 # in the paradyn tree.
25
26 include ../../make.config 
27
28 # Now make any necessary architecture specific changes to variables:
29
30 VPATH        += ../../rtinst/h:../../rtinst/src
31
32 SRCS =          ../../dyninstAPI/src/linux.C \
33                 ../../dyninstAPI/src/linux-x86.C \
34                 ../../dyninstAPI/src/linuxDL.C \
35                 ../../dyninstAPI/src/dynamiclinking.C \
36                 ../src/init-linux.C \
37                 ../../dyninstAPI/src/linuxMT.C \
38                 ../../dyninstAPI/src/inst-linux.C \
39                 ../../paradynd/src/proc-linux.C \
40                 ../../dyninstAPI/src/inst-x86.C \
41                 ../../dyninstAPI/src/arch-x86.C \
42                 ../../dyninstAPI/src/arch-ia32.C \
43                 ../../dyninstAPI/src/parseDwarf.C \
44                 ../../dyninstAPI/src/parseStab.C \
45                 ../../dyninstAPI/src/Object-elf.C \
46                 ../../dyninstAPI/src/func-reloc.C \
47                 ../../dyninstAPI/src/LocalAlteration.C \
48                 ../../dyninstAPI/src/LocalAlteration-x86.C \
49                 ../../dyninstAPI/src/FunctionExpansionRecord.C \
50                 ../../dyninstAPI/src/unix.C  \
51                 ../../rtinst/src/RThwtimer-linux.c \
52                 ../../dyninstAPI/src/InstrucIter-x86.C \
53                 ../../dyninstAPI/src/addLibraryLinux.C \
54                 ../../dyninstAPI/src/writeBackElf.C \
55                 ../../dyninstAPI/src/saveSharedLibrary.C \
56                 ../../dyninstAPI/src/syscall-linux.C
57
58 MYFLAGS         += -DNO_MDL_PRINT
59 MYFLAGS         += -DUSES_DWARF_DEBUG -I$(LIBDWARF_INC)
60 MYFLAGS     += -I$(LIBELF_INC)
61 MYFLAGS         += -I/usr/include/libelf
62
63 SYSLIBS  = -ldl
64 LIBS     = -L$(LIBDWARF_LIB) -L$(LIBELF_LIB)
65 ifdef LIBDWARFSTATIC
66 LIBS    += -Wl,-static -ldwarf -Wl,-call_shared
67 else
68 LIBS    += -ldwarf
69 endif
70 ifdef LIBELFSTATIC
71 LIBS    += -Wl,-static -lelf -Wl,-call_shared
72 else
73 LIBS    += -lelf
74 endif
75
76 AS              = /usr/bin/as
77
78 #MYFLAGS                += -DPDYN_DEBUG
79 #MYFLAGS                += -DATTACH_DETACH_DEBUG -DINFERIOR_RPC_DEBUG
80 #MYFLAGS                += -DPTRACEDEBUG
81 #MYFLAGS                += -DPTRACEDEBUG_EXCESSIVE
82 #MYFLAGS                += -DSIGNAL_DEBUG
83 #MYFLAGS                += -DINST_TRAP_DEBUG
84 #MYFLAGS                += -DLD_DEBUG
85 #MYFLAGS                += -DSAMPLEVALUE_DEBUG
86 #MYFLAGS                += -DAGGREGATE_DEBUG
87
88 CFLAGS          += $(MYFLAGS)
89 CXXFLAGS        += $(MYFLAGS)
90 TFLAGS          += $(MYFLAGS)
91
92 ifdef USES_LIBHRTIME
93 LIBS    += $(HRTIME_LIB)
94 endif
95
96 ifdef USES_PAPI
97 LIBS    += $(PAPI_LIB)
98 endif
99
100 ifdef USES_LIBPERFCTR
101 LIBS    += $(PERFCTR_LIB)
102 endif
103
104 # no support for elf64_XXX() functions
105 CFLAGS          += -DUSES_ELF32_ONLY
106 CXXFLAGS        += -DUSES_ELF32_ONLY
107 TFLAGS          += -DUSES_ELF32_ONLY
108
109 # Include the module-specific Makefile, which defines everything about
110 # the module that is common across architectures.
111
112 include ../make.module.tmpl
113
114 # Include the "standard program template".  This defines all the
115 # common targets like "clean", "install", etc.
116
117 include ../../make.program.tmpl