286N/A#
286N/A# CDDL HEADER START
286N/A#
286N/A# The contents of this file are subject to the terms of the
286N/A# Common Development and Distribution License (the "License").
286N/A# You may not use this file except in compliance with the License.
286N/A#
286N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
286N/A# or http://www.opensolaris.org/os/licensing.
286N/A# See the License for the specific language governing permissions
286N/A# and limitations under the License.
286N/A#
286N/A# When distributing Covered Code, include this CDDL HEADER in each
286N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
286N/A# If applicable, add the following below this CDDL HEADER, with the
286N/A# fields enclosed by brackets "[]" replaced with your own identifying
286N/A# information: Portions Copyright [yyyy] [name of copyright owner]
286N/A#
286N/A# CDDL HEADER END
286N/A#
286N/A#
286N/A# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
286N/A# Use is subject to license terms.
286N/A#
286N/A# ident "%Z%%M% %I% %E% SMI"
286N/A#
286N/A
286N/AFSTYP_VERS=1
286N/AFSTYPE= pcfs
286N/ALIBPROG= fstyp.so.${FSTYP_VERS}
286N/A
286N/Ainclude ../../../../lib/Makefile.lib
286N/Ainclude ../../Makefile.fstype
286N/A
286N/A# There should be a mapfile here
286N/AMAPFILES =
286N/A
286N/ACFLAGS += $(C_PICFLAGS)
286N/ADYNLIB= $(LIBPROG)
286N/A
286N/ALDLIBS += -lnvpair -lc
286N/A
286N/ALINTFLAGS += -erroff=E_BAD_PTR_CAST_ALIGN -erroff=E_NAME_DEF_NOT_USED2
286N/ALINTFLAGS64 += -erroff=E_BAD_PTR_CAST_ALIGN -erroff=E_NAME_DEF_NOT_USED2
286N/A
286N/A#
286N/A# Override PMAP dependency
286N/A#
286N/APMAP=
286N/A
286N/A#
286N/A# Rules for making shared objects out of .c files. Works well if
286N/A# we have a one-to-one mapping. Applies in all cases so far.
286N/A#
286N/A.SUFFIXES: .so.${FSTYP_VERS} ${SUFFIXES}
286N/A
286N/A.c.so.${FSTYP_VERS}:
286N/A $(CC) $(CPPFLAGS) $(CFLAGS) $(DYNFLAGS) $(GSHARED) -o $@ $< $(LDLIBS)
286N/A $(POST_PROCESS_SO)
286N/A
286N/ASRCS= ${LIBPROG:%.so.$(FSTYP_VERS)=%.c}
286N/A
286N/ACPPFLAGS += -DFSTYP_VERS=${FSTYP_VERS} -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
286N/A
286N/A.KEEP_STATE:
286N/A
286N/Aall: $(LIBPROG)
286N/A
286N/Ainstall: all
286N/A $(RM) $(ROOTLIBFSTYPE)/fstyp
286N/A $(LN) $(ROOTUSRSBIN)/fstyp $(ROOTLIBFSTYPE)/fstyp
286N/A
286N/Alint: lint_SRCS
286N/A
286N/Acstyle:
286N/A $(CSTYLE) $(SRCS)
286N/A
286N/Aclean:
286N/A $(RM) $(LIBPROG)
286N/A
286N/Aclobber: clean
286N/A