diff options
author | Mike Buland <eichlan@xagasoft.com> | 2006-08-01 03:09:58 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2006-08-01 03:09:58 +0000 |
commit | 935bc7d5223883d87f58a6798f4a0ade7df95afc (patch) | |
tree | 83119cd6b407c6e17c21774f1f0cea940d9c948c /build.conf | |
parent | 73d53b0962cb19a6d2a7686de658a5540ab07017 (diff) | |
download | build-935bc7d5223883d87f58a6798f4a0ade7df95afc.tar.gz build-935bc7d5223883d87f58a6798f4a0ade7df95afc.tar.bz2 build-935bc7d5223883d87f58a6798f4a0ade7df95afc.tar.xz build-935bc7d5223883d87f58a6798f4a0ade7df95afc.zip |
It actually builds, now it just needs dependancy tracking, and maybe auto-target
check triggering.
Diffstat (limited to 'build.conf')
-rw-r--r-- | build.conf | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -7,9 +7,11 @@ 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 | for build set LDFLAGS += -lreadline | ||
11 | |||
10 | build requires src/libbu++/libbu++.a | 12 | build requires src/libbu++/libbu++.a |
11 | 13 | ||
12 | /(.*)\.o/ requires from command "g++ {CXXFLAGS} -M {re:1}.c*" | 14 | /(.*)\.o$/ requires from command "g++ {CXXFLAGS} -M {re:1}.c*" |
13 | 15 | ||
14 | rule exe matches all /(.*)\.o$/ perform command ... | 16 | rule exe matches all /(.*)\.o$/ perform command ... |
15 | "g++ {match} {LDFLAGS} -o {target}" | 17 | "g++ {match} {LDFLAGS} -o {target}" |
@@ -18,7 +20,7 @@ rule cpp matches one /(.*)\.c(pp)?$/ produces "{re:1}.o" perform command ... | |||
18 | "g++ {CXXFLAGS} -c -o {target} {match}" | 20 | "g++ {CXXFLAGS} -c -o {target} {match}" |
19 | 21 | ||
20 | rule bison matches one /(.*)\.y$/ produces "{re:1}.tab.c", "{re:1}.tab.h" ... | 22 | rule bison matches one /(.*)\.y$/ produces "{re:1}.tab.c", "{re:1}.tab.h" ... |
21 | perform command "bison {match}" | 23 | perform command "bison -v -b{re:1} {match}" |
22 | 24 | ||
23 | rule flex matches one /(.*)\.l$/ produces "{re:1}.yy.c" perform ... | 25 | rule flex matches one /(.*)\.l$/ produces "{re:1}.yy.c" perform ... |
24 | command "flex --bison-bridge --bison-locations -o {target} {match}" | 26 | command "flex --bison-bridge --bison-locations -o {target} {match}" |