repo.or.cz
/
blocksruntime.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Add support files to build, test and install Block.h and libBlocksRuntime.a
[blocksruntime.git]
/
buildlib
blob
9f0f50bd6cb8adb74523e3d0be6f9b99a8537feb
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
-o
$SRC
/
runtime.o
-I
.
$SRC
/
runtime.c \
12
&&
$AR
cr
$LIB $SRC
/
data.o
$SRC
/
runtime.o \
13
&&
$RANLIB $LIB