#
##################################################################
+# Pre-compute the list of sources so we don't have to do this
+# multiple times. See paths.mk.
+
+PRE_SRCS := $(ALL_SRCS)
+
+##################################################################
# FPtools standard targets
#
# depend:
ifneq "$(PACKAGE)" ""
# add syslib dependencies and current package name
+
+# HACK!!! The conditional below is needed because we pass $(HC_OPTS)
+# directly to mkdependC and sometimes the C compiler in ghc/rts. Todo.
+ifneq "$(PACKAGE)" "rts"
SRC_HC_OPTS += -package-name $(PACKAGE)
+endif
+
SRC_HC_OPTS += $(patsubst %, -package %, $(PACKAGE_DEPS))
ifeq "$(IS_CBITS_LIB)" "YES"
$(RANLIB) $(libdir)/`basename $$i` ;; \
*.dll) \
$(INSTALL_DATA) -s $(INSTALL_OPTS) $$i $(libdir) ;; \
+ *.so) \
+ $(INSTALL_SHLIB) $(INSTALL_OPTS) $$i $(libdir) ;; \
*) \
$(INSTALL_DATA) $(INSTALL_OPTS) $$i $(libdir); \
esac; \