Makefile revision 0e42dee69ed771bf604dd1789fca9d77b5bbe302
fa9e4066f08beec538e775443c5be79dd423fcabahrens# CDDL HEADER START
fa9e4066f08beec538e775443c5be79dd423fcabahrens# The contents of this file are subject to the terms of the
441d80aa4f613b6298fc8bd3151f4be02dbf84fclling# Common Development and Distribution License (the "License").
441d80aa4f613b6298fc8bd3151f4be02dbf84fclling# You may not use this file except in compliance with the License.
fa9e4066f08beec538e775443c5be79dd423fcabahrens# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
fa9e4066f08beec538e775443c5be79dd423fcabahrens# See the License for the specific language governing permissions
fa9e4066f08beec538e775443c5be79dd423fcabahrens# and limitations under the License.
fa9e4066f08beec538e775443c5be79dd423fcabahrens# When distributing Covered Code, include this CDDL HEADER in each
fa9e4066f08beec538e775443c5be79dd423fcabahrens# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
fa9e4066f08beec538e775443c5be79dd423fcabahrens# If applicable, add the following below this CDDL HEADER, with the
fa9e4066f08beec538e775443c5be79dd423fcabahrens# fields enclosed by brackets "[]" replaced with your own identifying
fa9e4066f08beec538e775443c5be79dd423fcabahrens# information: Portions Copyright [yyyy] [name of copyright owner]
fa9e4066f08beec538e775443c5be79dd423fcabahrens# CDDL HEADER END
fa9e4066f08beec538e775443c5be79dd423fcabahrens# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
18ce54df8809e9f672d0ed1a53e99669df0a6df0ek# Use is subject to license terms.
fa9e4066f08beec538e775443c5be79dd423fcabahrens# ident "%Z%%M% %I% %E% SMI"
fa9e4066f08beec538e775443c5be79dd423fcabahrens# The filesystem independent utilities clri, fsdb, dcopy, labelit, and mkfs
fa9e4066f08beec538e775443c5be79dd423fcabahrens# are all built from the source file switchout.c. They are all then links
fa9e4066f08beec538e775443c5be79dd423fcabahrens# to the same object. This is accomplished by:
fa9e4066f08beec538e775443c5be79dd423fcabahrens# 1) building clri from switchout.c (had to choose one)
fa9e4066f08beec538e775443c5be79dd423fcabahrens# 2) installing it in the target directory
fa9e4066f08beec538e775443c5be79dd423fcabahrens# 3) linking the others to clri.
fa9e4066f08beec538e775443c5be79dd423fcabahrens# In a similar manner, ncheck is linked to ff.
fa9e4066f08beec538e775443c5be79dd423fcabahrensSUBDIR2= fd pcfs nfs hsfs proc ctfs udfs ufs tmpfs cachefs autofs mntfs objfs
fa9e4066f08beec538e775443c5be79dd423fcabahrensETC2USRSBIN= clri fsdb mkfs fsck labelit dcopy volcopy ff ncheck
fa9e4066f08beec538e775443c5be79dd423fcabahrens# This flag is being added only for SCO (x86) compatibility
fa9e4066f08beec538e775443c5be79dd423fcabahrens# for messaging catalog
fa9e4066f08beec538e775443c5be79dd423fcabahrensPOFILES1= $(PROG:%=%.po) $(ROOTFS_PROG:%=%.po) switchout.po fssnapsup.po
65cd9f2809a015b46790a9c5c2ef992d56177624eschrock# build rule for xpg4 objects
65cd9f2809a015b46790a9c5c2ef992d56177624eschrock# This is too intense when building the whole world.
eaca9bbd5f5d1e4e554da4c7108e8a03c8c33481eschrock# .PARALLEL: $(SUBDIRS)
65cd9f2809a015b46790a9c5c2ef992d56177624eschrockall_local: $(PROG) $(ROOTFS_PROG) $(XPG4PROG) $(SPPROG) $(MNTTAB) \
65cd9f2809a015b46790a9c5c2ef992d56177624eschrock $(LINK.c) -o $@ switchout.o deffs.o fssnapsup.o $(LDLIBS) -ldiskmgt
65cd9f2809a015b46790a9c5c2ef992d56177624eschrockinstall: $(FSLIB) .WAIT $(SUBDIRS) .WAIT install_local
65cd9f2809a015b46790a9c5c2ef992d56177624eschrockinstall_local: all_local $(ROOTSBINPROG) $(ROOTUSRSBINF) $(ROOTUSRSBINCLRI) \
fa9e4066f08beec538e775443c5be79dd423fcabahrens $(ROOTUSRSBINFF) $(ROOTETCMNTTAB) $(ROOTETCDEFAULTFILES) \
65cd9f2809a015b46790a9c5c2ef992d56177624eschrock# Links from /etc to /sbin such as /etc/mount -> ../sbin/mount
b1b8ab34de515a5e83206da22c3d7e563241b021lling# Links from /etc to /usr/sbin such as /etc/clri -> ../usr/sbin/clri
fa9e4066f08beec538e775443c5be79dd423fcabahrens# Links from /usr/bin to /usr/sbin such as /usr/bin/df -> ../sbin/df
fa9e4066f08beec538e775443c5be79dd423fcabahrens# Links from /usr/sbin to /sbin such as /usr/sbin/mount -> ../../sbin/mount
65cd9f2809a015b46790a9c5c2ef992d56177624eschrock# Symlink from devnm to df in /usr/sbin
e45ce728996d8e573eecb27f555fb86aaff0cafdahrens# Multiple names for switchout (clri, dcopy, fsdb, labelit, mkfs)
65cd9f2809a015b46790a9c5c2ef992d56177624eschrock# Multiple names for ff (ncheck)
2f8aaab38e6371ad39ed90a1211ba8921acbb4d5eschrock $(RM) $(PROG) $(ROOTFS_PROG) $(SPPROG) $(MNTTAB) $(DEFAULTFILES) \