Merge branch 'dyninst_proccontrol' of ssh://git.dyninst.org/pub/dyninst into dyninst_...
[dyninst.git] / stackwalk / i386-unknown-freebsd7.2 / Makefile
1 #
2 # $Id: Makefile,v 1.1 2008/06/30 19:40:57 legendre Exp $
3 #
4
5 # Define any symbols needed to invoke configuration changes in make.config
6
7 NO_IMPLICIT_TEMPLATES = true
8
9 # Include standard make configuration stuff that applies to everything
10 # in the paradyn tree.
11
12 include ../../make.config 
13
14 LDFLAGS     += $(LIBDIR) -lcommon
15
16 SRCS =  ../src/freebsd-swk.C \
17         ../src/x86-swk.C \
18         ../src/symtab-swk.C \
19         ../src/dbginfo-stepper.C \
20         ../src/x86-wanderer.C \
21         ../src/linuxbsd-swk.C \
22         ../src/linuxbsd-x86-swk.C \
23         ../src/freebsd-x86-swk.C 
24
25 #USE_PARSE_API = true
26
27 ifdef USE_PARSE_API
28         SRCS += ../src/analysis_stepper.C \
29                 ../src/callchecker-IAPI.C
30 else
31         SRCS += ../src/callchecker.C
32 endif
33
34 # Include the module-specific Makefile, which defines everything about
35 # the module that is common across architectures.
36
37 include ../make.module.tmpl
38
39 # Include the "standard library template".  This defines all the
40 # common targets like "clean", "install", etc.
41
42 include ../../make.library.tmpl
43
44 # Now make any necessary architecture specific changes to variables:
45
46 ifdef LIBELF_INC
47 MYFLAGS += -I$(LIBELF_INC)
48 endif
49 ifdef LIBDWARF_INC
50 MYFLAGS += -I$(LIBDWARF_INC)
51 endif
52
53 ifdef LIBELF_LIB
54 LDFLAGS += -L$(LIBELF_LIB) -lelf
55 endif
56 ifdef LIBDWARF_LIB
57 LDFLAGS += -L$(LIBDWARF_LIB) -ldwarf
58 endif
59
60 ifdef USE_PARSE_API
61         MYFLAGS += -I../../parseAPI/h -I../../dataflowAPI/h
62         LDFLAGS += -L../../parseAPI/$(PLATFORM) -lparseAPI      
63 endif
64
65 MYFLAGS += -I../../symtabAPI/h
66 LDFLAGS += -L../../symtabAPI/$(PLATFORM) -lsymtabAPI
67
68
69
70 CFLAGS  += -fno-omit-frame-pointer -Dcap_sw_catchfaults $(MYFLAGS)
71 CXXFLAGS  += -fno-omit-frame-pointer -Dcap_sw_catchfaults $(MYFLAGS)
72 AS              = as
73
74 # Now make any necessary architecture specific changes to variables:
75 VPATH += ../../common/src