7212N/A#
7212N/A# CDDL HEADER START
7212N/A#
7212N/A# The contents of this file are subject to the terms of the
7212N/A# Common Development and Distribution License (the "License").
7212N/A# You may not use this file except in compliance with the License.
7212N/A#
7212N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
7212N/A# or http://www.opensolaris.org/os/licensing.
7212N/A# See the License for the specific language governing permissions
7212N/A# and limitations under the License.
7212N/A#
7212N/A# When distributing Covered Code, include this CDDL HEADER in each
7212N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
7212N/A# If applicable, add the following below this CDDL HEADER, with the
7212N/A# fields enclosed by brackets "[]" replaced with your own identifying
7212N/A# information: Portions Copyright [yyyy] [name of copyright owner]
7212N/A#
7212N/A# CDDL HEADER END
7212N/A#
7212N/A#
7212N/A# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
7212N/A# Use is subject to license terms.
7212N/A#
7212N/A
7212N/AFSTYPE= ufs
7212N/ALIBPROG= fsck
7212N/AATTMK= $(LIBPROG)
7212N/A
7212N/Ainclude ../../Makefile.fstype
7212N/Ainclude ../Makefile.roll
7212N/A
7212N/AFSCKOBJS= main.o dir.o dup_avl.o inode.o pass1.o pass1b.o \
7212N/A pass2.o \
7212N/A pass3.o pass3b.o pass4.o pass5.o setup.o \
7212N/A utilities.o
7212N/AFSCKSRCS= $(FSCKOBJS:%.o=%.c)
7212N/A
7212N/AUFSDIR= ../../../../uts/common/fs/ufs
7212N/AUFSOBJS= ufs_subr.o ufs_tables.o
7230N/AUFSSRCS= $(UFSOBJS:%.o=$(UFSDIR)/%.c)
7230N/AROLLDIR= ../roll_log
7230N/A
7212N/AOBJS= $(FSCKOBJS) $(UFSOBJS) $(ROLLOBJS) $(FSLIB)
7212N/ASRCS= $(FSCKSRCS) $(UFSSRCS) $(ROLLSRCS) $(FSLIBSRC)
7212N/A
7212N/ACPPFLAGS += -D_LARGEFILE64_SOURCE -I../../ -I../../../../lib/libadm/inc
7212N/ALDLIBS += -lefi -lavl
7212N/A
7212N/ACERRWARN += -_gcc=-Wno-parentheses
7212N/ACERRWARN += -_gcc=-Wno-implicit-function-declaration
7212N/ACERRWARN += -_gcc=-Wno-uninitialized
7212N/A
7212N/A$(LIBPROG): $(OBJS)
7212N/A $(LINK.c) -o $@ $(OBJS) $(LDLIBS) $(CTFMERGE_HOOK)
7212N/A $(POST_PROCESS)
7212N/A
7212N/A%.o: $(UFSDIR)/%.c
7212N/A $(COMPILE.c) $< $(CTFCONVERT_HOOK)
7212N/A
7212N/A# Use DEVLINTFLAGS and the definition of LINT.c below for development
7212N/A# checking. Prior to putback, increase Nlevel to 4 for extra sanity.
7212N/A# Nlevel=2 is the default applied by lint.
7212N/A#
7212N/A# Remember to comment LINT.c out before doing the putback, as we shouldn't
7212N/A# be overriding the top-level settings under normal circumstances.
7212N/A#
7212N/A# Note that you have to have a proto area with populated usr/include and
7212N/A# usr/include/sys (or the parent workspace needs it). Otherwise lint gets
7212N/A# very confused. Unfortunately, we also have to tell it where its own
7212N/A# include directory is, or it gets the wrong version of note.h.
7212N/A
7212N/ASECLEVEL=core
7212N/ADEVLINTFLAGS = -errtags=yes -U__PRAGMA_REDEFINE_EXTNAME \
7212N/A $(C99LMODE) -errsecurity=$(SECLEVEL) \
7212N/A -x -Nlevel=2 \
-I/net/tools-sparc/export/tools.sparc/on10-tools/SUNWspro/SOS8/prod/include/lint
#LINT.c= $(LINT) $(DEVLINTFLAGS) $(CPPFLAGS)
lint: lint_SRCS
clean:
$(RM) $(FSCKOBJS) $(UFSOBJS)
cscope.out tags: FRC
$(XREF) -f -x $@
FRC: