2000-08-25 H.J. Lu <hjl@lucon.org>
[nfs-utils.git] / config.mk.in
1 #
2 # Configuration stuff for nfs-utils
3 #
4
5 VERSION         = nfs-utils @VERSION@
6
7 prefix          = $(install_prefix)@prefix@
8 exec_prefix     = $(install_prefix)@prefix@
9 BINDIR          = @bindir@
10 SBINDIR         = @sbindir@
11 MANDIR          = @mandir@
12 STATEDIR        = $(install_prefix)@statedir@
13
14 ##################################################################
15 # This is the prefix that will be used for nfsd and mountd. Leave this
16 # empty, or set to `k'.
17 KPREFIX         = @kprefix@
18
19 # This define will turn NFSv3 support on or off one day. Not functional yet.
20 NFSV3           = @enable_nfsv3@
21
22 # Where and how to install manpages
23 MAN1EXT         = 1
24 MAN5EXT         = 5
25 MAN8EXT         = 8
26 MAN9EXT         = 9
27 MANOWNER        = root
28 MANGROUP        = root
29
30 # Various libs
31 LIBBSD          = @LIBBSD@
32 LIBNSL          = @LIBNSL@
33 LIBWRAP         = @LIBWRAP@
34
35 ################# END OF USER SERVICEABLE PARTS ##################
36 ALLTARGETS      = all clean distclean install installman \
37                   depend dep postscript indent
38
39 ifndef ARCHFLAGS
40   ARCH          = $(shell uname -m)
41   FLAGS_alpha   = -mno-fp-regs -ffixed-8
42   ARCHFLAGS     = $(FLAGS_$(ARCH))
43 .EXPORT:        ARCHFLAGS
44 endif
45
46 CC              = @CC@
47 AR              = ar
48 LD              = ld
49 RM              = rm -f
50 MKDIR           = mkdir -p
51 LN_S            = ln -sf
52 RANLIB          = ranlib
53 INDENT          = indent
54 RPCGEN          = $(TOP)bin/rpcgen
55 GETKVER         = $(TOP)tools/getkversion
56 INSTALL         = install
57 MAN2PS          = groff -Tps -man
58
59 AFLAGS          = -I$(TOP)support/include \
60                   -Wall $(ARCHFLAGS) -pipe
61 ifdef KERNEL_INCDIR
62 AFLAGS         += -I$(KERNEL_INCDIR)
63 endif
64
65 CFLAGS          = @CFLAGS@ $(AFLAGS) $(CCOPTS) -DVERSION="\"$(VERSION)\""
66 LDFLAGS         = @LDFLAGS@ $(LDOPTS) -L$(TOP)support/lib
67
68 ifdef NFSV3
69  CFLAGS += -DNFS3_SUPPORTED
70 endif
71
72 k               = $(KPREFIX)
73
74 INSTALLSCRIPT   = $(INSTALL) -m 755
75 INSTALLBIN      = $(INSTALL) -m 755 -s
76 INSTALLSUID     = $(INSTALL) -m 4755 -s
77 INSTALLMOD      = $(INSTALL) -m 600
78 INSTALLMAN      = $(INSTALL) -m 644
79 MAN1DIR         = $(MANDIR)/man$(MAN1EXT)
80 MAN5DIR         = $(MANDIR)/man$(MAN5EXT)
81 MAN8DIR         = $(MANDIR)/man$(MAN8EXT)
82 MAN9DIR         = $(MANDIR)/man$(MAN9EXT)