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

AM_CPPFLAGS =\
    -I. -I.. \
    -I../boost-workaround \
6
    -DHAVE_CONFIG_H
Tiago Peixoto's avatar
Tiago Peixoto committed
7 8 9 10 11 12 13 14

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

AM_CFLAGS=$(AM_CXXFLAGS)

15
libgraph_tooldir = $(pythondir)/graph_tool
16

17
libgraph_tool_LTLIBRARIES = libgraph_tool.la
Tiago Peixoto's avatar
Tiago Peixoto committed
18

19
libgraph_tool_la_includedir = $(pythondir)/graph_tool/include
Tiago Peixoto's avatar
Tiago Peixoto committed
20 21

libgraph_tool_la_SOURCES = \
22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62
    graph_assortativity.cc \
    graph_betweenness.cc \
    graph_bind.cc \
    graph.cc \
    graph_clustering.cc \
    graph_community.cc \
    graph_community_network.cc \
    graph_correlations.cc \
    graph_correlations_combined.cc \
    graph_correlations_combined_corr.cc \
    graph_correlations_imp1.cc \
    graph_correlations_imp2.cc \
    graph_correlations_imp3.cc \
    graph_correlations_neighbours.cc \
    graph_correlations_neighbours_imp1.cc \
    graph_correlations_neighbours_imp2.cc \
    graph_correlations_neighbours_imp3.cc \
    graph_correlations_neighbours_imp4.cc \
    graph_correlations_neighbours_imp5.cc \
    graph_correlations_neighbours_imp6.cc \
    graph_distance.cc \
    graph_distance_sampled.cc \
    graph_edge_correlations.cc \
    graph_edge_correlations_imp1.cc \
    graph_edge_correlations_imp2.cc \
    graph_edge_correlations_imp3.cc \
    graph_edge_correlations_imp4.cc \
    graph_edge_correlations_imp5.cc \
    graph_extended_clustering.cc \
    graph_filtering.cc \
    graph_generation.cc \
    graph_io.cc \
    graph_layout.cc \
    graph_line_graph.cc \
    graph_minimum_spanning_tree.cc \
    graph_properties.cc \
    graph_python_interface.cc \
    graph_python_interface_export.cc \
    graph_reciprocity.cc \
    graph_rewiring.cc \
    graph_selectors.cc \
63
    graphml.cpp\
64 65 66 67
    read_graphviz_spirit.cpp\
    ../boost-workaround/boost/graph/filtered_graph.hpp\
    ../boost-workaround/boost/graph/fruchterman_reingold.hpp\
    ../boost-workaround/boost/graph/graphml.hpp
Tiago Peixoto's avatar
Tiago Peixoto committed
68

69
libgraph_tool_la_include_HEADERS = \
70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91
    graph_adaptor.hh \
    graph_assortativity.hh \
    graph_clustering.hh \
    graph_community.hh \
    graph_community_network.hh \
    graph_correlations_combined.hh \
    graph_correlations.hh \
    graph_correlations_neighbours.hh \
    graph_distance.hh \
    graph_distance_sampled.hh \
    graph_edge_correlations.hh \
    graph_extended_clustering.hh \
    graph_filtering.hh \
    graph.hh \
    graph_properties.hh \
    graph_python_interface.hh \
    graph_rewiring.hh \
    graph_selectors.hh \
    graph_util.hh \
    histogram.hh \
    mpl_nested_loop.hh \
    shared_map.hh \
92 93
    ../../config.h

94 95 96 97 98 99 100 101 102 103 104 105
BUILT_SOURCES = \
    graph_filtering.hh.gch

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

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

Tiago Peixoto's avatar
Tiago Peixoto committed
106 107 108
libgraph_tool_la_LIBADD = \
    $(PYTHON_LDFLAGS) \
    $(BOOST_LDFLAGS) \
109
    $(OPENMP_LDFLAGS) \
Tiago Peixoto's avatar
Tiago Peixoto committed
110 111 112
    -lboost_python \
    -lboost_iostreams \
    -lexpat
113 114 115 116

# needed for typeinfo objects to work across DSO boundaries.
# see http://gcc.gnu.org/faq.html#dso
libgraph_tool_la_LDFLAGS = \
117 118 119 120 121 122
    -module \
    -avoid-version \
    -export-dynamic \
    -no-undefined \
    -Wl,-E