Automatically build (and install) the DUMM Ruby extension.
This commit is contained in:
parent
2d9ce480fa
commit
ad36ab252e
|
@ -17,3 +17,16 @@ irdumm_LDADD = libdumm.la -lruby1.8
|
||||||
INCLUDES = -I$(top_srcdir)/src/libstrongswan ${gtk_CFLAGS} \
|
INCLUDES = -I$(top_srcdir)/src/libstrongswan ${gtk_CFLAGS} \
|
||||||
${RUBYINCLUDE}
|
${RUBYINCLUDE}
|
||||||
AM_CFLAGS = -D_FILE_OFFSET_BITS=64
|
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
|
||||||
|
|
|
@ -28,6 +28,7 @@
|
||||||
#undef PACKAGE_TARNAME
|
#undef PACKAGE_TARNAME
|
||||||
#undef PACKAGE_VERSION
|
#undef PACKAGE_VERSION
|
||||||
#undef PACKAGE_STRING
|
#undef PACKAGE_STRING
|
||||||
|
#undef PACKAGE_BUGREPORT
|
||||||
#include <ruby.h>
|
#include <ruby.h>
|
||||||
|
|
||||||
static dumm_t *dumm;
|
static dumm_t *dumm;
|
||||||
|
|
|
@ -5,6 +5,7 @@
|
||||||
require 'mkmf'
|
require 'mkmf'
|
||||||
|
|
||||||
$defs << " @DEFS@"
|
$defs << " @DEFS@"
|
||||||
|
$CFLAGS << " -Wno-format"
|
||||||
|
|
||||||
dir_config('dumm', '@top_srcdir@/src/dumm', '../.libs')
|
dir_config('dumm', '@top_srcdir@/src/dumm', '../.libs')
|
||||||
dir_config('strongswan', '@top_srcdir@/src/libstrongswan', '../../libstrongswan/.libs')
|
dir_config('strongswan', '@top_srcdir@/src/libstrongswan', '../../libstrongswan/.libs')
|
||||||
|
|
Loading…
Reference in New Issue