Makefile.fstype (7c478bd9) Makefile.fstype (24fe0b3b)
1#
2# CDDL HEADER START
3#
4# The contents of this file are subject to the terms of the
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.
5# Common Development and Distribution License (the "License").
6# You may not use this file except in compliance 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#
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#
23# Copyright 2004 Sun Microsystems, Inc. All rights reserved.
22# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
24# Use is subject to license terms.
25#
23# Use is subject to license terms.
24#
26# ident "%Z%%M% %I% %E% SMI"
27#
28# cmd/fs.d/Makefile.fstype
29# Definitions and targets common to "simple" file system types.
30#
31
32# FSTYPE is name of filesystem type subdirectory to build
33# PROG is a list of filesystem type programs to be installed BOTH in
34# ../etc/fs/$(FSTYPE) and ../usr/lib/fs/$(FSTYPE)
35# Those installed under etc/fs must be statically linked, while

--- 21 unchanged lines hidden (view full) ---

57ROOTETCTYPE= $(ROOTETC)/$(FSTYPE)
58ROOTLIBTYPE= $(ROOTLIB)/$(FSTYPE)
59ROOTETCFSPROG= $(PROG:%=$(ROOTETCFSTYPE)/%) $(ETCPROG:%=$(ROOTETCFSTYPE)/%)
60ROOTLIBFSPROG= $(PROG:%=$(ROOTLIBFSTYPE)/%) $(LIBPROG:%=$(ROOTLIBFSTYPE)/%)
61ROOTTYPEPROG= $(TYPEPROG:%=$(ROOTLIBTYPE)/%)
62FSTYPEDIRS= $(FSDIRS:%=%/$(FSTYPE)) $(ROOTETCTYPE) $(ROOTLIBTYPE)
63FSTYPEPROG= $(ROOTETCFSPROG) $(ROOTLIBFSPROG) $(ROOTTYPEPROG)
64
25# cmd/fs.d/Makefile.fstype
26# Definitions and targets common to "simple" file system types.
27#
28
29# FSTYPE is name of filesystem type subdirectory to build
30# PROG is a list of filesystem type programs to be installed BOTH in
31# ../etc/fs/$(FSTYPE) and ../usr/lib/fs/$(FSTYPE)
32# Those installed under etc/fs must be statically linked, while

--- 21 unchanged lines hidden (view full) ---

54ROOTETCTYPE= $(ROOTETC)/$(FSTYPE)
55ROOTLIBTYPE= $(ROOTLIB)/$(FSTYPE)
56ROOTETCFSPROG= $(PROG:%=$(ROOTETCFSTYPE)/%) $(ETCPROG:%=$(ROOTETCFSTYPE)/%)
57ROOTLIBFSPROG= $(PROG:%=$(ROOTLIBFSTYPE)/%) $(LIBPROG:%=$(ROOTLIBFSTYPE)/%)
58ROOTTYPEPROG= $(TYPEPROG:%=$(ROOTLIBTYPE)/%)
59FSTYPEDIRS= $(FSDIRS:%=%/$(FSTYPE)) $(ROOTETCTYPE) $(ROOTLIBTYPE)
60FSTYPEPROG= $(ROOTETCFSPROG) $(ROOTLIBFSPROG) $(ROOTTYPEPROG)
61
65$(FSTYPEDIRS) := OWNER = root
66$(FSTYPEDIRS) := GROUP = sys
67
68CLOBBERFILES += $(ETCPROG) $(LIBPROG) $(TYPEPROG)
69
70.KEEP_STATE:
71
72all: $(PROG) $(ETCPROG) $(LIBPROG) $(TYPEPROG)
73
74# FSDIRS are made by $(SRC)/Targetdirs via rootdirs in $(SRC)/Makefile
75# Some FSTYPE directories are made there also and should not be made here,

--- 28 unchanged lines hidden ---
62CLOBBERFILES += $(ETCPROG) $(LIBPROG) $(TYPEPROG)
63
64.KEEP_STATE:
65
66all: $(PROG) $(ETCPROG) $(LIBPROG) $(TYPEPROG)
67
68# FSDIRS are made by $(SRC)/Targetdirs via rootdirs in $(SRC)/Makefile
69# Some FSTYPE directories are made there also and should not be made here,

--- 28 unchanged lines hidden ---