Add new ppc32_linux platform. - - - - - - - - - - - - - - - - - - - - -
[dyninst.git] / paradynd / ppc32_linux / Makefile
1 #
2 # $Id: Makefile,v 1.1 2007/08/01 18:47:36 ssuen Exp $
3 #
4
5 # Define any symbols needed to invoke configuration changes in make.config
6
7 USES_LIBERTY = true
8 USES_SHM_SAMPLING = true
9 NO_IMPLICIT_TEMPLATES = true
10 USES_DWARF_DEBUG = true
11 USES_LIBELF = true
12 DEBUG_FLAG = -g
13
14 #If libhrtime is not installed on your computer and you have no interest
15 #  in using it, then comment out the following line (with a #), remove
16 #  the DEPENDS file in this directory, and recompile with make.
17 #If you have libhrtime, but it can't be found, the libhrtime path can 
18 #  be adjusted in ../../make.config.  You'll need to remake DEPENDS if
19 #  this path is adjusted.
20 #USES_LIBHRTIME = true
21 #USES_PAPI = true
22
23 # Include standard make configuration stuff that applies to everything
24 # in the paradyn tree.
25
26 include ../../make.config 
27
28 # Now make any necessary architecture specific changes to variables:
29
30 VPATH        += ../../rtinst/h:../../rtinst/src
31
32 SRCS =          ../src/init-linux.C \
33                 ../../rtinst/src/RThwtimer-linux.c \
34                 ../../paradynd/src/proc-linux.C 
35
36 MYFLAGS         += -DNO_MDL_PRINT
37 MYFLAGS         += -DUSES_DWARF_DEBUG -I$(LIBDWARF_INC)
38 MYFLAGS     += -I$(LIBELF_INC)
39 MYFLAGS         += -I/usr/include/libelf
40
41 SYSLIBS  = -ldl
42 LIBS     = -L$(LIBDWARF_LIB) -L$(LIBELF_LIB)
43 ifdef LIBDWARFSTATIC
44 LIBS    += -Wl,-static -ldwarf -Wl,-call_shared
45 else
46 LIBS    += -ldwarf
47 endif
48 ifdef LIBELFSTATIC
49 LIBS    += -Wl,-static -lelf -Wl,-call_shared
50 else
51 LIBS    += -lelf
52 endif
53
54 # AS            = /usr/bin/as
55
56 #MYFLAGS                += -DPDYN_DEBUG
57 #MYFLAGS                += -DATTACH_DETACH_DEBUG -DINFERIOR_RPC_DEBUG
58 #MYFLAGS                += -DPTRACEDEBUG
59 #MYFLAGS                += -DPTRACEDEBUG_EXCESSIVE
60 #MYFLAGS                += -DSIGNAL_DEBUG
61 #MYFLAGS                += -DINST_TRAP_DEBUG
62 #MYFLAGS                += -DLD_DEBUG
63 #MYFLAGS                += -DSAMPLEVALUE_DEBUG
64 #MYFLAGS                += -DAGGREGATE_DEBUG
65 MYFLAGS                 += -g
66
67 CFLAGS          += $(MYFLAGS)
68 CXXFLAGS        += $(MYFLAGS)
69 TFLAGS          += $(MYFLAGS)
70
71 ifdef USES_LIBHRTIME
72 LIBS    += $(HRTIME_LIB)
73 endif
74
75 ifdef USES_PAPI
76 LIBS    += $(PAPI_LIB)
77 endif
78
79 ifdef USES_LIBPERFCTR
80 LIBS    += $(PERFCTR_LIB)
81 endif
82
83 # no support for elf64_XXX() functions
84 # CFLAGS        += -DUSES_ELF32_ONLY
85 # CXXFLAGS      += -DUSES_ELF32_ONLY
86 # TFLAGS        += -DUSES_ELF32_ONLY
87
88 # Include the module-specific Makefile, which defines everything about
89 # the module that is common across architectures.
90
91 include ../make.module.tmpl
92
93 # Include the "standard program template".  This defines all the
94 # common targets like "clean", "install", etc.
95
96 include ../../make.program.tmpl