Add new ppc32_linux platform. - - - - - - - - - - - - - - - - - - - - -
[dyninst.git] / dyninstAPI_RT / ppc32_linux / Makefile
1 #
2 # $Id: Makefile,v 1.1 2007/08/01 18:47:32 ssuen Exp $
3 #
4
5 # Define any symbols needed to invoke configuration changes in make.config
6
7 # none
8
9 # Include standard make configuration stuff that applies to everything
10 # in the paradyn tree.
11
12 include ../../make.config 
13
14 # Now make any necessary architecture specific changes to variables:
15 LD              = $(GCC)
16 LDFLAGS         += -shared -nostdlib
17
18 # Automatic init routine
19 LDFLAGS         += -Wl,-init -Wl,libdyninstAPI_RT_init
20
21 CFLAGS          += -O2 
22
23 # if we want to produce a shared object...
24 CC              = $(GCC)
25 LD              = $(GCC)
26 CFLAGS          += -I. -I../.. -fpic
27
28 LIBS            += -ldl
29
30 AS = gcc
31 ASFLAGS         += -c
32
33 SRCS            += ../src/RTposix.c \
34                    ../src/RTlinux.c \
35                    ../src/RTheap.c \
36                    ../src/RTheap-linux.c \
37                    ../src/RTmutatedBinary.c \
38                    ../src/RTmutatedBinary_ELF.c \
39                    ../src/RTthread.c \
40                    ../src/RTthread-index.c \
41                    ../src/RTthread-powerpc.c \
42                    ../src/RTthread-powerpc-asm.S \
43                    ../src/RTspace.S
44
45 #CFLAGS += -DDEBUG_PRINT_RT    # enable debug/trace messages from library
46
47 ifdef DETACH_ON_THE_FLY
48 CFLAGS += -DDETACH_ON_THE_FLY
49 SRCS += ../src/RTsigill-powerpc.S
50 endif
51
52 # Include the module-specific Makefile, which defines everything about
53 # the module that is common across architectures.
54
55 include ../make.module.tmpl
56
57 # Include the "standard program template".  This defines all the
58 # common targets like "clean", "install", etc.
59
60 include ../../make.library.tmpl
61
62 RTthread-powerpc-asm.o:
63         $(CC) -c $(CFLAGS) ../src/RTthread-powerpc-asm.S
64
65 RTspace.o:
66         $(CC) -c $(CFLAGS) ../src/RTspace.S
67