From 28e92029752693ffe33de12c10de3e7bd39a3c94 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Sun, 30 Jul 2006 03:28:46 +0000 Subject: Figured out a format I like, we'll see what happens. --- congo | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'congo') diff --git a/congo b/congo index 336a196..ddf7e7b 100644 --- a/congo +++ b/congo @@ -1,16 +1,16 @@ -target( all ) -{ - build( congo ); - build( congod ); -} +default action: create congo, congod -target( congo ) -{ - type = executable; - linker = c++; - - uses( src/congo ); - uses( src/congod ); -} +create file congod from files in src/congod using rule exe +create file congo from files in src/congo using rule exe +congod requires libcongo.a +congo requires libcongo.a + +set CXXFLAGS += "-Ilibbu++/src" +set LDFLAGS += "-Llibbu++ -lbu++" + +for congo set LDFLAGS += "-lreadline" + +rule exe matches all /(.*)\.o/ perform command "g++ {matches} {LDFLAGS} -o {target}" +rule cpp matches one /(.*)\.cpp/ produces {1}.o perform command "g++ {CXXFLAGS} -o {target} {match}" -- cgit v1.2.3