Makefile.am 1.98 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
    numpy_bind.hh \
50 51
    ../../config.h

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

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

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

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

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