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