diff options
-rw-r--r-- | build.conf | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/build.conf b/build.conf new file mode 100644 index 0000000..f5626cf --- /dev/null +++ b/build.conf | |||
@@ -0,0 +1,18 @@ | |||
1 | # This is a build file for build | ||
2 | |||
3 | default action: check libbu++.a | ||
4 | "clean" action: clean libbu++.a | ||
5 | |||
6 | create file libbu++.a from files in src using rule lib | ||
7 | |||
8 | set CXXFLAGS += "-ggdb" | ||
9 | |||
10 | set CXXFLAGS += "-Isrc -fPIC" | ||
11 | |||
12 | /(.*)\.o$/ requires from command "g++ {CXXFLAGS} -M {re:1}.c*" | ||
13 | |||
14 | rule lib matches all /(.*)\.o$/ perform command ... | ||
15 | "ar cr {target} {match}" | ||
16 | |||
17 | rule cpp matches one /(.*)\.c(pp)?$/ produces "{re:1}.o" perform command ... | ||
18 | "g++ {CXXFLAGS} -c -o {target} {match}" | ||