diff options
author | Mike Buland <eichlan@xagasoft.com> | 2006-08-01 06:27:43 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2006-08-01 06:27:43 +0000 |
commit | 46a3cfdd7b2a77a308a6ac3fbca3b675c4f44fe7 (patch) | |
tree | 795ace6809cbba6019f5517b345a5ab20fed5b9a /build.conf | |
parent | 935bc7d5223883d87f58a6798f4a0ade7df95afc (diff) | |
download | build-46a3cfdd7b2a77a308a6ac3fbca3b675c4f44fe7.tar.gz build-46a3cfdd7b2a77a308a6ac3fbca3b675c4f44fe7.tar.bz2 build-46a3cfdd7b2a77a308a6ac3fbca3b675c4f44fe7.tar.xz build-46a3cfdd7b2a77a308a6ac3fbca3b675c4f44fe7.zip |
It builds fine, and can build other things as well, like squirrelmud, and clean.
I need to fix the dependancy tracking so that it will only check if it needs to,
sort of like pymake. And does each file as it gets to it.
Diffstat (limited to '')
-rw-r--r-- | build.conf | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -1,14 +1,13 @@ | |||
1 | # This is a build file for build | 1 | # This is a build file for build |
2 | 2 | ||
3 | default action: check build | 3 | default action: check build |
4 | "clean" action: clean build | ||
4 | 5 | ||
5 | create file build from files in src using rule exe | 6 | create file build from files in src using rule exe |
6 | 7 | ||
7 | set CXXFLAGS += "-Ilibbu++/src" | 8 | set CXXFLAGS += "-Ilibbu++/src" |
8 | set LDFLAGS += "-Llibbu++ -lbu++" | 9 | set LDFLAGS += "-Llibbu++ -lbu++" |
9 | 10 | ||
10 | for build set LDFLAGS += -lreadline | ||
11 | |||
12 | build requires src/libbu++/libbu++.a | 11 | build requires src/libbu++/libbu++.a |
13 | 12 | ||
14 | /(.*)\.o$/ requires from command "g++ {CXXFLAGS} -M {re:1}.c*" | 13 | /(.*)\.o$/ requires from command "g++ {CXXFLAGS} -M {re:1}.c*" |
@@ -19,8 +18,8 @@ rule exe matches all /(.*)\.o$/ perform command ... | |||
19 | rule cpp matches one /(.*)\.c(pp)?$/ produces "{re:1}.o" perform command ... | 18 | rule cpp matches one /(.*)\.c(pp)?$/ produces "{re:1}.o" perform command ... |
20 | "g++ {CXXFLAGS} -c -o {target} {match}" | 19 | "g++ {CXXFLAGS} -c -o {target} {match}" |
21 | 20 | ||
22 | rule bison matches one /(.*)\.y$/ produces "{re:1}.tab.c", "{re:1}.tab.h" ... | 21 | rule bison matches one /(.*)\.y$/ produces "{re:1}.tab.c", "{re:1}.tab.h", ... |
23 | perform command "bison -v -b{re:1} {match}" | 22 | "{re:1}.output" perform command "bison -v -b{re:1} {match}" |
24 | 23 | ||
25 | rule flex matches one /(.*)\.l$/ produces "{re:1}.yy.c" perform ... | 24 | rule flex matches one /(.*)\.l$/ produces "{re:1}.yy.c" perform ... |
26 | command "flex --bison-bridge --bison-locations -o {target} {match}" | 25 | command "flex --bison-bridge --bison-locations -o {target} {match}" |