aboutsummaryrefslogtreecommitdiff
path: root/build.conf
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2009-12-21 18:04:02 +0000
committerMike Buland <eichlan@xagasoft.com>2009-12-21 18:04:02 +0000
commitfb28f6800864176be2ffca29e8e664b641f33170 (patch)
treeba9180ac442939edc4eacbe1fdae93c5a7f87cee /build.conf
parent51e21a316be6e052251b3dfc7d671061ebd67cee (diff)
downloadbuild-fb28f6800864176be2ffca29e8e664b641f33170.tar.gz
build-fb28f6800864176be2ffca29e8e664b641f33170.tar.bz2
build-fb28f6800864176be2ffca29e8e664b641f33170.tar.xz
build-fb28f6800864176be2ffca29e8e664b641f33170.zip
m3 is copied into trunk, we should be good to go, now.
Diffstat (limited to 'build.conf')
-rw-r--r--build.conf35
1 files changed, 35 insertions, 0 deletions
diff --git a/build.conf b/build.conf
new file mode 100644
index 0000000..cab11a8
--- /dev/null
+++ b/build.conf
@@ -0,0 +1,35 @@
1# build.conf for build, kind of whacky, eh?
2
3default action: check targets()
4
5set "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
15rule "exe":
16 matches regexp("(.*)\\.o$"),
17 aggregate toString(" "),
18 perform command("g++ -o {target} {match} {LDFLAGS}")
19
20rule "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
26rule "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
31rule "flex":
32 matches regexp("(.*)\\.l$"),
33 produces ["{re:1}.yy.c","{re:1}.yy.h"],
34 perform command("flex {FLEXFLAGS} {match}")
35