[project @ 2001-05-20 11:25:14 by qrczak]
authorqrczak <unknown>
Sun, 20 May 2001 11:25:14 +0000 (11:25 +0000)
committerqrczak <unknown>
Sun, 20 May 2001 11:25:14 +0000 (11:25 +0000)
Compile and link *_hsc.c.

mk/target.mk

index 295ec4c..a337125 100644 (file)
@@ -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