1 #-----------------------------------------------------------------------------
2 # $Id: Makefile,v 1.68 2001/08/04 06:09:24 ken Exp $
7 include $(TOP)/mk/boilerplate.mk
9 # hack for ghci-inplace script, see below
12 ifeq "$(INSTALLING)" "1"
13 SUBDIRS = mangler split ghc ghci
16 # -----------------------------------------------------------------------------
17 # package configuration files...
19 PKGCONF_OPTS = "$(TARGETPLATFORM)" \
24 "$(GHC_RUNTIME_DIR)" \
28 ghc_407_at_least = $(shell expr "$(GhcVersion)" \>= 4.07)
29 ifeq "$(ghc_407_at_least)" "1"
30 ifneq "$(mingw32_TARGET_OS)" "1"
31 SRC_HC_OPTS += -fglasgow-exts -cpp -package concurrent -package posix -package text
33 SRC_HC_OPTS += -fglasgow-exts -cpp -package concurrent -package text
36 SRC_HC_OPTS += -fglasgow-exts -cpp -syslib concurrent -syslib posix -syslib misc
39 SRC_HC_OPTS += -DWANT_PRETTY
40 SRC_HC_OPTS += $(filter -D% -U%,$(GhcRtsCcOpts))
42 all :: package.conf package.conf.inplace
44 HS_OBJS = Package.o PackageSrc.o Utils.o
47 package.conf.inplace : $(HS_PROG)
48 ./$(HS_PROG) in-place $(PKGCONF_OPTS) >$@
50 package.conf : pkgconf
51 ./$(HS_PROG) install $(PKGCONF_OPTS) >$@
53 Package.o : ../utils/ghc-pkg/Package.hs
55 override datadir = $(libdir)
56 INSTALL_DATAS += package.conf ghc-usage.txt
58 CLEAN_FILES += Main.hi pkgconf package.conf.inplace package.conf
60 # -----------------------------------------------------------------------------
62 include $(TOP)/mk/target.mk