diff options
author | Mike Buland <eichlan@xagasoft.com> | 2012-11-06 18:21:53 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2012-11-06 18:21:53 +0000 |
commit | e7a2aa16ae7351d4c986a7ae5753ccb7ac880b8b (patch) | |
tree | 03d914da62012b6ced820a4fe64c64359bd7ddc1 /build.conf | |
parent | 1331c762c05643d7a4fcd4abeb951ed814cea47d (diff) | |
download | build-e7a2aa16ae7351d4c986a7ae5753ccb7ac880b8b.tar.gz build-e7a2aa16ae7351d4c986a7ae5753ccb7ac880b8b.tar.bz2 build-e7a2aa16ae7351d4c986a7ae5753ccb7ac880b8b.tar.xz build-e7a2aa16ae7351d4c986a7ae5753ccb7ac880b8b.zip |
Stole the packaging from libbu++ (again).
Diffstat (limited to 'build.conf')
-rw-r--r-- | build.conf | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/build.conf b/build.conf deleted file mode 100644 index cab11a8..0000000 --- a/build.conf +++ /dev/null | |||
@@ -1,35 +0,0 @@ | |||
1 | # build.conf for build, kind of whacky, eh? | ||
2 | |||
3 | default action: check targets() | ||
4 | |||
5 | set "CXXFLAGS" += "-ggdb -W -Wall" | ||
6 | |||
7 | "build": | ||
8 | rule "exe", | ||
9 | target file, | ||
10 | requires "libbu++/libbu++.a", | ||
11 | set "LDFLAGS" += "-Llibbu++ -lbu++ -ldl", | ||
12 | set "CXXFLAGS" += "-Ilibbu++", | ||
13 | input filesIn("src") filter regexp(".*\\.(cpp|y|l)$") | ||
14 | |||
15 | rule "exe": | ||
16 | matches regexp("(.*)\\.o$"), | ||
17 | aggregate toString(" "), | ||
18 | perform command("g++ -o {target} {match} {LDFLAGS}") | ||
19 | |||
20 | rule "cpp": | ||
21 | matches regexp("(.*)\\.(cpp|c)$"), | ||
22 | produces "{re:1}.o", | ||
23 | requires commandToList("g++ -M {CXXFLAGS} {match}", "make"), | ||
24 | perform command("g++ {CXXFLAGS} -c -o {target} {match}") | ||
25 | |||
26 | rule "bison": | ||
27 | matches regexp("(.*)\\.y$"), | ||
28 | produces ["{re:1}.tab.c", "{re:1}.tab.h", "{re:1}.output"], | ||
29 | perform command("bison -v -b{re:1} {match}") | ||
30 | |||
31 | rule "flex": | ||
32 | matches regexp("(.*)\\.l$"), | ||
33 | produces ["{re:1}.yy.c","{re:1}.yy.h"], | ||
34 | perform command("flex {FLEXFLAGS} {match}") | ||
35 | |||