2001-06-27 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 AR              = @AR@
47 LD              = @LD@
48 RM              = rm -f
49 MKDIR           = mkdir -p
50 LN_S            = ln -sf
51 RANLIB          = @RANLIB@
52 INDENT          = indent
53 RPCGEN          = $(TOP)bin/rpcgen
54 GETKVER         = $(TOP)tools/getkversion
55 INSTALL         = install
56 MAN2PS          = groff -Tps -man
57
58 AFLAGS          = -I$(TOP)support/include \
59                   -Wall $(ARCHFLAGS) -pipe
60 ifdef KERNEL_INCDIR
61 AFLAGS         += -I$(KERNEL_INCDIR)
62 endif
63
64 ALL-CFLAGS      = $(AFLAGS) $(CCOPTS) -DVERSION="\"$(VERSION)\""
65 CC              = @CC@
66 CFLAGS          = @CFLAGS@ $(ALL-CFLAGS)
67 CC_FOR_BUILD    = @CC_FOR_BUILD@
68 CFLAGS_FOR_BUILD= -O2 $(ALL-CFLAGS)
69
70 ifdef BUILD
71 CC              = $(CC_FOR_BUILD)
72 CFLAGS          = $(CFLAGS_FOR_BUILD)
73 endif
74
75 LDFLAGS         = @LDFLAGS@ $(LDOPTS) -L$(TOP)support/lib
76
77 ifdef NFSV3
78  CFLAGS += -DNFS3_SUPPORTED
79 endif
80
81 k               = $(KPREFIX)
82
83 INSTALLSCRIPT   = $(INSTALL) -m 755
84 INSTALLBIN      = $(INSTALL) -m 755 -s
85 INSTALLSUID     = $(INSTALL) -m 4755 -s
86 INSTALLMOD      = $(INSTALL) -m 600
87 INSTALLMAN      = $(INSTALL) -m 644
88 MAN1DIR         = $(MANDIR)/man$(MAN1EXT)
89 MAN5DIR         = $(MANDIR)/man$(MAN5EXT)
90 MAN8DIR         = $(MANDIR)/man$(MAN8EXT)
91 MAN9DIR         = $(MANDIR)/man$(MAN9EXT)