Permalink
Browse files

Trying out the redo build tool

  • Loading branch information...
1 parent 777a4cd commit 46eaa5e900e2596463f9587b6c9ae97bc618e7d2 @orlandov committed Jan 31, 2011
Showing with 22 additions and 0 deletions.
  1. +1 −0 src/all.do
  2. +6 −0 src/binding.node.do
  3. +6 −0 src/default.o.do
  4. +1 −0 src/deps.do
  5. +4 −0 src/libmpool.a.stamp.do
  6. +4 −0 src/mpool.do
View
@@ -0,0 +1 @@
+redo-ifchange deps binding.node
View
@@ -0,0 +1,6 @@
+DEPS="statement.o
+ database.o
+ sqlite3_bindings.o"
+LDFLAGS="-L/usr/local/lib -L./ -lsqlite3"
+redo-ifchange $DEPS
+g++ -o $3 $DEPS $LDFLAGS -undefined dynamic_lookup
View
@@ -0,0 +1,6 @@
+redo-ifchange $1.cc
+INCLUDE="-I/usr/local/include/node -I/opt/local/include -I../deps/mpool-2.1.0/"
+g++ $INCLUDE -MD -MF $3.deps.tmp -c -o $3 $1.cc
+DEPS=$(sed -e "s/^$3://" -e 's/\\//g' <$3.deps.tmp)
+rm -f $3.deps.tmp
+redo-ifchange $DEPS
View
@@ -0,0 +1 @@
+redo-ifchange libmpool.a
View
@@ -0,0 +1,4 @@
+redo-ifchange $(find ../deps/mpool-2.1.0/ -name '*.c')
+cd ../deps/mpool-2.1.0
+make
+cat libmpool.a
View
@@ -0,0 +1,4 @@
+redo-ifchange `cat ../deps/mpool-2.1.0/*.c`
+cd ../deps/mpool-2.1.0
+make
+mv libmpool.a $3

0 comments on commit 46eaa5e

Please sign in to comment.