LIB=test.so OPTIONS=-fPIC -XForeignFunctionInterface -no-hs-main -optl -shared -rdynamic #OPTIONS=-dynamic -fPIC -XForeignFunctionInterface -no-hs-main -optl -shared -rdynamic GHC=ghc #GHC=/home/CIRG/ew/local/bin/ghc all: $(GHC) $(OPTIONS) --make CLibrary -o $(LIB) clean: rm -rf *.hi *.o CLibrary_stub.c CLibrary_stub.h pretty: clean rm -rf *~ $(LIB)