5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
7 #
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 # or http://www.opensolaris.org/os/licensing.
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
12 #
13 # When distributing Covered Code, include this CDDL HEADER in each
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 # If applicable, add the following below this CDDL HEADER, with the
16 # fields enclosed by brackets "[]" replaced with your own identifying
17 # information: Portions Copyright [yyyy] [name of copyright owner]
18 #
19 # CDDL HEADER END
20 #
21
22 #
23 # Copyright (c) 1992, 2010, Oracle and/or its affiliates. All rights reserved.
24 # Copyright 2015 RackTop Systems.
25 #
26
27 FSTYPE= autofs
28 AUTO= automount
29 MOUNT= mount
30 VERS= .2
31 DFSHARES= dfshares
32 SHARE= share
33 UNSHARE= unshare
34 LIBPROG= $(AUTO) $(MOUNT) $(DFSHARES) $(SHARE) $(UNSHARE)
35 TYPEPROG= automountd
36
37 LINKINSTALL= $(ROOTUSRSBIN)/$(AUTO)
38 LINKVALUE= ../lib/fs/$(FSTYPE)/$(AUTO)
39 MAPS= auto_master auto_home
40 MAPINSTALL= $(MAPS:%=$(ROOTETC)/%)
41 AUTOFS= autofs
42 DEFAULTFILES= autofs.dfl
43 SMFMANIFEST= autofs.xml
44 SMFMETHOD= svc-autofs
81
82 POFILE= autofs.po
83 GREP= egrep
84 SED= sed
85
86 $(AUTO) := LDLIBS += -lnsl -lsldap -lscf
87 $(MOUNT):= LDLIBS += -lscf
88 $(TYPEPROG) := LDLIBS += -lrpcsvc -lsocket -lnsl -lsldap -lkstat -lscf
89
90 CFLAGS += $(CCVERBOSE) -D_FILE_OFFSET_BITS=64
91 CPPFLAGS= -I. -I.. -I../nfs/lib $(CPPFLAGS.master) -D_REENTRANT \
92 $(MALLOC_DEBUG)
93
94 CERRWARN += -_gcc=-Wno-parentheses
95 CERRWARN += -_gcc=-Wno-unused-variable
96 CERRWARN += -_gcc=-Wno-switch
97 CERRWARN += -_gcc=-Wno-uninitialized
98 CERRWARN += -_gcc=-Wno-unused-label
99 CERRWARN += -_gcc=-Wno-unused-function
100
101 OBJS= $(AUTOOBJS) $(MOUNTOBJS) $(TYPEOBJS) \
102 $(SHAREOBJS) $(UNSHAREOBJS)
103
104 AUTOSRCS= automount.c $(COMMON:%.o=%.c) $(FSLIBSRC)
105 MOUNTSRCS= mount.c $(FSLIBSRC)
106 TYPESRCS= $(LOCAL:%.o=%.c) $(COMMON:%.o=%.c) \
107 ../nfs/lib/replica.c ../nfs/lib/nfs_sec.c \
108 ../nfs/lib/nfs_subr.c $(FSLIBSRC) ../nfs/lib/selfcheck.c \
109 ../nfs/lib/nfs_resolve.c ../nfs/lib/smfcfg.c
110 SHARESRCS= $(SHARE:%=%.c)
111 UNSHARESRCS= $(UNSHARE:%=%.c)
112 DFSHARESSRCS= $(DFSHARES:%=%.sh)
113 SRCS= $(OBJS:%.o=%.c)
114
115 nfs_sec.o := CPPFLAGS += -DWNFS_SEC_NEGO
116
117 $(AUTO): $(AUTOOBJS)
118 $(LINK.c) -o $@ $(AUTOOBJS) $(LDLIBS)
119 $(POST_PROCESS)
120
|
5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
7 #
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 # or http://www.opensolaris.org/os/licensing.
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
12 #
13 # When distributing Covered Code, include this CDDL HEADER in each
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 # If applicable, add the following below this CDDL HEADER, with the
16 # fields enclosed by brackets "[]" replaced with your own identifying
17 # information: Portions Copyright [yyyy] [name of copyright owner]
18 #
19 # CDDL HEADER END
20 #
21
22 #
23 # Copyright (c) 1992, 2010, Oracle and/or its affiliates. All rights reserved.
24 # Copyright 2015 RackTop Systems.
25 # Copyright 2017 Gary Mills
26 #
27
28 FSTYPE= autofs
29 AUTO= automount
30 MOUNT= mount
31 VERS= .2
32 DFSHARES= dfshares
33 SHARE= share
34 UNSHARE= unshare
35 LIBPROG= $(AUTO) $(MOUNT) $(DFSHARES) $(SHARE) $(UNSHARE)
36 TYPEPROG= automountd
37
38 LINKINSTALL= $(ROOTUSRSBIN)/$(AUTO)
39 LINKVALUE= ../lib/fs/$(FSTYPE)/$(AUTO)
40 MAPS= auto_master auto_home
41 MAPINSTALL= $(MAPS:%=$(ROOTETC)/%)
42 AUTOFS= autofs
43 DEFAULTFILES= autofs.dfl
44 SMFMANIFEST= autofs.xml
45 SMFMETHOD= svc-autofs
82
83 POFILE= autofs.po
84 GREP= egrep
85 SED= sed
86
87 $(AUTO) := LDLIBS += -lnsl -lsldap -lscf
88 $(MOUNT):= LDLIBS += -lscf
89 $(TYPEPROG) := LDLIBS += -lrpcsvc -lsocket -lnsl -lsldap -lkstat -lscf
90
91 CFLAGS += $(CCVERBOSE) -D_FILE_OFFSET_BITS=64
92 CPPFLAGS= -I. -I.. -I../nfs/lib $(CPPFLAGS.master) -D_REENTRANT \
93 $(MALLOC_DEBUG)
94
95 CERRWARN += -_gcc=-Wno-parentheses
96 CERRWARN += -_gcc=-Wno-unused-variable
97 CERRWARN += -_gcc=-Wno-switch
98 CERRWARN += -_gcc=-Wno-uninitialized
99 CERRWARN += -_gcc=-Wno-unused-label
100 CERRWARN += -_gcc=-Wno-unused-function
101
102 # Suppress the error for: lp
103 ns_files.o := CERRWARN += -_gcc=-Wno-unused-but-set-parameter
104 # Suppress the error for: lastread
105 autod_nfs.o := CERRWARN += -_gcc=-Wno-unused-but-set-variable
106
107 OBJS= $(AUTOOBJS) $(MOUNTOBJS) $(TYPEOBJS) \
108 $(SHAREOBJS) $(UNSHAREOBJS)
109
110 AUTOSRCS= automount.c $(COMMON:%.o=%.c) $(FSLIBSRC)
111 MOUNTSRCS= mount.c $(FSLIBSRC)
112 TYPESRCS= $(LOCAL:%.o=%.c) $(COMMON:%.o=%.c) \
113 ../nfs/lib/replica.c ../nfs/lib/nfs_sec.c \
114 ../nfs/lib/nfs_subr.c $(FSLIBSRC) ../nfs/lib/selfcheck.c \
115 ../nfs/lib/nfs_resolve.c ../nfs/lib/smfcfg.c
116 SHARESRCS= $(SHARE:%=%.c)
117 UNSHARESRCS= $(UNSHARE:%=%.c)
118 DFSHARESSRCS= $(DFSHARES:%=%.sh)
119 SRCS= $(OBJS:%.o=%.c)
120
121 nfs_sec.o := CPPFLAGS += -DWNFS_SEC_NEGO
122
123 $(AUTO): $(AUTOOBJS)
124 $(LINK.c) -o $@ $(AUTOOBJS) $(LDLIBS)
125 $(POST_PROCESS)
126
|