Merge branch 'master' of git.dyninst.org:/pub/dyninst
[dyninst.git] / depGraphAPI / 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.4 2008/09/15 17:38:17 jaw Exp $
7 #
8
9 SUITE_NAME      = Dyninst
10 RELEASE_NUM     = 5.2
11 #BUILD_MARK should be (re-)defined in core/make.config.local rather than here!
12
13 CFLAGS               += $(USEFULWARNINGS) -I$(TO_CORE)/../include
14 CXXFLAGS             += $(USEFULWARNINGS) -I$(TO_CORE)/../include
15
16 LDFLAGS += -lcommon
17
18 LDFLAGS     += $(LIBDIR)
19 ifndef USES_NATIVE_CC
20 LD              = $(GXX)
21 LDFLAGS         += -shared $(G_PTHREAD_LD)
22 CFLAGS          += -fPIC
23 CXXFLAGS        += -fPIC $(G_PTHREAD)
24 else
25 ifeq (solaris,$(findstring solaris,$(PLATFORM)))
26 LDFLAGS         += -G
27 endif #sparc
28 endif #USES_NATIVE
29
30
31 TO_INC   = ../h
32
33 #PUBLIC_H = 
34
35 SRCS += ../src/DepGraphNode.C \
36         ../src/DepGraphDOT.C \
37         ../src/DDG.C \
38         ../src/CDG.C \
39         ../src/FDG.C \
40         ../src/PDG.C \
41         ../src/xPDG.C \
42         ../src/Absloc.C \
43         ../src/analyzeDDG.C \
44         ../src/analyzeDDGCallees.C \
45         ../src/analyzeCDG.C \
46         ../src/analyzeFDG.C \
47         ../src/analyzePDG.C \
48         ../src/analyzeXPDG.C
49
50
51 IFLAGS       += -I../$(PLATFORM) -I../src -I../h -I../../dynutil/h -I../../symtabAPI/h -I../external -I../../dyninstAPI/h
52
53 DOCDIR  = ../doc
54
55
56 # All that, and we finally get a target...
57 all: $(TARGET) $(EXTRA_LIBS)
58
59 PUBLIC_H =      Absloc.h \
60                 DepGraphNode.h \
61                 DDG.h \
62                 CDG.h \
63                 FDG.h \
64                 PDG.h \
65                 xPDG.h
66
67