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
Eliminate some compiler warnings
[blocksruntime.git]
/
buildlib
blob
e393a8a160626c79cc6e23c6cae6df7081bbb286
1
#!/bin/sh
2
:
${CC:=gcc}
3
echo
"CC=
$CC
"
4
:
${AR:=ar}
5
echo
"AR=
$AR
"
6
:
${RANLIB:=ranlib}
7
echo
"RANLIB=
$RANLIB
"
8
:
${CFLAGS:=-O2}
9
echo
"CFLAGS=
$CFLAGS
"
10
set -v
11
LIB
=
libBlocksRuntime.a
12
SRC
=
BlocksRuntime
13
if
test -f
$LIB
;
then
rm
$LIB
;
fi
14
"
$CC
"
-c
$CFLAGS
-o
$SRC
/
data.o
$SRC
/
data.c \
15
&&
"
$CC
"
-c
$CFLAGS
-o
$SRC
/
runtime.o
-I
.
$SRC
/
runtime.c \
16
&&
"
$AR
"
cr
$LIB $SRC
/
data.o
$SRC
/
runtime.o \
17
&&
"
$RANLIB
"
$LIB