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

3
4
SUBDIRS = correlations

Tiago Peixoto's avatar
Tiago Peixoto committed
5
6
7
AM_CPPFLAGS =\
    -I. -I.. \
    -I../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
50
    ../../config.h

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

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

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

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

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