Move Graph, Node, Edge objects to common/dynutil; move all others to new depGraphAPI...
[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/Graph.C \
36         ../src/Edge.C \
37         ../src/Node.C \
38         ../src/Absloc.C \
39         ../src/Analyze.C \
40         ../src/analyzeDDG.C \
41         ../src/analyzeCDG.C \
42         ../src/analyzeFDG.C \
43         ../src/analyzePDG.C
44
45
46 ifndef USES_NATIVE_CC
47 ifdef CROSSCOMPILER
48 SYSLIBS         += -liberty -lg++ -lstdc++ -lm
49 else
50 SYSLIBS         += -liberty
51 endif
52 else
53 SYSLIBS         += -ldemangle
54 endif
55
56
57 IFLAGS       += -I../$(PLATFORM) -I../src -I../h -I../../dynutil/h -I../../symtabAPI/h -I../external -I../../dyninstAPI/h
58
59 DOCDIR  = ../doc
60
61
62 # All that, and we finally get a target...
63 all: $(TARGET) $(EXTRA_LIBS)
64
65
66 docs:
67         cd ..; doxygen instructionAPI.conf
68         cd $(DOCDIR)/latex; manual-preproc.pl *.tex; $(MAKE) clean
69         $(MAKE) -C $(DOCDIR)/latex
70
71
72