more idmapd updates
[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 STATDUSER       = @statduser@
14
15 ##################################################################
16 # This is the prefix that will be used for nfsd and mountd. Leave this
17 # empty, or set to `k'.
18 KPREFIX         = @kprefix@
19
20 # This define will turn NFSv3 support on or off one day. Not functional yet.
21 NFSV3           = @enable_nfsv3@
22
23 # Where and how to install manpages
24 MAN1EXT         = 1
25 MAN5EXT         = 5
26 MAN7EXT         = 7
27 MAN8EXT         = 8
28 MAN9EXT         = 9
29 MANOWNER        = root
30 MANGROUP        = root
31
32 # Various libs
33 LIBBSD          = @LIBBSD@
34 LIBNSL          = @LIBNSL@
35 LIBWRAP         = @LIBWRAP@
36 KRBLIB          = @KRBLIB@
37 KRBDIR          = @KRBDIR@
38 KRB5_VERSION    = @K5VERS@
39
40 ################# END OF USER SERVICEABLE PARTS ##################
41 ALLTARGETS      = all clean distclean install installman \
42                   depend dep postscript indent
43
44 ifndef ARCHFLAGS
45   ARCH          = $(shell uname -m)
46   FLAGS_alpha   = -mno-fp-regs -ffixed-8
47   ARCHFLAGS     = $(FLAGS_$(ARCH))
48 .EXPORT:        ARCHFLAGS
49 endif
50
51 AR              = @AR@
52 LD              = @LD@
53 RM              = rm -f
54 MKDIR           = mkdir -p
55 LN_S            = ln -sf
56 RANLIB          = @RANLIB@
57 INDENT          = indent
58 RPCGEN          = $(TOP)bin/rpcgen
59 GETKVER         = $(TOP)tools/getkversion
60 INSTALL         = install
61 MAN2PS          = groff -Tps -man
62
63 AFLAGS          = -I$(TOP)support/include \
64                   -I$(KRBDIR)/include \
65                   -Wall $(ARCHFLAGS) -pipe
66 ifdef KERNEL_INCDIR
67 AFLAGS         += -I$(KERNEL_INCDIR)
68 endif
69
70 ALL-CFLAGS      = $(AFLAGS) $(CCOPTS) -DVERSION="\"$(VERSION)\""
71 CC              = @CC@
72 CFLAGS          = @CFLAGS@ $(ALL-CFLAGS)
73 CC_FOR_BUILD    = @CC_FOR_BUILD@
74 CFLAGS_FOR_BUILD= -O2 $(ALL-CFLAGS)
75
76 ifdef BUILD
77 CC              = $(CC_FOR_BUILD)
78 CFLAGS          = $(CFLAGS_FOR_BUILD)
79 endif
80
81 LDFLAGS         = @LDFLAGS@ $(LDOPTS) -L$(TOP)support/lib
82
83 ifdef NFSV3
84  CFLAGS += -DNFS3_SUPPORTED
85 endif
86
87 k               = $(KPREFIX)
88
89 INSTALLSCRIPT   = $(INSTALL) -m 755
90 INSTALLBIN      = $(INSTALL) -m 755 -s
91 INSTALLSUID     = $(INSTALL) -m 4755 -s
92 INSTALLMOD      = $(INSTALL) -m 600
93 INSTALLMAN      = $(INSTALL) -m 644
94 MAN1DIR         = $(MANDIR)/man$(MAN1EXT)
95 MAN5DIR         = $(MANDIR)/man$(MAN5EXT)
96 MAN7DIR         = $(MANDIR)/man$(MAN7EXT)
97 MAN8DIR         = $(MANDIR)/man$(MAN8EXT)
98 MAN9DIR         = $(MANDIR)/man$(MAN9EXT)