2011-01-07 10:30:17 +01:00
|
|
|
exec >&2
|
|
|
|
redo-ifchange runpython.c
|
2011-05-03 23:18:37 +02:00
|
|
|
ARCHES=""
|
2011-05-08 05:15:43 +02:00
|
|
|
printf "Platforms: "
|
2011-05-03 23:18:37 +02:00
|
|
|
for d in /usr/libexec/gcc/darwin/*; do
|
2011-05-08 05:15:43 +02:00
|
|
|
PLAT=$(basename "$d")
|
2011-05-08 05:19:52 +02:00
|
|
|
[ "$PLAT" != "ppc64" ] || continue # fails for some reason on my Mac
|
2011-05-08 05:15:43 +02:00
|
|
|
ARCHES="$ARCHES -arch $PLAT"
|
|
|
|
printf "$PLAT "
|
2011-05-03 23:18:37 +02:00
|
|
|
done
|
2011-05-08 05:15:43 +02:00
|
|
|
printf "\n"
|
2011-05-03 23:18:37 +02:00
|
|
|
gcc $ARCHES \
|
2011-04-25 04:51:27 +02:00
|
|
|
-Wall -o $3 runpython.c \
|
2011-01-07 10:30:17 +01:00
|
|
|
-I/usr/include/python2.5 \
|
|
|
|
-lpython2.5
|