# Object and interface files have suffixes tagged with their ways
ifneq "$(way)" ""
-SRC_HC_OPTS += -hisuf $(way_)hi
+SRC_HC_OPTS += -hisuf $(way_)hi -hcsuf $(way_)hc -osuf $(way_)o
endif
#----------------------------------------
endif
endif
+STUBOBJS += $(patsubst %.c,%.o,$(wildcard *_hsc.c))
+SRC_CC_OPTS += -I$(GHC_INCLUDE_DIR) -I$(GHC_RUNTIME_DIR)
+
ifeq "$(IS_CBITS_LIB)" "YES"
override datadir:=$(libdir)/includes
INSTALL_DATAS += Hs$(shell perl -e 'print ucfirst "$(HSLIB)"').h
-SRC_CC_OPTS += -I$(GHC_INCLUDE_DIR) -I$(GHC_RUNTIME_DIR)
+else
+SRC_CC_OPTS += -Icbits
endif
endif # HSLIB