From d8ee31a38b280e69c0b19e19992fc1df9c84c08c Mon Sep 17 00:00:00 2001 From: Ian Lynagh Date: Fri, 18 Jul 2008 16:53:17 +0000 Subject: Build runghc with Cabal --- utils/runghc/Makefile | 48 +++--------------------------------------------- 1 file changed, 3 insertions(+), 45 deletions(-) (limited to 'utils/runghc/Makefile') diff --git a/utils/runghc/Makefile b/utils/runghc/Makefile index 54245a3397..37e2a1db5f 100644 --- a/utils/runghc/Makefile +++ b/utils/runghc/Makefile @@ -1,49 +1,7 @@ + TOP=../.. include $(TOP)/mk/boilerplate.mk +include $(TOP)/mk/cabal.mk -# Beyond stage 1, honour any Mac OS X depolyment target options. If we use -# these options in stage 1 we get a linker error if the bootstrap compiler is -# for a more recent OS version -ifeq "$(stage)" "2" -SRC_CC_OPTS += $(MACOSX_DEPLOYMENT_CC_OPTS) -SRC_HC_OPTS += $(addprefix -optc, $(MACOSX_DEPLOYMENT_CC_OPTS)) -SRC_LD_OPTS += $(addprefix -optl, $(MACOSX_DEPLOYMENT_LD_OPTS)) -endif - -ifeq "$(ghc_ge_605)" "NO" -SRC_HC_OPTS += -cpp -endif - -# We have two version: the inplace version compiled by the bootstrap compiler -# and the install version compiled by the stage 1 compiler -ifeq "$(stage)" "2" -HS_PROG = runghc$(exeext) -else -HS_PROG = runghc-inplace$(exeext) -endif -INSTALL_PROGS += $(HS_PROG) - -UseGhcForCc = YES -SRC_MKDEPENDC_OPTS += -I$(GHC_INCLUDE_DIR) - -SRC_HC_OPTS += -Wall - -RUNHASKELL_PROG = runhaskell$(exeext) -all :: $(RUNHASKELL_PROG) - -$(RUNHASKELL_PROG) : $(HS_PROG) - $(CP) $< $(RUNHASKELL_PROG) - -MOSTLY_CLEAN_FILES += $(RUNHASKELL_PROG) - -ifneq "$(NO_INSTALL_RUNHASKELL)" "YES" -INSTALL_PROGS += $(RUNHASKELL_PROG) -endif - -binary-dist:: - $(INSTALL_DIR) $(BIN_DIST_DIR)/utils/runghc - $(INSTALL_DATA) Makefile $(BIN_DIST_DIR)/utils/runghc/ - $(INSTALL_PROGRAM) $(HS_PROG) $(BIN_DIST_DIR)/utils/runghc/ - $(INSTALL_PROGRAM) $(RUNHASKELL_PROG) $(BIN_DIST_DIR)/utils/runghc/ +# XXX Need to make runhaskell somehow -include $(TOP)/mk/target.mk -- cgit v1.2.1