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