Remove incorrect libelf include path from Makefiles
[dyninst.git] / dyninstAPI / i386-unknown-freebsd7.2 / Makefile
1 #
2 # $Id: Makefile,v 1.41 2008/09/04 21:06:06 bill 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 #AUTO_TEMPLATES= true
11 NO_IMPLICIT_TEMPLATES = true
12 USES_DWARF_DEBUG = true
13 USES_LIBELF = true
14 USES_BOOST = true
15
16 # For debugging.
17 #NO_OPT_FLAG = true
18
19 # Include standard make configuration stuff that applies to everything
20 # in the paradyn tree.
21
22 include ../../make.config 
23
24 # Now make any necessary architecture specific changes to variables:
25
26 SRCS =          ../src/freebsd.C \
27                 ../src/freebsd-x86.C \
28                 ../src/dynamiclinking.C \
29                 ../src/cpuid-x86.S \
30                 ../src/inst-x86.C \
31                 ../src/emit-x86.C \
32                 ../src/codegen-x86.C \
33                 ../src/unix.C \
34                 ../src/stackwalk-x86.C \
35                 ../src/image-x86.C \
36                 ../src/frameChecker.C \
37                 ../src/IAPI_to_AST.C \
38                 ../src/BPatch_memoryAccessAdapter.C \
39                 ../src/RegisterConversion-x86.C
40
41 #MYFLAGS        += -DNO_MDL_PRINT
42 #MYFLAGS        += -DLD_DEBUG
43 #MYFLAGS        += -DATTACH_DETACH_DEBUG
44 #MYFLAGS        += -DPTRACEDEBUG
45 #MYFLAGS        += -DPTRACEDEBUG_EXCESSIVE
46 #MYFLAGS        += -DPTRACEDEBUG_ALWAYS
47 #MYFLAGS        += -DINST_TRAP_DEBUG
48 #MYFLAGS        += -DSIGNAL_DEBUG
49 #MYFLAGS        += -DASTDEBUG
50 #MYFLAGS        += -DINFERIOR_RPC_DEBUG
51 MYFLAGS         += -DUSES_DWARF_DEBUG -I$(LIBDWARF_INC)
52 MYFLAGS         += -I$(LIBELF_INC)
53
54 CXXFLAGS        += $(MYFLAGS)
55 CFLAGS          += $(MYFLAGS)
56 TFLAGS          += $(MYFLAGS)
57 LDFLAGS         += -Wl,-rpath,$(LIBDWARF_LIB)
58
59 # Tradeoff: adding -g to TFLAGS aids gdb but uses gobs of disk space
60 #TFLAGS         += -g
61
62 SYSLIBS         =
63
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 LIBS    += -lgcc -pthread
76
77 # InstructionAPI is x86-only at this point
78 LIBS    += -linstructionAPI
79
80 AS              = /usr/bin/as
81
82 # no support for elf64_XXX() functions
83 CXXFLAGS        += -DUSES_ELF32_ONLY
84 CFLAGS          += -DUSES_ELF32_ONLY
85 TFLAGS          += -DUSES_ELF32_ONLY
86
87 # Add preprocessor and special link information for G++
88 G_PTHREAD       = -pthread
89 G_PTHREAD_LD    = -pthread
90
91 # Include the module-specific Makefile, which defines everything about
92 # the module that is common across architectures.
93
94 include ../make.module.tmpl
95
96 # Include the "standard library template".  This defines all the
97 # common targets like "clean", "install", etc.
98
99 include ../../make.library.tmpl