Created new 'sparc-sun-solaris2.9' platform for testing with Solaris 9.
[dyninst.git] / dyninstAPI / 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 #USES_LIBERTY = true
8 #NO_OPT_FLAG = true
9 #DEBUG_FLAG = -g
10 NO_IMPLICIT_TEMPLATES = true
11
12 # Include standard make configuration stuff that applies to everything
13 # in the paradyn tree.
14
15 include ../../make.config 
16
17 # Now make any necessary architecture specific changes to variables:
18
19 SRCS =          ../src/solaris.C \
20                 ../src/solarisMT.C \
21                 ../src/solarisDL.C \
22                 ../src/sol_proc.C \
23                 ../src/inst-sparc.C \
24                 ../src/inst-sparc-solaris.C \
25                 ../src/inst-sunos.C \
26                 ../src/parseStab.C \
27                 ../src/Object-elf.C \
28                 ../src/tramp-sparc.s \
29                 ../src/unix.C \
30                 ../src/FunctionExpansionRecord.C \
31                 ../src/LocalAlteration.C \
32                 ../src/LocalAlteration-Sparc.C \
33                 ../src/func-reloc.C \
34                 ../src/InstrucIter-sparc.C \
35                 ../../common/src/solarisKludges.C \
36                 ../../common/src/timing-solaris.C \
37                 ../src/writeBackElf.C \
38                 ../src/addLibrary.C \
39                 ../src/saveSharedLibrary.C 
40
41 # VG(12/02/01) Using -g here seems a bad idea since it is passed from
42 # make.confing any way and it is actually configurable there via
43 # DEBUG_FLAG....
44
45 CFLAGS          += -DNO_MDL_PRINT -DUSES_DYNAMIC_INF_HEAP -I/usr/local/stow/bind-8.2.2.p5/include/
46 #CFLAGS         += -DNO_MDL_PRINT -DUSES_DYNAMIC_INF_HEAP -O0 -I/usr/local/stow/bind-8.2.2.p5/include/ 
47 CXXFLAGS        += -DNO_MDL_PRINT -DUSES_DYNAMIC_INF_HEAP -DUSES_ELF32_ONLY  -I/usr/local/stow/bind-8.2.2.p5/include/ 
48 #CXXFLAGS       += -DNO_MDL_PRINT -DUSES_DYNAMIC_INF_HEAP -O0 -DUSES_ELF32_ONLY  -I/usr/local/stow/bind-8.2.2.p5/include/
49 TFLAGS          += -DUSES_ELF32_ONLY 
50
51 # Tradeoff: adding -g to TFLAGS aids gdb but uses gobs of disk space
52 #TFLAGS                 += -g
53
54 SYSLIBS = -lelf -lsocket -lnsl -ldl
55
56 # Include the module-specific Makefile, which defines everything about
57 # the module that is common across architectures.
58
59 include ../make.module.tmpl
60
61 # Include the "standard library template".  This defines all the
62 # common targets like "clean", "install", etc.
63
64 include ../../make.library.tmpl
65
66 ifdef USES_LIBDYNINST_SO
67 $(TARGET3): $(OBJS)
68         @$(RM) $(TARGET3)
69         @$(MAKE) $(VOUCHER)
70         $(CC) -shared -dy -G -z text $(LDFLAGS) -o $(TARGET3) $(VOUCHER).o $(OBJS) $(LIBS)
71 endif
72