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