diff options
author | Mike Buland <eichlan@xagasoft.com> | 2006-07-31 22:50:47 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2006-07-31 22:50:47 +0000 |
commit | 73d53b0962cb19a6d2a7686de658a5540ab07017 (patch) | |
tree | 9a8fd737b8f77ec9ccab43d89dc54b7e72d4d90d /build.conf | |
parent | b672fa69c4c98509f8ee251b87300e3fcbe6bdc8 (diff) | |
download | build-73d53b0962cb19a6d2a7686de658a5540ab07017.tar.gz build-73d53b0962cb19a6d2a7686de658a5540ab07017.tar.bz2 build-73d53b0962cb19a6d2a7686de658a5540ab07017.tar.xz build-73d53b0962cb19a6d2a7686de658a5540ab07017.zip |
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.
Diffstat (limited to '')
-rw-r--r-- | build.conf | 16 |
1 files changed, 9 insertions, 7 deletions
@@ -7,16 +7,18 @@ create file build from files in src using rule exe | |||
7 | set CXXFLAGS += "-Ilibbu++/src" | 7 | set CXXFLAGS += "-Ilibbu++/src" |
8 | set LDFLAGS += "-Llibbu++ -lbu++" | 8 | set LDFLAGS += "-Llibbu++ -lbu++" |
9 | 9 | ||
10 | build requires src/libbu++/libbu++.a | ||
11 | |||
10 | /(.*)\.o/ requires from command "g++ {CXXFLAGS} -M {re:1}.c*" | 12 | /(.*)\.o/ requires from command "g++ {CXXFLAGS} -M {re:1}.c*" |
11 | 13 | ||
12 | rule exe matches all /(.*)\.o/ perform command ... | 14 | rule exe matches all /(.*)\.o$/ perform command ... |
13 | "g++ {LDFLAGS} -o {target} {matches}" | 15 | "g++ {match} {LDFLAGS} -o {target}" |
14 | 16 | ||
15 | rule cpp matches one /(.*)\.c(pp)?/ produces {1}.o perform command ... | 17 | rule cpp matches one /(.*)\.c(pp)?$/ produces "{re:1}.o" perform command ... |
16 | "g++ {CXXFLAGS} -o {target} {match}" | 18 | "g++ {CXXFLAGS} -c -o {target} {match}" |
17 | 19 | ||
18 | rule bison matches one /(.*)\.y/ produces {1}.tab.c, {1}.tab.h perform ... | 20 | rule bison matches one /(.*)\.y$/ produces "{re:1}.tab.c", "{re:1}.tab.h" ... |
19 | command "bison {match}" | 21 | perform command "bison {match}" |
20 | 22 | ||
21 | rule flex matches one /(.*)\.l/ produces {1}.yy.c perform ... | 23 | rule flex matches one /(.*)\.l$/ produces "{re:1}.yy.c" perform ... |
22 | command "flex --bison-bridge --bison-locations -o {target} {match}" | 24 | command "flex --bison-bridge --bison-locations -o {target} {match}" |