source: branches/ffigen-linuxarm/source/h-to-ffi-common@ 75

Last change on this file since 75 was 71, checked in by gb, 14 years ago

New.

File size: 370 bytes
Line 
1while [ $# -gt 1 ]
2do
3 case ${1} in
4 -pthread*)
5 CFLAGS="${CFLAGS} -D_REENTRANT"
6 shift
7 ;;
8 -x)
9 shift
10 shift
11 ;;
12 *)
13 CFLAGS="${CFLAGS} ${1}"
14 shift
15 ;;
16 esac
17done
18
19echo +++ ${1}
20mkdir -p .`dirname ${1}`
21OFILE=.`dirname ${1}`/`basename ${1} .h`.ffi
22${GEN} ${CFLAGS} -o ${OFILE} ${1}
23
Note: See TracBrowser for help on using the repository browser.