#!/bin/sh
# Shell script to compile phc plugins

if test `uname` = 'Darwin'
then
	GCC="g++ -flat_namespace -bundle -undefined suppress";
else
	GCC="g++ -shared -fpic";
fi

if test $# -eq 0
then
	echo "usage: $0 -o myplugin.so myplugin.cpp [other compiler options]"
	exit
fi

INCLUDES=-I/usr/include

$GCC $@ $INCLUDES 
