Mercurial > hg > quicktun
diff build.sh @ 38:d9f5caa13898
Added support for NetBSD, added command line parsing to provide configuration options
author | Ivo Smits <Ivo@UCIS.nl> |
---|---|
date | Mon, 06 May 2013 22:53:20 +0200 |
parents | b876afa5a72a |
children | c8d176154d7c |
line wrap: on
line diff
--- a/build.sh Mon May 06 21:28:45 2013 +0200 +++ b/build.sh Mon May 06 22:53:20 2013 +0200 @@ -1,6 +1,6 @@ #!/bin/sh -if [ "$(uname -s)" = "OpenBSD" -o "$(uname -s)" = "FreeBSD" ]; then +if [ "$(uname -s)" = "OpenBSD" -o "$(uname -s)" = "FreeBSD" -o "$(uname -s)" = "NetBSD" ]; then echo "Detected *BSD" tar="gtar" elif [ "$(uname -s)" = "SunOS" ]; then @@ -53,6 +53,8 @@ export CPATH="/usr/include/nacl/:${CPATH}" fi +CFLAGS="$CFLAGS -DQT_VERSION=\"`cat version`\"" + echo Building combined binary... gcc $CFLAGS -c -DCOMBINED_BINARY src/proto.raw.c -o obj/proto.raw.o gcc $CFLAGS -c -DCOMBINED_BINARY src/proto.nacl0.c -o obj/proto.nacl0.o