3 bindist_abs_root = @hardtop@
4 FPTOOLS_TOP_ABS = @hardtop@
6 # This Makefile isn't used on Windows, so we always have ghc-pkg.bin
7 # rather than ghc-pkg.exe.
8 GHC_PKG_PROG = $(FPTOOLS_TOP_ABS)/utils/ghc-pkg/ghc-pkg.bin
10 # Where the different pieces of the bundle should go:
12 libdir = @libdir@/$(package)-$(version)
13 libexecdir = $(libdir)
14 datarootdir = @datarootdir@
15 # datadir is set to libdir here as GHC needs package.conf and unlit
16 # to be in the same place (and things like ghc-pkg need to agree on
17 # where package.conf is, so we just set it globally).
20 platform = @TargetPlatform@
22 exec_prefix = @exec_prefix@
24 mandir = $(datarootdir)/man
26 headerdir = $(libdir)/include
29 docdir = @datadir@/doc/ghc
45 # Sigh - the autoconf macro for INSTALL will subst a relative path to the fallback
46 # install-sh script (if chosen). This not terribly useful to us, so we convert
47 # it into an abs. path.
49 INSTALL := $(subst ./install-sh,$(FPTOOLS_TOP_ABS)/install-sh,$(INSTALL))
57 RAWCPP_FLAGS = -undef -traditional
59 #----------end of user-serviceable parts------------
62 # How to install the different pieces
64 INSTALL_DIR = $(bindist_abs_root)/utils/mkdirhier/mkdirhier
65 INSTALL_BIN = $(INSTALL) $(INSTALL_BIN_OPTS)
66 INSTALL_LIB = $(INSTALL) $(INSTALL_LIB_OPTS)
67 INSTALL_DATA = $(INSTALL) $(INSTALL_DATA_OPTS)
68 INSTALL_SCRIPT = $(INSTALL) $(INSTALL_SCRIPT_OPTS)
69 INSTALL_PROGRAM = $(INSTALL) $(INSTALL_PROGRAM_OPTS)
70 INSTALL_HEADER = $(INSTALL) $(INSTALL_HEADER_OPTS)
71 INSTALL_SHLIB = $(INSTALL) $(INSTALL_SHLIB_OPTS)
72 INSTALL_MAN = $(INSTALL) $(INSTALL_MAN_OPTS)
74 # What's common to all installs
75 INSTALL_OPTS= $(EXTRA_INSTALL_OPTS)
80 INSTALL_BIN_OPTS = -m $(BIN_PERMS) $(INSTALL_OPTS) $(EXTRA_INSTALL_BIN_OPTS)
81 INSTALL_LIB_OPTS = -m $(LIB_PERMS) $(INSTALL_OPTS) $(EXTRA_INSTALL_LIB_OPTS)
82 INSTALL_DATA_OPTS = -m $(LIB_PERMS) $(INSTALL_OPTS) $(EXTRA_INSTALL_DATA_OPTS)
83 INSTALL_SCRIPT_OPTS = -m $(BIN_PERMS) $(INSTALL_OPTS) $(EXTRA_INSTALL_SCRIPT_OPTS)
84 INSTALL_PROGRAM_OPTS = -m $(BIN_PERMS) $(INSTALL_OPTS) $(EXTRA_INSTALL_PROGRAM_OPTS)
85 INSTALL_HEADER_OPTS = -m $(LIB_PERMS) $(INSTALL_OPTS) $(EXTRA_INSTALL_HEADER_OPTS)
86 INSTALL_SHLIB_OPTS = -m $(BIN_PERMS) $(INSTALL_OPTS) $(EXTRA_INSTALL_SHLIB_OPTS)
87 INSTALL_MAN_OPTS = -m $(LIB_PERMS) $(INSTALL_OPTS) $(EXTRA_INSTALL_MAN_OPTS)
89 EXECUTABLE_FILE = chmod $(BIN_PERMS)
91 GHC_COMPAT_DIR=$(TOP)/mk