Windows build fixes.
[dyninst.git] / stackwalk / make.module.tmpl
1 # -*- makefile -*-
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      = Stackwalker
10 RELEASE_NUM     = 1.0
11
12 CFLAGS               += $(USEFULWARNINGS) $(DEFINES)
13 CXXFLAGS             += $(USEFULWARNINGS) $(DEFINES)
14
15 ifdef STATIC_COMPS
16 STATIC_LIBRARY = true
17 TARGET = libstackwalk.a
18 else
19 TARGET = libstackwalk.so
20 MYFLAGS += -fPIC
21 endif
22
23 ifndef USES_NATIVE_CC
24 LD              = $(GXX)
25 LDFLAGS         += -shared
26 CFLAGS          += 
27 CXXFLAGS        += 
28 else
29 ifeq (solaris,$(findstring solaris,$(PLATFORM)))
30 LDFLAGS         += -G
31 endif #sparc
32 endif #USES_NATIVE
33 TFLAGS          +=
34
35 TO_INC     = ../h
36 PUBLIC_H   = basetypes.h \
37              framestepper.h \
38              steppergroup.h \
39              symlookup.h \
40              frame.h \
41              procstate.h \
42              swk_errors.h \
43              walker.h 
44
45 SRCS         += ../src/frame.C \
46                 ../src/framestepper.C \
47                 ../src/swk_errors.C \
48       ../src/symlookup.C \
49                 ../src/walker.C \
50       ../src/procstate.C \
51       ../src/steppergroup.C
52
53
54 IFLAGS       += -I../$(PLATFORM) -I../src -I../h
55
56 # All that, and we finally get a target...
57 all: $(TARGET) $(EXTRA_LIBS)