Add new ppc32_linux platform. - - - - - - - - - - - - - - - - - - - - -
[dyninst.git] / dyninstAPI / ppc32_linux / Makefile
1 #
2 # $Id: Makefile,v 1.1 2007/08/01 18:47:30 ssuen 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 NO_IMPLICIT_TEMPLATES = true
11 USES_DWARF_DEBUG = true
12 USES_LIBELF = true
13 USES_BOOST = true
14
15 # For debugging.
16 #NO_OPT_FLAG = true
17
18 # Include standard make configuration stuff that applies to everything
19 # in the paradyn tree.
20
21 include ../../make.config 
22
23 # Now make any necessary architecture specific changes to variables:
24
25 SRCS =          ../src/linux.C \
26                 ../src/linux-power.C \
27                 ../src/linuxDL.C \
28                 ../src/dynamiclinking.C \
29                 ../src/linuxMT.C \
30                 ../src/inst-linux.C \
31                 ../src/inst-power.C \
32                 ../src/arch-power.C \
33                 ../src/unix.C \
34                 ../src/parseStab.C \
35                 ../src/InstrucIter-power.C \
36                 ../src/addLibraryLinux.C \
37                 ../src/writeBackElf.C \
38                 ../src/saveSharedLibrary.C \
39                 ../src/image-power.C \
40                 ../src/parseDwarf.C \
41                 ../src/syscall-linux.C
42
43 #MYFLAGS        += -DNO_MDL_PRINT
44 #MYFLAGS        += -DLD_DEBUG
45 #MYFLAGS        += -DATTACH_DETACH_DEBUG
46 #MYFLAGS        += -DPTRACEDEBUG
47 #MYFLAGS        += -DPTRACEDEBUG_EXCESSIVE
48 #MYFLAGS        += -DPTRACEDEBUG_ALWAYS
49 #MYFLAGS        += -DINST_TRAP_DEBUG
50 #MYFLAGS        += -DSIGNAL_DEBUG
51 #MYFLAGS        += -DASTDEBUG
52 #MYFLAGS        += -DINFERIOR_RPC_DEBUG
53 MYFLAGS         += -DUSES_DWARF_DEBUG -I$(LIBDWARF_INC)
54 MYFLAGS         += -I$(LIBELF_INC)
55 MYFLAGS         += -I/usr/include/libelf
56
57 CXXFLAGS        += $(MYFLAGS)
58 CFLAGS          += $(MYFLAGS)
59 TFLAGS          += $(MYFLAGS)
60
61 # Tradeoff: adding -g to TFLAGS aids gdb but uses gobs of disk space
62 #TFLAGS         += -g
63
64 SYSLIBS         = -ldl 
65
66 LIBS      +=  -L$(LIBDWARF_LIB) -L$(LIBELF_LIB)
67 ifdef LIBDWARFSTATIC
68 LIBS    += -Wl,-static -ldwarf -Wl,-call_shared
69 else
70 LIBS    += -ldwarf
71 endif
72 ifdef LIBELFSTATIC
73 LIBS    += -Wl,-static -lelf -Wl,-call_shared
74 else
75 LIBS    += -lelf
76 endif
77 LIBS    += -lgcc
78
79 # AS            = /usr/bin/as
80
81 # no support for elf64_XXX() functions
82 # CXXFLAGS      += -DUSES_ELF32_ONLY
83 # CFLAGS        += -DUSES_ELF32_ONLY
84 # TFLAGS        += -DUSES_ELF32_ONLY
85
86 # Add preprocessor and special link information for G++
87 G_PTHREAD       = -pthread
88 G_PTHREAD_LD    = -pthread
89
90 # Include the module-specific Makefile, which defines everything about
91 # the module that is common across architectures.
92
93 include ../make.module.tmpl
94
95 # Include the "standard library template".  This defines all the
96 # common targets like "clean", "install", etc.
97
98 include ../../make.library.tmpl