Skip to content

Commit

Permalink
getting closer to building swig stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
liewegas committed Mar 13, 2008
1 parent 2585407 commit 3c38bb6
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Makefile.am
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
AUTOMAKE_OPTIONS = gnu
EXTRA_DIST = web autogen.sh
ACLOCAL_AMFLAGS = -I m4
EXTRA_DIST = m4 web autogen.sh
SUBDIRS = src
3 changes: 2 additions & 1 deletion autogen.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/bin/sh
rm -f config.cache
aclocal
libtoolize --force --copy
aclocal -I m4
autoconf
autoheader
automake -a --add-missing
Expand Down
8 changes: 8 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,14 @@ AC_PROG_CC
AC_PROG_RANLIB
AC_PROG_MAKE_SET

# swig
#AM_PROG_CC_C_O
#AC_DISABLE_STATIC
AC_PROG_LIBTOOL
AX_WITH_PERL
AC_PROG_SWIG
SWIG_ENABLE_CXX


# Checks for libraries.
AC_CHECK_LIB([m], [pow])
Expand Down
21 changes: 21 additions & 0 deletions src/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,25 @@ fakesyn_LDADD = libmon.a libmds.a libosd.a libebofs.a \
streamtest_SOURCES = streamtest.cc
streamtest_LDADD = libosd.a libebofs.a libcommon.a

# crushwrapper
lib_LTLIBRARIES = libcrushwrapper.la
libcrushwrapper_la_SOURCES = crush/CrushWrapper.h config.cc crush/mapper.c crush/builder.c crush/crush.c
libcrushwrapper_la_CFLAGS = ${AM_CFLAGS}
libcrushwrapper_la_CXXFLAGS = ${AM_CXXFLAGS}

BUILT_SOURCES = crush/CrushWrapper_wrap.cxx

SWIG_FILES = crush/CrushWrapper.i crush/CrushWrapper.h
crush/CrushWrapper_wrap.cxx: ${SWIG_FILES}
${SWIG} -perl5 -c++ -shadow $<

#crushtool_PERL = crushtool.pl
_crushwrapper_la_SOURCES = crush/CrushWrapper_wrap.cxx ${SWIG_FILES}
_crushwrapper_la_CPPFLAGS = ${SWIG_PERL_CPPFLAGS} -I/usr/lib/perl/5.8/CORE -dno-strict-aliasing -pipe
_crushwrapper_la_LDFLAGS = -module
#_crushwrapper_la_LIBADD = lib


##
INCLUDES =
LDADD = -lpthread
Expand All @@ -77,6 +96,8 @@ noinst_LIBRARIES = \
libcommon.a libcrush.a \
libmon.a libmds.a libosdc.a libosd.a libebofs.a libclient.a

noinst_LTLIBRARIES = _crushwrapper.la

# extra bits
EXTRA_DIST = start.sh stop.sh

Expand Down

0 comments on commit 3c38bb6

Please sign in to comment.