[project @ 2001-05-22 20:49:47 by sof]
[ghc-hetmet.git] / mk / target.mk
index 75c1576..a337125 100644 (file)
@@ -305,7 +305,7 @@ endif
 
 # 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
 
 #----------------------------------------
@@ -343,10 +343,14 @@ ifeq "$(LIBOBJS)" ""
   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