aboutsummaryrefslogtreecommitdiff
path: root/build.conf
diff options
context:
space:
mode:
Diffstat (limited to 'build.conf')
-rw-r--r--build.conf16
1 files changed, 9 insertions, 7 deletions
diff --git a/build.conf b/build.conf
index b4792fb..9f6f5ab 100644
--- a/build.conf
+++ b/build.conf
@@ -7,16 +7,18 @@ create file build from files in src using rule exe
7set CXXFLAGS += "-Ilibbu++/src" 7set CXXFLAGS += "-Ilibbu++/src"
8set LDFLAGS += "-Llibbu++ -lbu++" 8set LDFLAGS += "-Llibbu++ -lbu++"
9 9
10build requires src/libbu++/libbu++.a
11
10/(.*)\.o/ requires from command "g++ {CXXFLAGS} -M {re:1}.c*" 12/(.*)\.o/ requires from command "g++ {CXXFLAGS} -M {re:1}.c*"
11 13
12rule exe matches all /(.*)\.o/ perform command ... 14rule exe matches all /(.*)\.o$/ perform command ...
13 "g++ {LDFLAGS} -o {target} {matches}" 15 "g++ {match} {LDFLAGS} -o {target}"
14 16
15rule cpp matches one /(.*)\.c(pp)?/ produces {1}.o perform command ... 17rule cpp matches one /(.*)\.c(pp)?$/ produces "{re:1}.o" perform command ...
16 "g++ {CXXFLAGS} -o {target} {match}" 18 "g++ {CXXFLAGS} -c -o {target} {match}"
17 19
18rule bison matches one /(.*)\.y/ produces {1}.tab.c, {1}.tab.h perform ... 20rule bison matches one /(.*)\.y$/ produces "{re:1}.tab.c", "{re:1}.tab.h" ...
19 command "bison {match}" 21 perform command "bison {match}"
20 22
21rule flex matches one /(.*)\.l/ produces {1}.yy.c perform ... 23rule flex matches one /(.*)\.l$/ produces "{re:1}.yy.c" perform ...
22 command "flex --bison-bridge --bison-locations -o {target} {match}" 24 command "flex --bison-bridge --bison-locations -o {target} {match}"