Makefile revision fa9e4066f08beec538e775443c5be79dd423fcab
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# CDDL HEADER START
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# The contents of this file are subject to the terms of the
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# Common Development and Distribution License, Version 1.0 only
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# (the "License"). You may not use this file except in compliance
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# with the License.
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# See the License for the specific language governing permissions
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# and limitations under the License.
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# When distributing Covered Code, include this CDDL HEADER in each
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# If applicable, add the following below this CDDL HEADER, with the
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# fields enclosed by brackets "[]" replaced with your own identifying
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# information: Portions Copyright [yyyy] [name of copyright owner]
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# CDDL HEADER END
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# Copyright 2005 Sun Microsystems, Inc. All rights reserved.
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# Use is subject to license terms.
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# ident "%Z%%M% %I% %E% SMI"
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# The filesystem independent utilities clri, fsdb, dcopy, labelit, and mkfs
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# are all built from the source file switchout.c. They are all then links
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# to the same object. This is accomplished by:
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# 1) building clri from switchout.c (had to choose one)
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# 2) installing it in the target directory
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# 3) linking the others to clri.
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# In a similar manner, ncheck is linked to ff.
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweSUBDIR2= zfs fd pcfs nfs hsfs proc ctfs udfs ufs tmpfs cachefs autofs mntfs \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweSUBDIRS= $(SUBDIR1) $(SUBDIR2) $($(MACH)_SUBDIRS)
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweALL_SUBDIRS= $(SUBDIR1) $(SUBDIR2) $(i386_SUBDIRS)
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweETC2USRSBIN= clri fsdb mkfs fsck labelit dcopy volcopy ff ncheck
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweROOTUSRSBINLINKS = $(ROOTFS_PROG:%=$(ROOTUSRSBIN)/%)
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweROOTUSRSBINCLRI= $(USRSBINCLRI:%=$(ROOTUSRSBIN)/%)
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweSYMUSRBIN2USRSBIN= $(USRBIN2USRSBIN:%=$(ROOTBIN)/%)
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# This flag is being added only for SCO (x86) compatibility
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe$(XPG4) df ff fsck mount volcopy := LDLIBS += -lcmd
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# for messaging catalog
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LowePOFILES1= $(PROG:%=%.po) $(ROOTFS_PROG:%=%.po) switchout.po fssnapsup.po
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LowePOFILES= $(POFILES1) $(POFILES2) $(POFILES_XPG4)
$(BUILD.po)
%.xpg4.o: %.c
$(COMPILE.c) -o $@ $<
$(DEFAULTFILES)
$(POST_PROCESS)
$(POST_PROCESS)
$(POST_PROCESS)
$(POST_PROCESS)
$(POST_PROCESS)
$(POST_PROCESS)
$(SYMETC2SBIN):
$(SYMETC2USRSBIN):
$(ROOTUSRSBINLINKS):
$(SYMDEVNM):
$(MNTTAB):
$(CLOBBERFILES)
lint:
FRC: