xref: /illumos-gate/usr/src/cmd/fs.d/ufs/quotaon/Makefile (revision 4bff34e37def8a90f9194d81bc345c52ba20086a)
1#
2# CDDL HEADER START
3#
4# The contents of this file are subject to the terms of the
5# Common Development and Distribution License, Version 1.0 only
6# (the "License").  You may not use this file except in compliance
7# with the License.
8#
9# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10# or http://www.opensolaris.org/os/licensing.
11# See the License for the specific language governing permissions
12# and limitations under the License.
13#
14# When distributing Covered Code, include this CDDL HEADER in each
15# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16# If applicable, add the following below this CDDL HEADER, with the
17# fields enclosed by brackets "[]" replaced with your own identifying
18# information: Portions Copyright [yyyy] [name of copyright owner]
19#
20# CDDL HEADER END
21#
22#
23#ident	"%Z%%M%	%I%	%E% SMI"
24#
25# Copyright (c) 1989,1996 by Sun Microsystems, Inc.
26# All rights reserved.
27#
28# cmd/fs.d/ufs/quotaon/Makefile
29
30FSTYPE=		ufs
31LIBPROG=	quotaon
32QUOTAOFF=	quotaoff
33ATTMK=		$(LIBPROG)
34
35#
36# Note that no links are made from the rc[S0-3].d directories for this rc
37# script.  The normal way to ship this is completely disabled.  The process
38# for enabling this script is described in the "Routine System Administration
39# Guide" (as of this time).
40#
41INIT_SCRIPT=	ufs_quota
42ROOTINIT_D=	$(ROOTETC)/init.d
43ROOTINIT_SCRIPT=$(ROOTINIT_D)/$(INIT_SCRIPT)
44
45OTHERINSTALL=	$(ROOTLIBFSTYPE)/$(QUOTAOFF) \
46		$(ROOTUSRSBIN)/$(LIBPROG) $(ROOTUSRSBIN)/$(QUOTAOFF) \
47		$(ROOTINIT_SCRIPT)
48LINKVALUEON=	../lib/fs/$(FSTYPE)/$(LIBPROG)
49LINKVALUEOFF=	../lib/fs/$(FSTYPE)/$(QUOTAOFF)
50
51include		../../Makefile.fstype
52
53$(ROOTINIT_SCRIPT) :=	OWNER = root
54$(ROOTINIT_SCRIPT) :=	GROUP = sys
55$(ROOTINIT_SCRIPT) :=	FILEMODE = 0744
56
57CPPFLAGS +=	-D_LARGEFILE64_SOURCE
58lint:		lint_PROG
59
60$(ROOTLIBFSTYPE)/$(QUOTAOFF):	$(ROOTLIBFSTYPE)/$(LIBPROG)
61		-$(RM) $@; $(LN) $(ROOTLIBFSTYPE)/$(LIBPROG) $@
62
63$(ROOTUSRSBIN)/$(LIBPROG):
64		-$(RM) $@; $(SYMLINK) $(LINKVALUEON) $@
65
66$(ROOTUSRSBIN)/$(QUOTAOFF):
67		-$(RM) $@; $(SYMLINK) $(LINKVALUEOFF) $@
68
69$(ROOTINIT_D)/% :	%
70		$(INS.file)
71