Fix bindist creation: Only the main RTS was being put in the bindists
[ghc-hetmet.git] / rts / Makefile
index 9d5d6ec..f68e9a5 100644 (file)
@@ -27,8 +27,7 @@ HC=$(GHC_INPLACE)
 
 
 # Setting _way here is a nasty hack to make sure we get libHSrts*.a etc
-# rather than just libHSrts.a when we are making and installing
-# bindists.
+# rather than just libHSrts.a when we are installing bindists.
 ifeq "$(DOING_BIN_DIST)" "YES"
 _way = *
 endif
@@ -208,6 +207,7 @@ RtsUtils_CC_OPTS += -DGhcEnableTablesNextToCode=$(DQ)$(GhcEnableTablesNextToCode
 # ffi.h triggers prototype warnings, so disable them here:
 Interpreter_CC_OPTS += -Wno-strict-prototypes
 Adjustor_CC_OPTS += -Wno-strict-prototypes
+sm/Storage_CC_OPTS += -Wno-strict-prototypes
 
 StgCRun_CC_OPTS += -w
 Typeable_CC_OPTS += -w
@@ -404,6 +404,7 @@ sm/Evac_HC_OPTS += -optc-funroll-loops
 
 ifneq "$(findstring thr, $(way))" ""
 EXTRA_SRCS += sm/Evac_thr.c sm/Scav_thr.c
+CLEAN_FILES += sm/Evac_thr.c sm/Scav_thr.c
 
 sm/Evac_thr.c : sm/Evac.c
        cp $< $@
@@ -468,5 +469,10 @@ endif
 BINDIST_EXTRAS += package.conf.in
 BINDIST_EXTRAS += $(INSTALL_LIBS)
 BINDIST_EXTRAS += $(INSTALL_LIBEXECS)
+
+# Setting _way here is a nasty hack to make sure we get libHSrts*.a etc
+# rather than just libHSrts.a when we are making bindists.
+binary-dist: _way=*
+
 include $(TOP)/mk/bindist.mk