Adding new platform:ppc32_bgp
[dyninst.git] / dyninstAPI_RT / ppc32_bgp / Makefile
1 #
2 # $Id: Makefile,v 1.2 2008/02/20 08:31:07 jaw 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 ifndef STATIC_TARGET
15     STATIC_TARGET = libdyninstAPI_RT.a
16 endif
17
18 # Now make any necessary architecture specific changes to variables:
19 LD              = $(GCC)
20 LDFLAGS         += -shared 
21
22 # Automatic init routine
23 #LDFLAGS                += -Wl,-init -Wl,libdyninstAPI_RT_init
24
25 CFLAGS          += -O2 
26
27 # if we want to produce a shared object...
28 CC              = $(GCC)
29 LD              = $(GCC)
30 STATIC_CFLAGS  := $(CFLAGS) -DDYNINST_RT_STATIC_LIB -I. -I../..
31 CFLAGS          += -I. -I../.. -fpic
32
33 LIBS            += -ldl
34
35 AS = gcc
36 STATIC_ASFLAGS  := $(ASFLAGS) -c -DDYNINST_RT_STATIC_LIB
37 ASFLAGS         += -c
38
39 SRCS            += ../src/RTposix.c \
40                    ../src/RTlinux.c \
41                    ../src/RTheap.c \
42                    ../src/RTheap-linux.c \
43                    ../src/RTthread.c \
44                    ../src/RTthread-index.c \
45                    ../src/RTthread-powerpc.c \
46                    ../src/RTthread-powerpc-asm.S \
47                    ../src/RTspace.S
48 #                  ../src/RTmutatedBinary.c \
49 #                  ../src/RTmutatedBinary_ELF.c \
50
51 #CFLAGS += -DDEBUG_PRINT_RT    # enable debug/trace messages from library
52
53 ifdef DETACH_ON_THE_FLY
54 CFLAGS += -DDETACH_ON_THE_FLY
55 SRCS += ../src/RTsigill-powerpc.S
56 endif
57
58 # Include the module-specific Makefile, which defines everything about
59 # the module that is common across architectures.
60
61 include ../make.module.tmpl
62
63 # Include the "standard program template".  This defines all the
64 # common targets like "clean", "install", etc.
65
66 include ../../make.library.tmpl
67
68 RTthread-powerpc-asm.o:
69         $(CC) -c $(CFLAGS) ../src/RTthread-powerpc-asm.S
70
71 RTspace.o:
72         $(CC) -c $(CFLAGS) ../src/RTspace.S
73