X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ghc%2Fdriver%2FMakefile;h=a6faed482ce696618c3820f097e4dc6cb3cc3072;hb=0f9750be555082f42ac65a5e8029947bf23fc9e2;hp=cd27d6f618236de25666a08e2d8ccda466efc6e1;hpb=ddde1657f4c01d48377ec7aa73bc605413ec6e29;p=ghc-hetmet.git diff --git a/ghc/driver/Makefile b/ghc/driver/Makefile index cd27d6f..a6faed4 100644 --- a/ghc/driver/Makefile +++ b/ghc/driver/Makefile @@ -1,71 +1,28 @@ -#----------------------------------------------------------------------------- +# -----------------------------------------------------------------------------= +# $Id: Makefile,v 1.74 2002/09/25 10:32:34 simonmar Exp $ +# +# (c) The University of Glasgow 2002 # TOP=.. -CURRENT_DIR=ghc/driver include $(TOP)/mk/boilerplate.mk -# hack for ghci-inplace script, see below -INSTALLING=1 - -ifeq "$(INSTALLING)" "1" SUBDIRS = mangler split ghc ghci -endif - -# ----------------------------------------------------------------------------- -# package configuration files... - -PKGCONF_OPTS = "$(TARGETPLATFORM)" \ - "$(CURRENT_DIR)" \ - "$(HaveLibGmp)" \ - "$(LibsReadline)" \ - "$(GHC_LIB_DIR)" \ - "$(GHC_RUNTIME_DIR)" \ - "$(GHC_UTILS_DIR)" \ - "$(GHC_INCLUDE_DIR)" \ - "$(X_CFLAGS)" \ - "$(X_LIBS)" - -# the latter two are needed to setup the package details for hslibs/xlib - -SRC_HC_OPTS += -fglasgow-exts -cpp - -ghc_407_at_least = $(shell if (test $(GhcCanonVersion) -ge 407); then echo YES; else echo NO; fi) -ifeq "$(ghc_407_at_least)" "YES" -SRC_HC_OPTS += -package concurrent -package text -ifneq "$(mingw32_TARGET_OS)" "1" -SRC_HC_OPTS += -package posix -endif -else -SRC_HC_OPTS += -syslib concurrent -syslib posix -syslib misc -endif +boot all :: package.conf.inplace package.conf -ifeq "$(GhcRtsThreaded)" "YES" -SRC_HC_OPTS +=-DTHREADED_RTS -endif +package.conf.inplace : + echo "[]" > $@ -SRC_HC_OPTS += -DWANT_PRETTY -SRC_HC_OPTS += $(filter -D% -U%,$(GhcRtsCcOpts)) - -all :: package.conf package.conf.inplace - -HS_OBJS = Package.o PackageSrc.o Utils.o -HS_PROG = pkgconf - -package.conf.inplace : $(HS_PROG) - ./$(HS_PROG) in-place $(PKGCONF_OPTS) >$@ - -package.conf : pkgconf - ./$(HS_PROG) install $(PKGCONF_OPTS) >$@ - -Package.o : ../utils/ghc-pkg/Package.hs +package.conf : + echo "[]" > $@ override datadir = $(libdir) INSTALL_DATAS += package.conf ghc-usage.txt -CLEAN_FILES += Main.hi pkgconf package.conf.inplace package.conf - -# ----------------------------------------------------------------------------- +# Since cleaning effectively uninstalls all the packages, we must +# remove the stamp files that the build system uses to avoid unnecessarily +# re-installing packages. +CLEAN_FILES += package.conf.inplace package.conf stamp-pkg-conf* include $(TOP)/mk/target.mk