From b7a415ec0e358967fc39c046fb72f29e227e7104 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Sun, 6 Aug 2006 19:43:57 +0000 Subject: It builds with build again, and even the tests now. woo! --- build.conf | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) (limited to 'build.conf') diff --git a/build.conf b/build.conf index f5626cf..a65878d 100644 --- a/build.conf +++ b/build.conf @@ -1,18 +1,29 @@ -# This is a build file for build +# This is a build file for libbu++ default action: check libbu++.a -"clean" action: clean libbu++.a +"tests" action: check /tests\/.*/ +"clean" action: clean /.*/ +"all" action: check /.*/ create file libbu++.a from files in src using rule lib -set CXXFLAGS += "-ggdb" +for directories matching /src\/test\/(.*)/ in src/test ... + create file "tests/{re:1}" from files in "{match}" using rule exe +set CXXFLAGS += "-ggdb" set CXXFLAGS += "-Isrc -fPIC" +for targets matching /tests\/.*/ set LDFLAGS += "-L. -lbu++" +for testes/plugin set LDFLAGS += "-ldl" + /(.*)\.o$/ requires from command "g++ {CXXFLAGS} -M {re:1}.c*" +/tests\/.*/ requires libbu++.a rule lib matches all /(.*)\.o$/ perform command ... "ar cr {target} {match}" rule cpp matches one /(.*)\.c(pp)?$/ produces "{re:1}.o" perform command ... "g++ {CXXFLAGS} -c -o {target} {match}" + +rule exe matches all /(.*)\.o$/ perform command ... + "g++ -o {target} {match} {LDFLAGS}" -- cgit v1.2.3