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