Makefile.am 1.97 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
4

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

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

AM_CFLAGS=$(AM_CXXFLAGS)

18
libgraph_tool_coredir = $(pythondir)/graph_tool
19

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

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

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

39
libgraph_tool_core_la_include_HEADERS = \
40 41 42 43 44 45 46 47 48 49
    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 \
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