Initial commit
This commit is contained in:
commit
2cdf2584f2
6 changed files with 49 additions and 0 deletions
3
.gitignore
vendored
Normal file
3
.gitignore
vendored
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
*.beam
|
||||||
|
c_src/system
|
||||||
|
c_src/wiredtiger-*/
|
6
Makefile
Normal file
6
Makefile
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
|
||||||
|
all:
|
||||||
|
./rebar compile eunit
|
||||||
|
|
||||||
|
clean:
|
||||||
|
./rebar clean
|
30
c_src/build_deps.sh
Executable file
30
c_src/build_deps.sh
Executable file
|
@ -0,0 +1,30 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
WT_VSN=20111212
|
||||||
|
|
||||||
|
if [ `basename $PWD` != "c_src" ]; then
|
||||||
|
pushd c_src
|
||||||
|
fi
|
||||||
|
|
||||||
|
BASEDIR="$PWD"
|
||||||
|
|
||||||
|
case "$1" in
|
||||||
|
clean)
|
||||||
|
rm -rf system wiredtiger-$WT_VSN
|
||||||
|
;;
|
||||||
|
|
||||||
|
*)
|
||||||
|
test -f system/lib/libwiredtiger.a && exit 0
|
||||||
|
|
||||||
|
tar -xjf wiredtiger-$WT_VSN.tar.bz2
|
||||||
|
|
||||||
|
(cd wiredtiger-$WT_VSN/build_posix && \
|
||||||
|
../configure --disable-shared --enable-static --with-pic \
|
||||||
|
--prefix=$BASEDIR/system && \
|
||||||
|
make && make install)
|
||||||
|
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
BIN
c_src/wiredtiger-20111212.tar.bz2
Normal file
BIN
c_src/wiredtiger-20111212.tar.bz2
Normal file
Binary file not shown.
BIN
rebar
vendored
Executable file
BIN
rebar
vendored
Executable file
Binary file not shown.
10
rebar.config
Normal file
10
rebar.config
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
|
||||||
|
{port_envs, [
|
||||||
|
{"DRV_CFLAGS", "$DRV_CFLAGS -Werror -I c_src/system/include"},
|
||||||
|
{"DRV_LDFLAGS", "$DRV_LDFLAGS c_src/system/lib/libwiredtiger.a"}
|
||||||
|
]}.
|
||||||
|
|
||||||
|
{pre_hooks, [{compile, "c_src/build_deps.sh"}]}.
|
||||||
|
|
||||||
|
{post_hooks, [{clean, "c_src/build_deps.sh clean"}]}.
|
||||||
|
|
Loading…
Reference in a new issue