Created new 'sparc-sun-solaris2.9' platform for testing with Solaris 9.
[dyninst.git] / dyninstAPI_RT / sparc-sun-solaris2.9 / Makefile
1 #
2 # $Id: Makefile,v 1.1 2003/09/30 14:20:45 jodom 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
16 NATIVE_CC = cc
17 ifneq (,$(findstring WorkShop,$(shell $(NATIVE_CC) -V 2>&1)))
18 USES_NATIVE_CC = true
19 endif
20 ifneq (,$(findstring Sun C,$(shell $(NATIVE_CC) -V 2>&1)))
21 USES_NATIVE_CC = true
22 endif
23
24 # if we want to produce a shared object...
25
26 CFLAGS          = -g -I. -I../.. -Dsparc_sun_solaris2_4
27 ifdef USES_NATIVE_CC
28 CC              = $(NATIVE_CC)
29 LD              = $(NATIVE_CC)
30 CFLAGS          += -Kpic -D_NATIVESO_
31 LDFLAGS         = -ldl -lelf -dy -G -z text -z initarray=libdyninstAPI_RT_init
32 else
33 CC              = $(GCC)
34 LD              = $(GCC)
35 CFLAGS          += -fpic
36 LDFLAGS         = -ldl -lelf -shared -nostdlib -lgcc -z initarray=libdyninstAPI_RT_init
37 #ccw 19 nov 2001
38 endif
39
40 #CFLAGS += -DDEBUG_PRINT_RT      # enable debug/trace messages from library
41
42 SRCS            += ../src/RTposix.c \
43                    ../src/RTsolaris.c \
44                    ../src/RTheap.c \
45                    ../src/RTheap-solaris.c \
46                    ../src/RTheap-svr4.c \
47                         ../src/RTmutatedBinary.c \
48                         ../src/RTmutatedBinary_ELF.c
49
50 # Include the module-specific Makefile, which defines everything about
51 # the module that is common across architectures.
52
53 include ../make.module.tmpl
54
55 # Include the "standard program template".  This defines all the
56 # common targets like "clean", "install", etc.
57
58 include ../../make.library.tmpl
59