2 # CDDL HEADER START
3 #
4 # The contents of this file are subject to the terms of the
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 # Copyright (c) 1992, 2010, Oracle and/or its affiliates. All rights reserved.
22 #
23 # cmd/fs.d/autofs/Makefile
24
25 FSTYPE= autofs
26 AUTO= automount
27 MOUNT= mount
28 VERS= .2
29 DFSHARES= dfshares
30 SHARE= share
31 UNSHARE= unshare
32 LIBPROG= $(AUTO) $(MOUNT) $(DFSHARES) $(SHARE) $(UNSHARE)
33 TYPEPROG= automountd
34
35 LINKINSTALL= $(ROOTUSRSBIN)/$(AUTO)
36 LINKVALUE= ../lib/fs/$(FSTYPE)/$(AUTO)
37 MAPS= auto_master auto_home
38 MAPINSTALL= $(MAPS:%=$(ROOTETC)/%)
39 AUTOFS= autofs
40 DEFAULTFILES= autofs.dfl
41 SMFMANIFEST= autofs.xml
108 SHARESRCS= $(SHARE:%=%.c)
109 UNSHARESRCS= $(UNSHARE:%=%.c)
110 DFSHARESSRCS= $(DFSHARES:%=%.sh)
111 SRCS= $(OBJS:%.o=%.c)
112
113 nfs_sec.o := CPPFLAGS += -DWNFS_SEC_NEGO
114
115 $(AUTO): $(AUTOOBJS)
116 $(LINK.c) -o $@ $(AUTOOBJS) $(LDLIBS)
117 $(POST_PROCESS)
118
119 $(MOUNT): $(MOUNTOBJS)
120 $(LINK.c) -o $@ $(MOUNTOBJS) $(LDLIBS)
121 $(POST_PROCESS)
122
123 $(TYPEPROG): webnfs.h $(TYPEOBJS)
124 $(LINK.c) -o $@ $(TYPEOBJS) $(LDLIBS)
125 $(POST_PROCESS)
126
127 $(SHARE): $(SHAREOBJS)
128 $(LINK.c) -o $@ $(SHAREOBJS)
129 $(POST_PROCESS)
130
131 $(UNSHARE): $(UNSHAREOBJS)
132 $(LINK.c) -o $@ $(UNSHAREOBJS)
133 $(POST_PROCESS)
134
135 $(ROOTSVCSYSTEM)/filesystem/%: %
136 $(INS.file)
137
138 DUMP_PROG=malloc_dump
139 BUILDDIR=tmp
140 DUMP_PROTO=$(BUILDDIR)/$(DUMP_PROG)_client
141 XFILE=$(BUILDDIR)/malloc_dump.x
142 XLINE= "program DUMP { version VERS \
143 { void DUMP_IT(void) = 1000000; } = 2; } = 100099;"
144
145 $(XFILE): $(BUILDDIR)
146 $(RM) $(XFILE)
147 echo $(XLINE) > $(XFILE)
148
149 $(BUILDDIR):
150 $(RM) -r $(BUILDDIR)
151 mkdir $(BUILDDIR)
152
|
2 # CDDL HEADER START
3 #
4 # The contents of this file are subject to the terms of the
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 # Copyright (c) 1992, 2010, Oracle and/or its affiliates. All rights reserved.
22 # Copyright 2015 RackTop Systems.
23 #
24 # cmd/fs.d/autofs/Makefile
25
26 FSTYPE= autofs
27 AUTO= automount
28 MOUNT= mount
29 VERS= .2
30 DFSHARES= dfshares
31 SHARE= share
32 UNSHARE= unshare
33 LIBPROG= $(AUTO) $(MOUNT) $(DFSHARES) $(SHARE) $(UNSHARE)
34 TYPEPROG= automountd
35
36 LINKINSTALL= $(ROOTUSRSBIN)/$(AUTO)
37 LINKVALUE= ../lib/fs/$(FSTYPE)/$(AUTO)
38 MAPS= auto_master auto_home
39 MAPINSTALL= $(MAPS:%=$(ROOTETC)/%)
40 AUTOFS= autofs
41 DEFAULTFILES= autofs.dfl
42 SMFMANIFEST= autofs.xml
109 SHARESRCS= $(SHARE:%=%.c)
110 UNSHARESRCS= $(UNSHARE:%=%.c)
111 DFSHARESSRCS= $(DFSHARES:%=%.sh)
112 SRCS= $(OBJS:%.o=%.c)
113
114 nfs_sec.o := CPPFLAGS += -DWNFS_SEC_NEGO
115
116 $(AUTO): $(AUTOOBJS)
117 $(LINK.c) -o $@ $(AUTOOBJS) $(LDLIBS)
118 $(POST_PROCESS)
119
120 $(MOUNT): $(MOUNTOBJS)
121 $(LINK.c) -o $@ $(MOUNTOBJS) $(LDLIBS)
122 $(POST_PROCESS)
123
124 $(TYPEPROG): webnfs.h $(TYPEOBJS)
125 $(LINK.c) -o $@ $(TYPEOBJS) $(LDLIBS)
126 $(POST_PROCESS)
127
128 $(SHARE): $(SHAREOBJS)
129 $(LINK.c) -o $@ $(SHAREOBJS) $(LDLIBS)
130 $(POST_PROCESS)
131
132 $(UNSHARE): $(UNSHAREOBJS)
133 $(LINK.c) -o $@ $(UNSHAREOBJS) $(LDLIBS)
134 $(POST_PROCESS)
135
136 $(ROOTSVCSYSTEM)/filesystem/%: %
137 $(INS.file)
138
139 DUMP_PROG=malloc_dump
140 BUILDDIR=tmp
141 DUMP_PROTO=$(BUILDDIR)/$(DUMP_PROG)_client
142 XFILE=$(BUILDDIR)/malloc_dump.x
143 XLINE= "program DUMP { version VERS \
144 { void DUMP_IT(void) = 1000000; } = 2; } = 100099;"
145
146 $(XFILE): $(BUILDDIR)
147 $(RM) $(XFILE)
148 echo $(XLINE) > $(XFILE)
149
150 $(BUILDDIR):
151 $(RM) -r $(BUILDDIR)
152 mkdir $(BUILDDIR)
153
|