Merge branch 'master' of legendre@git.dyninst.org:/pub/dyninst
[dyninst.git] / symtabAPI / sparc-sun-solaris2.8 / Makefile
1 #
2 # $Id: Makefile,v 1.10 2008/05/27 20:44:56 giri 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/Object-elf.C \
20                         ../src/Archive.C \
21                         ../src/Archive-elf.C \
22                 ../src/parseDwarf.C \
23                 ../src/parseStab.C \
24                 ../src/emitElf.C \
25                 ../src/emitElfStatic.C \
26                 ../src/emitElfStatic-stub.C \
27                 ../src/LinkMap.C \
28                 ../src/addrtranslate.C \
29                 ../src/addrtranslate-sysv.C \
30                 ../src/addrtranslate-solaris.C \
31                 ../src/relocationEntry-elf-sparc.C
32
33 # VG(12/02/01) Using -g here seems a bad idea since it is passed from
34 # make.confing any way and it is actually configurable there via
35 # DEBUG_FLAG....
36
37 CFLAGS          += -DNO_MDL_PRINT -I/usr/local/stow/bind-8.2.2.p5/include/ $(MYFLAGS)
38 #CFLAGS         += -DNO_MDL_PRINT -O0 -I/usr/local/stow/bind-8.2.2.p5/include/ 
39 CXXFLAGS        += -DNO_MDL_PRINT -DUSES_ELF32_ONLY  -I/usr/local/stow/bind-8.2.2.p5/include/ -DUSES_DWARF_DEBUG -I$(LIBDWARF_INC) $(MYFLAGS)
40
41 #CXXFLAGS       += -DNO_MDL_PRINT -O0 -DUSES_ELF32_ONLY  -I/usr/local/stow/bind-8.2.2.p5/include/
42 TFLAGS          += -DUSES_ELF32_ONLY
43
44 # Tradeoff: adding -g to TFLAGS aids gdb but uses gobs of disk space
45 #TFLAGS                 += -g
46
47 LIBS      +=  -L$(LIBDWARF_LIB) -L$(LIBELF_LIB)
48 ifndef LIBDWARFSTATIC
49 LIBS += -ldwarf
50 endif
51 ifndef LIBELFSTATIC
52 LIBS += -lelf
53 endif
54
55 SYSLIBS = -lsocket -lnsl -ldl -lrt
56
57 # Add preprocessor and special link information for G++
58 G_PTHREAD       = -pthreads
59 G_PTHREAD_LD    = -pthreads
60
61 # Include the module-specific Makefile, which defines everything about
62 # the module that is common across architectures.
63
64 include ../make.module.tmpl
65
66 # Include the "standard library template".  This defines all the
67 # common targets like "clean", "install", etc.
68
69 include ../../make.library.tmpl
70
71