2 # $Id: Makefile,v 1.5 2004/06/24 22:27:48 legendre Exp $
5 # Define any symbols needed to invoke configuration changes in make.config
9 USES_SHM_SAMPLING = true
10 NO_IMPLICIT_TEMPLATES = true
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
22 # Include standard make configuration stuff that applies to everything
23 # in the paradyn tree.
25 include ../../make.config
27 # Now make any necessary architecture specific changes to variables:
29 VPATH += ../../rtinst/h:../../rtinst/src
31 SRCS = ../../dyninstAPI/src/linux.C \
32 ../../dyninstAPI/src/linuxDL.C \
33 ../../dyninstAPI/src/dynamiclinking.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
46 MYFLAGS += -I$(LIBELF_INC) -I/usr/include/libelf
47 MYFLAGS += -DNO_MDL_PRINT
50 LIBS = -L$(LIBELF_LIB)
52 LIBS += -Wl,-static -lelf -Wl,-call_shared
57 #SYSLIBS = -lsocket -lnsl
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
72 CXXFLAGS += $(MYFLAGS)
79 # no support for elf64_XXX() functions
80 CFLAGS += -DUSES_ELF32_ONLY
81 CXXFLAGS += -DUSES_ELF32_ONLY
82 TFLAGS += -DUSES_ELF32_ONLY
84 # Include the module-specific Makefile, which defines everything about
85 # the module that is common across architectures.
87 include ../make.module.tmpl
89 # Include the "standard program template". This defines all the
90 # common targets like "clean", "install", etc.
92 include ../../make.program.tmpl