1 #-----------------------------------------------------------------------------
2 # $Id: Makefile,v 1.65 2001/06/12 17:08:11 simonmar 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
41 all :: package.conf package.conf.inplace
43 HS_OBJS = Package.o PackageSrc.o Utils.o
46 package.conf.inplace : $(HS_PROG)
47 ./$(HS_PROG) in-place $(PKGCONF_OPTS) >$@
49 package.conf : pkgconf
50 ./$(HS_PROG) install $(PKGCONF_OPTS) >$@
52 Package.o : ../utils/ghc-pkg/Package.hs
54 override datadir = $(libdir)
55 INSTALL_DATAS += package.conf ghc-usage.txt
57 CLEAN_FILES += Main.hi pkgconf package.conf.inplace package.conf
59 # -----------------------------------------------------------------------------
61 include $(TOP)/mk/target.mk