Squelch a warning when building against the MacOSX10.4u.sdk
[blocksruntime.git] / buildlib
blob7eb0ae22102d8dbd08d21bb1b29f8d81f5a97c32
1 #!/bin/sh
2 set -v
3 : ${CC:=gcc}
4 : ${AR:=ar}
5 : ${RANLIB:=ranlib}
6 : ${CFLAGS:=-O2}
7 LIB=libBlocksRuntime.a
8 SRC=BlocksRuntime
9 if test -f $LIB; then rm $LIB; fi
10 $CC -c $CFLAGS -o $SRC/data.o $SRC/data.c \
11 && $CC -c $CFLAGS -Wno-discard-qual -o $SRC/runtime.o -I . $SRC/runtime.c \
12 && $AR cr $LIB $SRC/data.o $SRC/runtime.o \
13 && $RANLIB $LIB