Automatically build (and install) the DUMM Ruby extension.

This commit is contained in:
Tobias Brunner 2009-05-20 19:34:17 +02:00
parent 2d9ce480fa
commit ad36ab252e
3 changed files with 15 additions and 0 deletions

View File

@ -17,3 +17,16 @@ irdumm_LDADD = libdumm.la -lruby1.8
INCLUDES = -I$(top_srcdir)/src/libstrongswan ${gtk_CFLAGS} \
${RUBYINCLUDE}
AM_CFLAGS = -D_FILE_OFFSET_BITS=64
all-local: ext
clean-local:
(test -f ext/Makefile && cd ext && $(MAKE) clean && rm Makefile || true)
install-data-local:
(test -f ext/Makefile && cd ext && $(MAKE) install)
ext: libdumm.la
(cd ext && $(RUBY) extconf.rb && $(MAKE))
.PHONY: ext

View File

@ -28,6 +28,7 @@
#undef PACKAGE_TARNAME
#undef PACKAGE_VERSION
#undef PACKAGE_STRING
#undef PACKAGE_BUGREPORT
#include <ruby.h>
static dumm_t *dumm;

View File

@ -5,6 +5,7 @@
require 'mkmf'
$defs << " @DEFS@"
$CFLAGS << " -Wno-format"
dir_config('dumm', '@top_srcdir@/src/dumm', '../.libs')
dir_config('strongswan', '@top_srcdir@/src/libstrongswan', '../../libstrongswan/.libs')