source:
branches/ffigen-linuxarm/source/h-to-ffi-common@
72
| Last change on this file since 72 was 71, checked in by , 14 years ago | |
|---|---|
| File size: 370 bytes | |
| Line | |
|---|---|
| 1 | while [ $# -gt 1 ] |
| 2 | do |
| 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 |
| 17 | done |
| 18 | |
| 19 | echo +++ ${1} |
| 20 | mkdir -p .`dirname ${1}` |
| 21 | OFILE=.`dirname ${1}`/`basename ${1} .h`.ffi |
| 22 | ${GEN} ${CFLAGS} -o ${OFILE} ${1} |
| 23 |
Note:
See TracBrowser
for help on using the repository browser.
