-#
-# If we're building the unregisterised way, it may well be for Hugs.
-# In that case, remember to bind the cbits objects into a single file
-# which hugs can load as an auxiliary object file when loading the Prelude.
-#
-ifeq "$(way)" "u"
-all :: libHSstd_cbits.u_o
-CLEAN_FILES += libHSstd_cbits.u_o
-libHSstd_cbits.u_o:
- $(RM) libHSstd_cbits.u_o
- ld -r -o libHSstd_cbits.u_o cbits/*.o
-endif
+CLEAN_FILES += \
+ $(patsubst %.hsc, %.hs, $(HSC_SRCS)) \
+ $(patsubst %.hsc, %.hs.c, $(HSC_SRCS)) \
+ $(patsubst %.hsc, %.hs.h, $(HSC_SRCS))