Merge branch 'master' of legendre@git.dyninst.org:/pub/dyninst
[dyninst.git] / symtabAPI / sparc-sun-solaris2.9 / Makefile
1 #
2 # $Id: Makefile,v 1.13 2008/05/27 20:44:57 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 CFLAGS          += -DNO_MDL_PRINT -I/usr/local/stow/bind-8.2.2.p5/include/ $(MYFLAGS)
34 CXXFLAGS        += -DNO_MDL_PRINT -DUSES_ELF32_ONLY  -DUSES_DWARF_DEBUG -I/usr/local/stow/bind-8.2.2.p5/include/ -DUSES_DWARF_DEBUG -I$(LIBDWARF_INC) $(MYFLAGS)
35 TFLAGS          += -DUSES_ELF32_ONLY 
36
37 LDFLAGS += -L$(LIBELF_LIB) -L$(LIBDWARF_LIB)
38 ifndef LIBDWARFSTATIC
39 LIBS += -ldwarf
40 endif
41 ifndef LIBELFSTATIC
42 LIBS += -lelf
43 endif
44
45 SYSLIBS = -lsocket -lnsl -ldl -lrt
46
47 # Add preprocessor and special link information for G++
48 G_PTHREAD       = -pthreads
49 G_PTHREAD_LD    = -pthreads
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