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) 1990, 2010, Oracle and/or its affiliates. All rights reserved.
22 # Copyright 2015 Nexenta Systems, Inc. All rights reserved.
23 #
24
25 # The filesystem independent utilities clri, fsdb, dcopy, labelit, and mkfs
26 # are all built from the source file switchout.c. They are all then links
27 # to the same object. This is accomplished by:
28 # 1) building clri from switchout.c (had to choose one)
29 # 2) installing it in the target directory
30 # 3) linking the others to clri.
31 # In a similar manner, ncheck is linked to ff.
32
33 DFPROG= df
34 PROG= $(DFPROG) fsck volcopy ff
35 ROOTFS_PROG= mount umount
36 SPPROG= clri
37 MNTTAB= mnttab
38 DEFAULTFILES= fs.dfl
39
40 include ../Makefile.cmd
41
70 ROOTUSRSBINLINKS = $(ROOTFS_PROG:%=$(ROOTUSRSBIN)/%)
71
72 ROOTUSRSBINF= $(USRSBINF:%=$(ROOTUSRSBIN)/%)
73 ROOTUSRSBINCLRI= $(USRSBINCLRI:%=$(ROOTUSRSBIN)/%)
74 ROOTUSRSBINFF= $(USRSBINFF:%=$(ROOTUSRSBIN)/%)
75 ROOTETCMNTTAB= $(MNTTAB:%=$(ROOTETC)/%)
76 SYMETC2SBIN = $(ETC2SBIN:%=$(ROOTETC)/%)
77 SYMETC2USRSBIN = $(ETC2USRSBIN:%=$(ROOTETC)/%)
78 SYMUSRBIN2USRSBIN= $(USRBIN2USRSBIN:%=$(ROOTBIN)/%)
79 SYMUSRXPG4BIN2USRSBIN= $(USRXPG4BIN2USRSBIN:%=$(ROOTXPG4BIN)/%)
80 SYMDEVNM= $(ROOTUSRSBIN)/devnm
81
82 CPPFLAGS += -D_LARGEFILE64_SOURCE
83
84 CERRWARN += -_gcc=-Wno-implicit-function-declaration
85 CERRWARN += -_gcc=-Wno-parentheses
86 CERRWARN += -_gcc=-Wno-unused-variable
87 CERRWARN += -_gcc=-Wno-uninitialized
88 CERRWARN += -_gcc=-Wno-unused-function
89
90 $(DFPROG) := LDLIBS += -lcmdutils
91 $(SPPROG) := LDLIBS += -lkstat
92
93 $(ROOTETCMNTTAB) := FILEMODE = 444
94
95 # for messaging catalog
96 #
97 POFILE= fs.d.po
98 POFILES1= $(PROG:%=%.po) $(ROOTFS_PROG:%=%.po) switchout.po fssnapsup.po
99 POFILES2= $(I18NDIRS:%=%/%.po)
100 POFILES= $(POFILES1) $(POFILES2)
101 volcopy.po := XGETFLAGS += -a -x volcopy.xcl
102 $(DFPROG).po := XGETFLAGS += -a -x df.xcl
103
104 .KEEP_STATE:
105
106 # This is too intense when building the whole world.
107 # .PARALLEL: $(SUBDIRS)
108
109 all: $(FSLIB) .WAIT $(SUBDIRS) .WAIT all_local
|
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) 1990, 2010, Oracle and/or its affiliates. All rights reserved.
22 # Copyright (c) 2018, Joyent, Inc.
23 # Copyright 2015 Nexenta Systems, Inc. All rights reserved.
24 #
25
26 # The filesystem independent utilities clri, fsdb, dcopy, labelit, and mkfs
27 # are all built from the source file switchout.c. They are all then links
28 # to the same object. This is accomplished by:
29 # 1) building clri from switchout.c (had to choose one)
30 # 2) installing it in the target directory
31 # 3) linking the others to clri.
32 # In a similar manner, ncheck is linked to ff.
33
34 DFPROG= df
35 PROG= $(DFPROG) fsck volcopy ff
36 ROOTFS_PROG= mount umount
37 SPPROG= clri
38 MNTTAB= mnttab
39 DEFAULTFILES= fs.dfl
40
41 include ../Makefile.cmd
42
71 ROOTUSRSBINLINKS = $(ROOTFS_PROG:%=$(ROOTUSRSBIN)/%)
72
73 ROOTUSRSBINF= $(USRSBINF:%=$(ROOTUSRSBIN)/%)
74 ROOTUSRSBINCLRI= $(USRSBINCLRI:%=$(ROOTUSRSBIN)/%)
75 ROOTUSRSBINFF= $(USRSBINFF:%=$(ROOTUSRSBIN)/%)
76 ROOTETCMNTTAB= $(MNTTAB:%=$(ROOTETC)/%)
77 SYMETC2SBIN = $(ETC2SBIN:%=$(ROOTETC)/%)
78 SYMETC2USRSBIN = $(ETC2USRSBIN:%=$(ROOTETC)/%)
79 SYMUSRBIN2USRSBIN= $(USRBIN2USRSBIN:%=$(ROOTBIN)/%)
80 SYMUSRXPG4BIN2USRSBIN= $(USRXPG4BIN2USRSBIN:%=$(ROOTXPG4BIN)/%)
81 SYMDEVNM= $(ROOTUSRSBIN)/devnm
82
83 CPPFLAGS += -D_LARGEFILE64_SOURCE
84
85 CERRWARN += -_gcc=-Wno-implicit-function-declaration
86 CERRWARN += -_gcc=-Wno-parentheses
87 CERRWARN += -_gcc=-Wno-unused-variable
88 CERRWARN += -_gcc=-Wno-uninitialized
89 CERRWARN += -_gcc=-Wno-unused-function
90
91 # not linted
92 SMATCH=off
93
94 $(DFPROG) := LDLIBS += -lcmdutils
95 $(SPPROG) := LDLIBS += -lkstat
96
97 $(ROOTETCMNTTAB) := FILEMODE = 444
98
99 # for messaging catalog
100 #
101 POFILE= fs.d.po
102 POFILES1= $(PROG:%=%.po) $(ROOTFS_PROG:%=%.po) switchout.po fssnapsup.po
103 POFILES2= $(I18NDIRS:%=%/%.po)
104 POFILES= $(POFILES1) $(POFILES2)
105 volcopy.po := XGETFLAGS += -a -x volcopy.xcl
106 $(DFPROG).po := XGETFLAGS += -a -x df.xcl
107
108 .KEEP_STATE:
109
110 # This is too intense when building the whole world.
111 # .PARALLEL: $(SUBDIRS)
112
113 all: $(FSLIB) .WAIT $(SUBDIRS) .WAIT all_local
|