Moved file paths to make.config.local
[dyninst.git] / dyninstAPI_RT / i386-unknown-linux2.4 / Makefile
1 #
2 # $Id: Makefile,v 1.15 2004/06/24 22:27:45 legendre 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 USES_LIBELF = true
13
14 include ../../make.config 
15
16 # Now make any necessary architecture specific changes to variables:
17 LD              = $(GCC)
18 LDFLAGS         += -shared -nostdlib
19
20 # Automatic init routine
21 LDFLAGS         += -Wl,-init -Wl,libdyninstAPI_RT_init
22
23 CFLAGS          += -O2 
24
25 # if we want to produce a shared object...
26 CC              = $(GCC)
27 LD              = $(GCC)
28 CFLAGS          += -I. -I../.. -I$(LIBELF_INC) -I/usr/include/libelf -fpic 
29
30 LIBS            += -ldl -L$(LIBELF_LIB)
31 ifdef LIBELFSTATIC
32 LIBS    += -Wl,-static -lelf -Wl,-call_shared
33 else
34 LIBS    += -lelf
35 endif
36
37 ASFLAGS         += 
38
39 SRCS            += ../src/RTposix.c \
40                    ../src/RTlinux.c \
41                    ../src/RTsig.c \
42                    ../src/RTheap.c \
43          ../src/RTheap-linux.c \
44                    ../src/RTmutatedBinary.c \
45                         ../src/RTmutatedBinary_ELF.c
46
47 #CFLAGS += -DDEBUG_PRINT_RT    # enable debug/trace messages from library
48
49 ifdef DETACH_ON_THE_FLY
50 CFLAGS += -DDETACH_ON_THE_FLY
51 SRCS += ../src/RTsigill-x86.S
52 endif
53
54 # Include the module-specific Makefile, which defines everything about
55 # the module that is common across architectures.
56
57 include ../make.module.tmpl
58
59 # Include the "standard program template".  This defines all the
60 # common targets like "clean", "install", etc.
61
62 include ../../make.library.tmpl
63