Makefile revision db31b05781045982dfb934e7f43742700da320ae
0N/A#
123N/A# CDDL HEADER START
0N/A#
0N/A# The contents of this file are subject to the terms of the
0N/A# Common Development and Distribution License (the "License").
0N/A# You may not use this file except in compliance with the License.
123N/A#
0N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
123N/A# or http://www.opensolaris.org/os/licensing.
0N/A# See the License for the specific language governing permissions
0N/A# and limitations under the License.
0N/A#
0N/A# When distributing Covered Code, include this CDDL HEADER in each
0N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
0N/A# If applicable, add the following below this CDDL HEADER, with the
0N/A# fields enclosed by brackets "[]" replaced with your own identifying
0N/A# information: Portions Copyright [yyyy] [name of copyright owner]
0N/A#
0N/A# CDDL HEADER END
0N/A#
123N/A#
123N/A# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
123N/A# Use is subject to license terms.
0N/A#
0N/A
87N/APROG= format
87N/A
96N/ACOBJS= add_definition.o analyze.o checkdev.o ctlr_scsi.o \
87N/A defect.o init_menus.o io.o label.o main.o \
0N/A menu.o menu_analyze.o menu_cache.o menu_command.o menu_defect.o \
0N/A menu_partition.o misc.o modify_partition.o partition.o \
0N/A prompts.o startup.o menu_scsi.o auto_sense.o disk_generic.o \
0N/A menu_developer.o menu_fdisk.o
0N/A
87N/AOBJS_sparc= init_csparc.o ctlr_ata.o
0N/A
99N/AOBJS_i386= init_ci386.o ctlr_ata.o ix_altsctr.o
99N/A
99N/AOBJS_= non-existent
99N/A
0N/AOBJS= $(OBJS_$(MACH)) $(COBJS)
69N/A
69N/ADATA= format.dat
0N/A
0N/Ainclude ../Makefile.cmd
0N/A
0N/ASRCS= $(OBJS:.o=.c)
0N/A
87N/AROOTSYMLINK= $(ROOTETCPROG)
87N/AROOTETCDATA= $(ROOTETC)/$(DATA)
0N/A
0N/A$(ROOTETCDATA) := FILEMODE = 0644
87N/A$(ROOTETCDATA) := OWNER = root
87N/A$(ROOTETCDATA) := GROUP = sys
0N/A
0N/ALDLIBS += -ladm -lefi -ldiskmgt -lnvpair -ldevid
87N/A
87N/ACPPFLAGS += -D_EXTVTOC
87N/A
87N/A.KEEP_STATE:
87N/A
87N/Aall: $(PROG) $(DATA)
87N/A
87N/A.PARALLEL: $(OBJS)
87N/A
87N/A$(PROG): $(OBJS)
87N/A $(LINK.c) -o $(PROG) $(OBJS) $(LDLIBS)
87N/A $(POST_PROCESS)
87N/A
87N/A#
94N/A# Install format as /usr/sbin/format, with link from /etc/format
94N/A#
94N/Ainstall: $(ROOTUSRSBINPROG) $(ROOTSYMLINK) $(ROOTETCDATA)
94N/A
94N/A$(ROOTSYMLINK):
87N/A $(RM) $@; $(SYMLINK) ../usr/sbin/$(PROG) $@
87N/A
87N/Aclean:
87N/A $(RM) $(OBJS)
87N/A
87N/Alint: lint_SRCS
87N/A
87N/Asb: $(SRCS)
87N/A $(COMPILE.c) -xsbfast $(SRCS)
87N/A
87N/Ainclude ../Makefile.targ
87N/A