From 73d53b0962cb19a6d2a7686de658a5540ab07017 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Mon, 31 Jul 2006 22:50:47 +0000 Subject: It almost builds, we need to get rid of duplicate list entries and actually store the commands somewhere so the target handler can decide if they need to be run. --- build.conf | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'build.conf') diff --git a/build.conf b/build.conf index b4792fb..9f6f5ab 100644 --- a/build.conf +++ b/build.conf @@ -7,16 +7,18 @@ create file build from files in src using rule exe set CXXFLAGS += "-Ilibbu++/src" set LDFLAGS += "-Llibbu++ -lbu++" +build requires src/libbu++/libbu++.a + /(.*)\.o/ requires from command "g++ {CXXFLAGS} -M {re:1}.c*" -rule exe matches all /(.*)\.o/ perform command ... - "g++ {LDFLAGS} -o {target} {matches}" +rule exe matches all /(.*)\.o$/ perform command ... + "g++ {match} {LDFLAGS} -o {target}" -rule cpp matches one /(.*)\.c(pp)?/ produces {1}.o perform command ... - "g++ {CXXFLAGS} -o {target} {match}" +rule cpp matches one /(.*)\.c(pp)?$/ produces "{re:1}.o" perform command ... + "g++ {CXXFLAGS} -c -o {target} {match}" -rule bison matches one /(.*)\.y/ produces {1}.tab.c, {1}.tab.h perform ... - command "bison {match}" +rule bison matches one /(.*)\.y$/ produces "{re:1}.tab.c", "{re:1}.tab.h" ... + perform command "bison {match}" -rule flex matches one /(.*)\.l/ produces {1}.yy.c perform ... +rule flex matches one /(.*)\.l$/ produces "{re:1}.yy.c" perform ... command "flex --bison-bridge --bison-locations -o {target} {match}" -- cgit v1.2.3