summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
5993e63)
clean up; move some code into more relevant parts of the file.
$(HS_PROG) :: $(HS_OBJS)
$(CC) -o $@ $(HC_BOOT_CC_OPTS) $(HC_BOOT_LD_OPTS) $(HS_OBJS) $(HC_BOOT_LIBS)
endif
$(HS_PROG) :: $(HS_OBJS)
$(CC) -o $@ $(HC_BOOT_CC_OPTS) $(HC_BOOT_LD_OPTS) $(HS_OBJS) $(HC_BOOT_LIBS)
endif
-endif
-
-# Object and interface files have suffixes tagged with their ways
-ifneq "$(way)" ""
-SRC_HC_OPTS += -hisuf $(way_)hi -hcsuf $(way_)hc -osuf $(way_)o
-endif
-# add syslib dependencies and current package name
-SRC_HC_OPTS += $(patsubst %, -package %, $(PACKAGE_DEPS))
-ifneq "$(PACKAGE)" ""
-SRC_HC_OPTS += -package-name $(PACKAGE)
-else
-# No library, we are actually building the tools
+# for building a Haskell program, we add FptoolsHcOpts
SRC_HC_OPTS += $(FptoolsHcOpts)
endif
SRC_HC_OPTS += $(FptoolsHcOpts)
endif
+# add syslib dependencies and current package name
+SRC_HC_OPTS += -package-name $(PACKAGE)
+SRC_HC_OPTS += $(patsubst %, -package %, $(PACKAGE_DEPS))
+
ifeq "$(IS_CBITS_LIB)" "YES"
_cbits := _cbits
STUBOBJS += $(HSC_C_OBJS)
ifeq "$(IS_CBITS_LIB)" "YES"
_cbits := _cbits
STUBOBJS += $(HSC_C_OBJS)
@$(MAKE) EXTRA_INSTALL_OPTS='-s' install
endif
@$(MAKE) EXTRA_INSTALL_OPTS='-s' install
endif
-###########################################
+##############################################################################
#
# Targets: check tags show
#
#
# Targets: check tags show
#
-###########################################
+##############################################################################
#------------------------------------------------------------
# Check
#------------------------------------------------------------
# Check
- @echo '$(VALUE)=$($(VALUE))'
+ @echo '$(VALUE)="$($(VALUE))"'
-#--------------------------------------------------------------------------
-# SGML Documentation
+################################################################################
+# SGML Documentation
+#
+################################################################################
+
.PHONY: dvi ps html pdf rtf
ifneq "$(SGML_DOC)" ""
.PHONY: dvi ps html pdf rtf
ifneq "$(SGML_DOC)" ""
$(RM) -rf $(SGML_DOC)
endif
$(RM) -rf $(SGML_DOC)
endif
-###########################################
+##############################################################################
-###########################################
+##############################################################################
# we have to be careful about recursion here; since all the clean
# targets are recursive, we don't want to make eg. distclean depend on
# we have to be careful about recursion here; since all the clean
# targets are recursive, we don't want to make eg. distclean depend on
@echo 'deletes files that may need special tools to rebuild.'
rm -f $(MOSTLY_CLEAN_FILES) $(CLEAN_FILES) $(DIST_CLEAN_FILES) $(MAINTAINER_CLEAN_FILES)
@echo 'deletes files that may need special tools to rebuild.'
rm -f $(MOSTLY_CLEAN_FILES) $(CLEAN_FILES) $(DIST_CLEAN_FILES) $(MAINTAINER_CLEAN_FILES)
-#################################################################################
+################################################################################
-#################################################################################
+################################################################################
# Here is the ingenious jiggery pokery that allows you to build multiple versions
# of a program in a single build tree.
# Here is the ingenious jiggery pokery that allows you to build multiple versions
# of a program in a single build tree.
+# -------------------------------------------------------------------------
+# Object and interface files have suffixes tagged with their ways
+
+ifneq "$(way)" ""
+SRC_HC_OPTS += -hisuf $(way_)hi -hcsuf $(way_)hc -osuf $(way_)o
+endif
+
+# -------------------------------------------------------------------------
+# Rules to invoke the current target recursively for each way
+
ifneq "$(WAYS)" ""
ifeq "$(way)" ""
ifneq "$(WAYS)" ""
ifeq "$(way)" ""