d2cbea04f1ba226804d71d4f33e37c5702d053f4
[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 MAN7EXT         = 7
26 MAN8EXT         = 8
27 MAN9EXT         = 9
28 MANOWNER        = root
29 MANGROUP        = root
30
31 # Various libs
32 LIBBSD          = @LIBBSD@
33 LIBNSL          = @LIBNSL@
34 LIBWRAP         = @LIBWRAP@
35
36 ################# END OF USER SERVICEABLE PARTS ##################
37 ALLTARGETS      = all clean distclean install installman \
38                   depend dep postscript indent
39
40 ifndef ARCHFLAGS
41   ARCH          = $(shell uname -m)
42   FLAGS_alpha   = -mno-fp-regs -ffixed-8
43   ARCHFLAGS     = $(FLAGS_$(ARCH))
44 .EXPORT:        ARCHFLAGS
45 endif
46
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 ALL-CFLAGS      = $(AFLAGS) $(CCOPTS) -DVERSION="\"$(VERSION)\""
66 CC              = @CC@
67 CFLAGS          = @CFLAGS@ $(ALL-CFLAGS)
68 CC_FOR_BUILD    = @CC_FOR_BUILD@
69 CFLAGS_FOR_BUILD= -O2 $(ALL-CFLAGS)
70
71 ifdef BUILD
72 CC              = $(CC_FOR_BUILD)
73 CFLAGS          = $(CFLAGS_FOR_BUILD)
74 endif
75
76 LDFLAGS         = @LDFLAGS@ $(LDOPTS) -L$(TOP)support/lib
77
78 ifdef NFSV3
79  CFLAGS += -DNFS3_SUPPORTED
80 endif
81
82 k               = $(KPREFIX)
83
84 INSTALLSCRIPT   = $(INSTALL) -m 755
85 INSTALLBIN      = $(INSTALL) -m 755 -s
86 INSTALLSUID     = $(INSTALL) -m 4755 -s
87 INSTALLMOD      = $(INSTALL) -m 600
88 INSTALLMAN      = $(INSTALL) -m 644
89 MAN1DIR         = $(MANDIR)/man$(MAN1EXT)
90 MAN5DIR         = $(MANDIR)/man$(MAN5EXT)
91 MAN7DIR         = $(MANDIR)/man$(MAN7EXT)
92 MAN8DIR         = $(MANDIR)/man$(MAN8EXT)
93 MAN9DIR         = $(MANDIR)/man$(MAN9EXT)