Adding new platform:ppc32_bgp
[dyninst.git] / symtabAPI / ppc32_bgp / Makefile
1 #
2 # $Id: Makefile,v 1.6 2008/05/27 20:44:52 giri 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                 ../src/Archive.C \
26                 ../src/Archive-elf.C \
27                 ../src/parseDwarf.C \
28                 ../src/parseStab.C \
29                 ../src/LinkMap.C \
30                 ../src/emitElf.C \
31                 ../src/emitElfStatic.C \
32                 ../src/emitElfStatic-stub.C \
33                 ../src/relocationEntry-elf-ppc32.C
34
35 #MYFLAGS        += -DNO_MDL_PRINT
36 #MYFLAGS        += -DLD_DEBUG
37 #MYFLAGS        += -DATTACH_DETACH_DEBUG
38 #MYFLAGS        += -DPTRACEDEBUG
39 #MYFLAGS        += -DPTRACEDEBUG_EXCESSIVE
40 #MYFLAGS        += -DPTRACEDEBUG_ALWAYS
41 #MYFLAGS        += -DINST_TRAP_DEBUG
42 #MYFLAGS        += -DSIGNAL_DEBUG
43 #MYFLAGS        += -DASTDEBUG
44 #MYFLAGS        += -DINFERIOR_RPC_DEBUG
45 MYFLAGS         += -DUSES_DWARF_DEBUG -I$(LIBDWARF_INC)
46 MYFLAGS         += -I$(LIBELF_INC)
47
48 CXXFLAGS        += $(MYFLAGS)
49 CFLAGS          += $(MYFLAGS)
50 TFLAGS          += $(MYFLAGS)
51
52 # Tradeoff: adding -g to TFLAGS aids gdb but uses gobs of disk space
53 #TFLAGS         += -g
54
55 SYSLIBS         = -ldl 
56
57 LIBS      +=  -L$(LIBDWARF_LIB) -L$(LIBELF_LIB)
58 ifndef LIBDWARFSTATIC
59 LIBS += -ldwarf
60 endif
61 ifndef LIBELFSTATIC
62 LIBS += -lelf
63 endif
64
65 AS              = /usr/bin/as
66
67 # no support for elf64_XXX() functions
68 # CXXFLAGS      += -DUSES_ELF32_ONLY
69 # CFLAGS        += -DUSES_ELF32_ONLY
70 # TFLAGS        += -DUSES_ELF32_ONLY
71
72 # Add preprocessor and special link information for G++
73 G_PTHREAD       = -pthread
74 G_PTHREAD_LD    = -pthread
75
76 # Include the module-specific Makefile, which defines everything about
77 # the module that is common across architectures.
78
79 include ../make.module.tmpl
80
81 # Include the "standard library template".  This defines all the
82 # common targets like "clean", "install", etc.
83
84 include ../../make.library.tmpl