Makefile.am 2.01 KB
Newer Older
Tiago Peixoto's avatar
Tiago Peixoto committed
1
2
## Process this file with automake to produce Makefile.in

3
SUBDIRS = generation correlations stats clustering community util misc
4

Tiago Peixoto's avatar
Tiago Peixoto committed
5
AM_CPPFLAGS =\
6
7
    -I$(srcdir)/.. \
    -I$(srcdir)/../boost-workaround \
8
    -DHAVE_CONFIG_H
Tiago Peixoto's avatar
Tiago Peixoto committed
9
10
11
12
13
14
15
16

AM_CXXFLAGS =\
    -Wall \
    $(PYTHON_CPPFLAGS) \
    $(BOOST_CPPFLAGS)

AM_CFLAGS=$(AM_CXXFLAGS)

17
libgraph_tool_coredir = $(pythondir)/graph_tool
18

19
libgraph_tool_core_LTLIBRARIES = libgraph_tool_core.la
Tiago Peixoto's avatar
Tiago Peixoto committed
20

21
libgraph_tool_core_la_includedir = $(pythondir)/graph_tool/include
Tiago Peixoto's avatar
Tiago Peixoto committed
22

23
libgraph_tool_core_la_SOURCES = \
24
25
    graph_bind.cc \
    graph.cc \
26
    graph_copy.cc \
27
28
29
30
31
32
    graph_filtering.cc \
    graph_io.cc \
    graph_properties.cc \
    graph_python_interface.cc \
    graph_python_interface_export.cc \
    graph_selectors.cc \
33
    graphml.cpp\
34
35
36
    read_graphviz_spirit.cpp\
    ../boost-workaround/boost/graph/filtered_graph.hpp\
    ../boost-workaround/boost/graph/graphml.hpp
Tiago Peixoto's avatar
Tiago Peixoto committed
37

38
libgraph_tool_core_la_include_HEADERS = \
39
40
41
42
43
44
45
46
47
48
    graph_adaptor.hh \
    graph_filtering.hh \
    graph.hh \
    graph_properties.hh \
    graph_python_interface.hh \
    graph_selectors.hh \
    graph_util.hh \
    histogram.hh \
    mpl_nested_loop.hh \
    shared_map.hh \
49
    fast_vector_property_map.hh \
50
    numpy_bind.hh \
51
52
    ../../config.h

53
54
55
# leave out precompiled headers for now, since it doesn't seem to help much
# BUILT_SOURCES = \
#     graph_filtering.hh.gch
56

57
58
59
# ## Header precompilation
# ## FIXME: need a better way to convince libtool to let us do this.
# $(libgraph_tool_la_include_HEADERS):
60

61
62
63
64
# $(BUILT_SOURCES):
# 	$(CXXCOMPILE) $(CXXFLAGS) $(AM_CXXFLAGS) $(AM_CPPFLAGS) -fPIC -DPIC -x c++-header `basename $@ .gch`
# mostlyclean-local:
# 	-rm -f *.gch
65

66
libgraph_tool_core_la_LIBADD = \
Tiago Peixoto's avatar
Tiago Peixoto committed
67
68
    $(PYTHON_LDFLAGS) \
    $(BOOST_LDFLAGS) \
69
    $(OPENMP_LDFLAGS) \
Tiago Peixoto's avatar
Tiago Peixoto committed
70
71
72
    -lboost_python \
    -lboost_iostreams \
    -lexpat
73
74
75

# needed for typeinfo objects to work across DSO boundaries.
# see http://gcc.gnu.org/faq.html#dso
76
libgraph_tool_core_la_LDFLAGS = \
77
78
79
80
81
82
    -module \
    -avoid-version \
    -export-dynamic \
    -no-undefined \
    -Wl,-E