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