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 = @datadir@/$(package)-$(version)
17 platform = @TargetPlatform@
19 exec_prefix = @exec_prefix@
21 mandir = $(datarootdir)/man
23 headerdir = $(libdir)/include
26 docdir = @datadir@/doc/ghc
41 # Sigh - the autoconf macro for INSTALL will subst a relative path to the fallback
42 # install-sh script (if chosen). This not terribly useful to us, so we convert
43 # it into an abs. path.
45 INSTALL := $(subst ./install-sh,$(FPTOOLS_TOP_ABS)/install-sh,$(INSTALL))
53 RAWCPP_FLAGS = -undef -traditional
55 #----------end of user-serviceable parts------------
58 # How to install the different pieces
60 INSTALL_DIR = $(bindist_abs_root)/utils/mkdirhier/mkdirhier
61 INSTALL_BIN = $(INSTALL) $(INSTALL_BIN_OPTS)
62 INSTALL_LIB = $(INSTALL) $(INSTALL_LIB_OPTS)
63 INSTALL_DATA = $(INSTALL) $(INSTALL_DATA_OPTS)
64 INSTALL_SCRIPT = $(INSTALL) $(INSTALL_SCRIPT_OPTS)
65 INSTALL_PROGRAM = $(INSTALL) $(INSTALL_PROGRAM_OPTS)
66 INSTALL_HEADER = $(INSTALL) $(INSTALL_HEADER_OPTS)
67 INSTALL_SHLIB = $(INSTALL) $(INSTALL_SHLIB_OPTS)
68 INSTALL_MAN = $(INSTALL) $(INSTALL_MAN_OPTS)
70 # What's common to all installs
71 INSTALL_OPTS= $(EXTRA_INSTALL_OPTS)
76 INSTALL_BIN_OPTS = -m $(BIN_PERMS) $(INSTALL_OPTS) $(EXTRA_INSTALL_BIN_OPTS)
77 INSTALL_LIB_OPTS = -m $(LIB_PERMS) $(INSTALL_OPTS) $(EXTRA_INSTALL_LIB_OPTS)
78 INSTALL_DATA_OPTS = -m $(LIB_PERMS) $(INSTALL_OPTS) $(EXTRA_INSTALL_DATA_OPTS)
79 INSTALL_SCRIPT_OPTS = -m $(BIN_PERMS) $(INSTALL_OPTS) $(EXTRA_INSTALL_SCRIPT_OPTS)
80 INSTALL_PROGRAM_OPTS = -m $(BIN_PERMS) $(INSTALL_OPTS) $(EXTRA_INSTALL_PROGRAM_OPTS)
81 INSTALL_HEADER_OPTS = -m $(LIB_PERMS) $(INSTALL_OPTS) $(EXTRA_INSTALL_HEADER_OPTS)
82 INSTALL_SHLIB_OPTS = -m $(BIN_PERMS) $(INSTALL_OPTS) $(EXTRA_INSTALL_SHLIB_OPTS)
83 INSTALL_MAN_OPTS = -m $(LIB_PERMS) $(INSTALL_OPTS) $(EXTRA_INSTALL_MAN_OPTS)
85 EXECUTABLE_FILE = chmod $(BIN_PERMS)
87 GHC_COMPAT_DIR=$(TOP)/mk