Build library packages as shared libs
[ghc-hetmet.git] / distrib / Makefile-bin-vars.in
1
2 # Where we are
3 bindist_abs_root = @hardtop@
4 FPTOOLS_TOP_ABS  = @hardtop@
5
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
9
10 # Where the different pieces of the bundle should go:
11 bindir      = @bindir@
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).
18 datadir     = $(libdir)
19
20 platform    = @TargetPlatform@
21 prefix      = @prefix@
22 exec_prefix = @exec_prefix@
23
24 mandir      = $(datarootdir)/man
25
26 headerdir   = $(libdir)/include
27
28 # default
29 docdir      = @datadir@/doc/ghc
30 htmldir     = $(docdir)
31 psdir       = $(docdir)
32 pdfdir      = $(docdir)
33
34
35 PERL        = @PerlCmd@
36 SH          = /bin/sh
37 RM          = rm -f
38 MV          = mv
39 CP          = cp
40 LN_S        = @LN_S@
41 CHMOD       = chmod
42 INSTALL     = @INSTALL@
43 #
44 # Sigh - the autoconf macro for INSTALL will subst a relative path to the fallback
45 # install-sh script (if chosen). This not terribly useful to us, so we convert
46 # it into an abs. path.
47
48 INSTALL                 := $(subst ./install-sh,$(FPTOOLS_TOP_ABS)/install-sh,$(INSTALL))
49
50 exeext      = @exeext@
51 SED             = @SedCmd@
52 DEFAULT_TMPDIR = /tmp
53 RANLIB      = @RANLIB@
54 CPP         = @CPP@
55
56 RAWCPP_FLAGS            = -undef -traditional
57
58 #----------end of user-serviceable parts------------
59 #
60 #
61 # How to install the different pieces
62
63 INSTALL_DIR     = $(bindist_abs_root)/utils/mkdirhier/mkdirhier
64 INSTALL_BIN     = $(INSTALL) $(INSTALL_BIN_OPTS)
65 INSTALL_LIB     = $(INSTALL) $(INSTALL_LIB_OPTS)
66 INSTALL_DATA    = $(INSTALL) $(INSTALL_DATA_OPTS)
67 INSTALL_SCRIPT  = $(INSTALL) $(INSTALL_SCRIPT_OPTS)
68 INSTALL_PROGRAM = $(INSTALL) $(INSTALL_PROGRAM_OPTS)
69 INSTALL_HEADER  = $(INSTALL) $(INSTALL_HEADER_OPTS)
70 INSTALL_SHLIB   = $(INSTALL) $(INSTALL_SHLIB_OPTS)
71 INSTALL_MAN     = $(INSTALL) $(INSTALL_MAN_OPTS)
72
73 # What's common to all installs
74 INSTALL_OPTS= $(EXTRA_INSTALL_OPTS)
75
76 BIN_PERMS = 755
77 LIB_PERMS = 644
78
79 INSTALL_BIN_OPTS     = -m $(BIN_PERMS) $(INSTALL_OPTS) $(EXTRA_INSTALL_BIN_OPTS)
80 INSTALL_LIB_OPTS     = -m $(LIB_PERMS) $(INSTALL_OPTS) $(EXTRA_INSTALL_LIB_OPTS)
81 INSTALL_DATA_OPTS    = -m $(LIB_PERMS) $(INSTALL_OPTS) $(EXTRA_INSTALL_DATA_OPTS)
82 INSTALL_SCRIPT_OPTS  = -m $(BIN_PERMS) $(INSTALL_OPTS) $(EXTRA_INSTALL_SCRIPT_OPTS)
83 INSTALL_PROGRAM_OPTS = -m $(BIN_PERMS) $(INSTALL_OPTS) $(EXTRA_INSTALL_PROGRAM_OPTS)
84 INSTALL_HEADER_OPTS  = -m $(LIB_PERMS) $(INSTALL_OPTS) $(EXTRA_INSTALL_HEADER_OPTS)
85 INSTALL_SHLIB_OPTS   = -m $(BIN_PERMS) $(INSTALL_OPTS) $(EXTRA_INSTALL_SHLIB_OPTS)
86 INSTALL_MAN_OPTS     = -m $(LIB_PERMS) $(INSTALL_OPTS) $(EXTRA_INSTALL_MAN_OPTS)
87
88 EXECUTABLE_FILE = chmod $(BIN_PERMS)
89
90 GHC_COMPAT_DIR=$(TOP)/mk
91