Makefile revision 7c478bd95313f5f23a4c958a745db2134aa03244
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsync#
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsync# CDDL HEADER START
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsync#
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsync# The contents of this file are subject to the terms of the
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsync# Common Development and Distribution License, Version 1.0 only
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsync# (the "License"). You may not use this file except in compliance
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsync# with the License.
c58f1213e628a545081c70e26c6b67a841cff880vboxsync#
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsync# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsync# or http://www.opensolaris.org/os/licensing.
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsync# See the License for the specific language governing permissions
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsync# and limitations under the License.
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsync#
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsync# When distributing Covered Code, include this CDDL HEADER in each
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsync# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsync# If applicable, add the following below this CDDL HEADER, with the
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsync# fields enclosed by brackets "[]" replaced with your own identifying
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsync# information: Portions Copyright [yyyy] [name of copyright owner]
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsync#
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsync# CDDL HEADER END
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsync#
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsync#
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsync# Copyright 1991-1997,2002,2003 Sun Microsystems, Inc. All rights reserved.
9040f019271f91b98e1320c0a8c38a42636e3979vboxsync# Use is subject to license terms.
9040f019271f91b98e1320c0a8c38a42636e3979vboxsync#
9040f019271f91b98e1320c0a8c38a42636e3979vboxsync# ident "%Z%%M% %I% %E% SMI"
9040f019271f91b98e1320c0a8c38a42636e3979vboxsync#
9040f019271f91b98e1320c0a8c38a42636e3979vboxsync
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsyncPROG= format
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsync
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsyncCOBJS= add_definition.o analyze.o checkmount.o ctlr_scsi.o \
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsync defect.o init_menus.o io.o label.o main.o \
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsync menu.o menu_analyze.o menu_cache.o menu_command.o menu_defect.o \
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsync menu_partition.o misc.o modify_partition.o partition.o \
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsync prompts.o startup.o menu_scsi.o auto_sense.o disk_generic.o \
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsync menu_developer.o menu_fdisk.o
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsync
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsyncOBJS_sparc= init_csparc.o ctlr_ata.o
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsync
9040f019271f91b98e1320c0a8c38a42636e3979vboxsyncOBJS_i386= init_ci386.o ctlr_ata.o ix_altsctr.o
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsync
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsyncOBJS_= non-existent
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsync
9040f019271f91b98e1320c0a8c38a42636e3979vboxsyncOBJS= $(OBJS_$(MACH)) $(COBJS)
9040f019271f91b98e1320c0a8c38a42636e3979vboxsync
9040f019271f91b98e1320c0a8c38a42636e3979vboxsyncDATA= format.dat
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsync
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsyncinclude ../Makefile.cmd
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsync
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsyncSRCS= $(OBJS:.o=.c)
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsync
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsyncROOTSYMLINK= $(ROOTETCPROG)
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsyncROOTETCDATA= $(ROOTETC)/$(DATA)
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsync
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsync$(ROOTETCDATA) := FILEMODE = 0644
9040f019271f91b98e1320c0a8c38a42636e3979vboxsync$(ROOTETCDATA) := OWNER = root
9040f019271f91b98e1320c0a8c38a42636e3979vboxsync$(ROOTETCDATA) := GROUP = sys
9040f019271f91b98e1320c0a8c38a42636e3979vboxsync
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsyncLDLIBS += -ladm -lefi
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsync
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsync.KEEP_STATE:
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsync
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsyncall: $(PROG) $(DATA)
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsync
99be02f9e15a3ca61b6a7c207cc7eb68dbd04817vboxsync.PARALLEL: $(OBJS)
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsync
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsync$(PROG): $(OBJS)
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsync $(LINK.c) -o $(PROG) $(OBJS) $(LDLIBS)
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsync $(POST_PROCESS)
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsync
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsync#
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsync# Install format as /usr/sbin/format, with link from /etc/format
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsync#
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsyncinstall: $(ROOTUSRSBINPROG) $(ROOTSYMLINK) $(ROOTETCDATA)
bbf3d430bae83177ab9ce3097f49d89cc873e7c0vboxsync
bbf3d430bae83177ab9ce3097f49d89cc873e7c0vboxsync$(ROOTSYMLINK):
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsync $(RM) $@; $(SYMLINK) ../usr/sbin/$(PROG) $@
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsync
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsyncclean:
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsync $(RM) $(OBJS)
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsync
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsynclint: lint_SRCS
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsync
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsyncsb: $(SRCS)
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsync $(COMPILE.c) -xsbfast $(SRCS)
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsync
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsyncinclude ../Makefile.targ
c1f5ec452b23d55c71e6f07628b84ac5e97cf551vboxsync