@@ -1,9 +1,31 @@
1GMP_INCLUDE_DIR :=
1GMP_INCLUDE_DIR :=
4−# Mac OS X: SHLIB_SUFFIX :=.dylib
5−# Windows: SHLIB_SUFFIX :=.DLL
6CABAL :=cabal
3CABAL :=cabal
7CABALFLAGS :=
4CABALFLAGS :=
8## Enable Java RTS:
5## Enable Java RTS:
9#CABALFLAGS :=-f Java
6#CABALFLAGS :=-f Java
8+MACHINE := $(shell $(CC) -dumpmachine)
9+ifneq (, $(findstring darwin, $(MACHINE)))
12+ifneq (, $(findstring cygwin, $(MACHINE)))
15+ifneq (, $(findstring mingw, $(MACHINE)))
24+ SHLIB_SUFFIX :=.dylib