diff options
Diffstat (limited to '')
| -rw-r--r-- | congo | 26 |
1 files changed, 13 insertions, 13 deletions
| @@ -1,16 +1,16 @@ | |||
| 1 | 1 | ||
| 2 | target( all ) | 2 | default action: create congo, congod |
| 3 | { | ||
| 4 | build( congo ); | ||
| 5 | build( congod ); | ||
| 6 | } | ||
| 7 | 3 | ||
| 8 | target( congo ) | 4 | create file congod from files in src/congod using rule exe |
| 9 | { | 5 | create file congo from files in src/congo using rule exe |
| 10 | type = executable; | ||
| 11 | linker = c++; | ||
| 12 | |||
| 13 | uses( src/congo ); | ||
| 14 | uses( src/congod ); | ||
| 15 | } | ||
| 16 | 6 | ||
| 7 | congod requires libcongo.a | ||
| 8 | congo requires libcongo.a | ||
| 9 | |||
| 10 | set CXXFLAGS += "-Ilibbu++/src" | ||
| 11 | set LDFLAGS += "-Llibbu++ -lbu++" | ||
| 12 | |||
| 13 | for congo set LDFLAGS += "-lreadline" | ||
| 14 | |||
| 15 | rule exe matches all /(.*)\.o/ perform command "g++ {matches} {LDFLAGS} -o {target}" | ||
| 16 | rule cpp matches one /(.*)\.cpp/ produces {1}.o perform command "g++ {CXXFLAGS} -o {target} {match}" | ||
