Here's a bit from a windows makefile:
Code:
.cpp.p:
cl -DWINDOWS -I..\src -c $*.cpp -o $*.obj /Zi
link /dll /out:$@ $*.obj ..\ac3d.lib /DEBUG /DEBUGTYPE:CV
for a script, you'll need to replace $@ by pluginname.p and $* by the source filename without extension