Initial commit of StackwalkerAPI
[dyninst.git] / stackwalk / make.module.tmpl
1
2 # Common makefile template for the dyninstAPI library.  This file is not
3 # intended to be a useful Makefile in isolation; instead, it should be
4 # included from within an architecture-specific Makefile.
5 #
6 # $Id: make.module.tmpl,v 1.1 2008/06/30 19:40:26 legendre Exp $
7 #
8
9 SUITE_NAME      = DynStackwalker
10 RELEASE_NUM     = 1.0
11
12 CFLAGS               += $(USEFULWARNINGS) $(DEFINES)
13 CXXFLAGS             += $(USEFULWARNINGS) $(DEFINES)
14
15 ifndef USES_NATIVE_CC
16 LD              = $(GXX)
17 LDFLAGS         += -shared
18 CFLAGS          += -fPIC
19 CXXFLAGS        += -fPIC
20 else
21 ifeq (solaris,$(findstring solaris,$(PLATFORM)))
22 LDFLAGS         += -G
23 endif #sparc
24 endif #USES_NATIVE
25 TFLAGS          += -fPIC
26
27 SRCS         += ../src/frame.C \
28                 ../src/framestepper.C \
29                 ../src/swk_errors.C \
30       ../src/symlookup.C \
31                 ../src/walker.C \
32       ../src/procstate.C
33
34 IFLAGS       += -I../$(PLATFORM) -I../src -I../h
35
36 # All that, and we finally get a target...
37 all: $(TARGET) $(EXTRA_LIBS)