Moved file paths to make.config.local
[dyninst.git] / dyninstAPI / ia64-unknown-linux2.4 / Makefile
1 #
2 # $Id: Makefile,v 1.18 2004/06/24 22:27:44 legendre Exp $
3 #
4
5 # Define any symbols needed to invoke configuration changes in make.config
6
7 #DEBUG_FLAG = -g
8 NO_IMPLICIT_TEMPLATES = true
9 USES_DWARF_DEBUG = true
10 USES_UNWIND_LIB = true
11 USES_LIBELF = true
12
13 # Turns off optimization, and enables debugging.
14 # NO_OPT_FLAG = true
15
16 # Include standard make configuration stuff that applies to everything
17 # in the paradyn tree.
18 include ../../make.config 
19
20 # Now make any necessary architecture specific changes to variables:
21
22 SRCS =  ../src/linux.C \
23                 ../src/linux-ia64.C \
24                 ../src/linuxDL.C \
25                 ../src/dynamiclinking.C \
26                 ../src/linuxMT.C \
27                 ../src/inst-linux.C \
28                 ../src/inst-ia64.C \
29                 ../src/arch-ia64.C \
30                 ../src/Object-elf.C \
31                 ../src/unix.C \
32                 ../src/parseStab.C \
33                 ../src/func-reloc.C \
34                 ../src/LocalAlteration.C \
35                 ../src/LocalAlteration-ia64.C \
36                 ../src/FunctionExpansionRecord.C \
37                 ../src/addLibraryLinux.C \
38                 ../src/InstrucIter-ia64.C \
39                 ../src/parseDwarf.C \
40                 ../../common/src/linuxKludges.C \
41                 ../../common/src/timing-linux.C \
42                 ../src/ia64-template.s  \
43                 ../src/syscall-linux.C
44
45 MYFLAGS         +=  -DUSES_DWARF_DEBUG -I$(LIBDWARF_INC) \
46                            -I$(LIBUNWIND_INC) -I$(LIBELF_INC) \
47             -I/usr/include/libelf
48
49 CXXFLAGS        += $(MYFLAGS)
50 CFLAGS          += $(MYFLAGS)
51 TFLAGS          += $(MYFLAGS)
52
53 # Tradeoff: adding -g to TFLAGS aids gdb but uses gobs of disk space
54 #TFLAGS           += -g
55
56 SYSLIBS         = -ldl
57
58 LIBS            = -L$(LIBDWARF_LIB) -L$(LIBELF_LIB)
59 ifdef LIBDWARFSTATIC
60 LIBS    += -Wl,-Bstatic -ldwarf -Wl,-Bdynamic
61 else
62 LIBS    += -ldwarf
63 endif
64 ifdef LIBELFSTATIC
65 LIBS    += -Wl,-Bstatic -lelf -Wl,-Bdynamic
66 else
67 LIBS    += -lelf
68 endif
69 LIBS    += -L$(LIBUNWIND_LIB) -Wl,-Bstatic -lunwind -Wl,-Bdynamic
70
71 AS              = /usr/bin/as
72
73 # Include the module-specific Makefile, which defines everything about
74 # the module that is common across architectures.
75
76 include ../make.module.tmpl
77
78 # Include the "standard library template".  This defines all the
79 # common targets like "clean", "install", etc.
80
81 include ../../make.library.tmpl