Fixes to get StackwalkerAPI building on BGQ
[dyninst.git] / symtabAPI / ppc64_bgq_ion / 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 NO_IMPLICIT_TEMPLATES = true
8 USES_DWARF_DEBUG = true
9 USES_LIBELF = true
10
11 #STATIC_COMPS = true
12
13 # Include standard make configuration stuff that applies to everything
14 # in the paradyn tree.
15 include ../../make.config 
16
17 # Now make any necessary architecture specific changes to variables:
18
19 SRCS =          ../src/Object-elf.C \
20                 ../../common/src/Elf_X.C \
21                 ../src/Archive.C \
22                 ../src/Archive-elf.C \
23                 ../src/parseDwarf.C \
24                 ../src/parseStab.C \
25                 ../src/emitElf.C \
26                 ../src/emitElf-64.C \
27                 ../src/emitElfStatic.C \
28                 ../src/emitElfStatic-stub.C \
29                 ../src/LinkMap.C \
30                 ../src/relocationEntry-stub.C
31
32 MYFLAGS                += -DUSES_DWARF_DEBUG -I$(LIBDWARF_INC) -I$(LIBELF_INC)
33
34 CXXFLAGS        += $(MYFLAGS) -I/bgsys/drivers/ppcfloor/arch/include
35 CFLAGS          += $(MYFLAGS)
36 TFLAGS          += $(MYFLAGS)
37
38 SYSLIBS                = -ldl 
39
40 ifndef LIBDWARFSTATIC
41 LIBS += -ldwarf
42 endif
43 ifndef LIBELFSTATIC
44 LIBS += -lelf
45 endif
46
47 LIBS     +=  -L$(LIBDWARF_LIB) -L$(LIBELF_LIB)
48
49 AS             = /usr/bin/as
50
51 # no support for elf64_XXX() functions
52 # CXXFLAGS     += -DUSES_ELF32_ONLY
53 # CFLAGS       += -DUSES_ELF32_ONLY
54 # TFLAGS       += -DUSES_ELF32_ONLY
55
56 # Add preprocessor and special link information for G++
57 G_PTHREAD      = -pthread
58 G_PTHREAD_LD   = -pthread
59
60 # Include the module-specific Makefile, which defines everything about
61 # the module that is common across architectures.
62
63 include ../make.module.tmpl
64
65 # Include the "standard library template".  This defines all the
66 # common targets like "clean", "install", etc.
67
68 include ../../make.library.tmpl
69
70 # Now make any necessary architecture specific changes to variables:
71 VPATH += ../../common/src