aboutsummaryrefslogtreecommitdiff
path: root/extra/nawk/build
blob: f66d969352474c1805d3f4a525843f5661b43462 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh -e

printf 'cflags = %s\nldflags = %s\ncc = %s\nyacc = %s\ndestdir = %s\n' \
       "$CFLAGS -Wall -pedantic -Wcast-qual -O2" \
       "$LDFLAGS -static" \
       "${CC:-cc}" \
       "${YACC:-yacc}" \
       "$1" |
cat - ninja.in > build.ninja

ninja
ninja install