+BINDIST_STAMPS = stamp.ffi
+INSTALL_HEADERS += ffi.h
+STATIC_LIB = libffi.a
+INSTALL_LIBS += $(STATIC_LIB)
+
+# We have to add the GHC version to the name of our dynamic libs, because
+# they will be residing in the system location along with dynamic libs from
+# other GHC installations.
+ifeq "$(BuildSharedLibs)" "YES"
+ifeq "$(Windows)" "YES"
+DYNAMIC_PROG = libffi.dll.a
+DYNAMIC_LIBS = libffi-3.dll
+RENAME_LIBS =