added '--shared' switch to makefilegen