# 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
# 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
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 $< $@
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