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

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

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

INCLUDES=-I/usr/local/include

$GCC $@ $INCLUDES 
