source: trunk/ffigen4/source/h-to-ffi-common@ 63

Last change on this file since 63 was 22, checked in by gb, 20 years ago

Allow -pthread*, since some GCC frontends accept -pthreads as well as -pthread.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
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.