299170fad35b6c488eb5c41878ce56fed4065786
[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
33 ################# END OF USER SERVICEABLE PARTS ##################
34 ALLTARGETS      = all clean distclean install installman \
35                   depend dep postscript indent
36
37 ifndef ARCHFLAGS
38   ARCH          = $(shell uname -m)
39   FLAGS_alpha   = -mno-fp-regs -ffixed-8
40   ARCHFLAGS     = $(FLAGS_$(ARCH))
41 .EXPORT:        ARCHFLAGS
42 endif
43
44 CC              = @CC@
45 AR              = ar
46 LD              = ld
47 RM              = rm -f
48 MKDIR           = mkdir -p
49 LN_S            = ln -sf
50 RANLIB          = ranlib
51 INDENT          = indent
52 RPCGEN          = $(TOP)bin/rpcgen
53 GETKVER         = $(TOP)tools/getkversion
54 INSTALL         = install
55 MAN2PS          = groff -Tps -man
56
57 AFLAGS          = -I$(TOP)support/include \
58                   -Wall $(ARCHFLAGS) -pipe
59 ifdef KERNEL_INCDIR
60 AFLAGS         += -I$(KERNEL_INCDIR)
61 endif
62
63 CFLAGS          = @CFLAGS@ $(AFLAGS) $(CCOPTS) -DVERSION="\"$(VERSION)\""
64 LDFLAGS         = @LDFLAGS@ $(LDOPTS) -L$(TOP)support/lib
65
66 ifdef NFSV3
67  CFLAGS += -DNFS3_SUPPORTED
68 endif
69
70 k               = $(KPREFIX)
71
72 INSTALLSCRIPT   = $(INSTALL) -m 755
73 INSTALLBIN      = $(INSTALL) -m 755 -s
74 INSTALLSUID     = $(INSTALL) -m 4755 -s
75 INSTALLMOD      = $(INSTALL) -m 600
76 INSTALLMAN      = $(INSTALL) -m 644
77 MAN1DIR         = $(MANDIR)/man$(MAN1EXT)
78 MAN5DIR         = $(MANDIR)/man$(MAN5EXT)
79 MAN8DIR         = $(MANDIR)/man$(MAN8EXT)
80 MAN9DIR         = $(MANDIR)/man$(MAN9EXT)