1 #-----------------------------------------------------------------------------
2 # $Id: Makefile,v 1.48 2000/12/11 10:18:51 simonmar Exp $
7 include $(TOP)/mk/boilerplate.mk
9 ifeq "$(GhcWithHscBuiltViaC)" "YES"
13 ghc_407_at_least = $(shell expr "$(GhcMinVersion)" \>= 7)
14 ifeq "$(ghc_407_at_least)" "1"
15 ifneq "$(mingw32_TARGET_OS)" "1"
16 SRC_HC_OPTS += -fglasgow-exts -cpp -package concurrent -package posix -package text
18 SRC_HC_OPTS += -fglasgow-exts -cpp -package concurrent -package text
21 SRC_HC_OPTS += -fglasgow-exts -cpp -syslib concurrent -syslib posix -syslib misc
24 SUBDIRS = mangler split stats
26 # -----------------------------------------------------------------------------
27 # package configuration files...
29 all :: package.conf package.conf.inplace
31 pkgconf : Config.o Package.o PackageSrc.o Utils.o
32 $(HC) $(HC_OPTS) $(LD_OPTS) Config.o Package.o PackageSrc.o Utils.o -o pkgconf
34 package.conf.inplace : pkgconf
35 ./pkgconf in-place >$@
37 package.conf : pkgconf
40 INSTALL_DATAS += package.conf
42 CLEAN_FILES += pkgconf package.conf.inplace package.conf
44 # -----------------------------------------------------------------------------
47 override datadir=$(libdir)
48 INSTALL_DATAS += ghc-usage.txt
50 # -----------------------------------------------------------------------------
52 include $(TOP)/mk/target.mk