fa9e4066f08beec538e775443c5be79dd423fcabahrens#
fa9e4066f08beec538e775443c5be79dd423fcabahrens# CDDL HEADER START
fa9e4066f08beec538e775443c5be79dd423fcabahrens#
fa9e4066f08beec538e775443c5be79dd423fcabahrens# The contents of this file are subject to the terms of the
0e42dee69ed771bf604dd1789fca9d77b5bbe302artem# Common Development and Distribution License (the "License").
0e42dee69ed771bf604dd1789fca9d77b5bbe302artem# You may not use this file except in compliance with the License.
fa9e4066f08beec538e775443c5be79dd423fcabahrens#
fa9e4066f08beec538e775443c5be79dd423fcabahrens# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
fa9e4066f08beec538e775443c5be79dd423fcabahrens# or http://www.opensolaris.org/os/licensing.
fa9e4066f08beec538e775443c5be79dd423fcabahrens# See the License for the specific language governing permissions
fa9e4066f08beec538e775443c5be79dd423fcabahrens# and limitations under the License.
fa9e4066f08beec538e775443c5be79dd423fcabahrens#
fa9e4066f08beec538e775443c5be79dd423fcabahrens# When distributing Covered Code, include this CDDL HEADER in each
fa9e4066f08beec538e775443c5be79dd423fcabahrens# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
fa9e4066f08beec538e775443c5be79dd423fcabahrens# If applicable, add the following below this CDDL HEADER, with the
fa9e4066f08beec538e775443c5be79dd423fcabahrens# fields enclosed by brackets "[]" replaced with your own identifying
fa9e4066f08beec538e775443c5be79dd423fcabahrens# information: Portions Copyright [yyyy] [name of copyright owner]
fa9e4066f08beec538e775443c5be79dd423fcabahrens#
fa9e4066f08beec538e775443c5be79dd423fcabahrens# CDDL HEADER END
fa9e4066f08beec538e775443c5be79dd423fcabahrens#
fa9e4066f08beec538e775443c5be79dd423fcabahrens#
0e42dee69ed771bf604dd1789fca9d77b5bbe302artem# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
fa9e4066f08beec538e775443c5be79dd423fcabahrens# Use is subject to license terms.
fa9e4066f08beec538e775443c5be79dd423fcabahrens#
f808c858fa61e7769218966759510a8b1190dfcfraf# ident "%Z%%M% %I% %E% SMI"
f808c858fa61e7769218966759510a8b1190dfcfraf#
fa9e4066f08beec538e775443c5be79dd423fcabahrens
0e42dee69ed771bf604dd1789fca9d77b5bbe302artemFSTYP_VERS=1
fa9e4066f08beec538e775443c5be79dd423fcabahrensFSTYPE= zfs
0e42dee69ed771bf604dd1789fca9d77b5bbe302artemLIBPROG= fstyp.so.${FSTYP_VERS}
fa9e4066f08beec538e775443c5be79dd423fcabahrens
0e42dee69ed771bf604dd1789fca9d77b5bbe302arteminclude ../../../../lib/Makefile.lib
0e42dee69ed771bf604dd1789fca9d77b5bbe302arteminclude ../../Makefile.fstype
fa9e4066f08beec538e775443c5be79dd423fcabahrens
f808c858fa61e7769218966759510a8b1190dfcfraf# There should be a mapfile here
f808c858fa61e7769218966759510a8b1190dfcfrafMAPFILES =
f808c858fa61e7769218966759510a8b1190dfcfraf
0e42dee69ed771bf604dd1789fca9d77b5bbe302artemCFLAGS += $(C_PICFLAGS)
0e42dee69ed771bf604dd1789fca9d77b5bbe302artemDYNLIB= $(LIBPROG)
fa9e4066f08beec538e775443c5be79dd423fcabahrens
0e42dee69ed771bf604dd1789fca9d77b5bbe302artemLDLIBS += -lnvpair -lzfs -lc
fa9e4066f08beec538e775443c5be79dd423fcabahrens
0e42dee69ed771bf604dd1789fca9d77b5bbe302artemLINTFLAGS += -erroff=E_BAD_PTR_CAST_ALIGN -erroff=E_NAME_DEF_NOT_USED2
0e42dee69ed771bf604dd1789fca9d77b5bbe302artemLINTFLAGS64 += -erroff=E_BAD_PTR_CAST_ALIGN -erroff=E_NAME_DEF_NOT_USED2
fa9e4066f08beec538e775443c5be79dd423fcabahrens
0e42dee69ed771bf604dd1789fca9d77b5bbe302artemSRCS= ${LIBPROG:%.so.$(FSTYP_VERS)=%.c}
0e42dee69ed771bf604dd1789fca9d77b5bbe302artem
0e42dee69ed771bf604dd1789fca9d77b5bbe302artemCPPFLAGS += -DFSTYP_VERS=${FSTYP_VERS} -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
0e42dee69ed771bf604dd1789fca9d77b5bbe302artem
0e42dee69ed771bf604dd1789fca9d77b5bbe302artem#
0e42dee69ed771bf604dd1789fca9d77b5bbe302artem# Override PMAP dependency
0e42dee69ed771bf604dd1789fca9d77b5bbe302artem#
0e42dee69ed771bf604dd1789fca9d77b5bbe302artemPMAP=
0e42dee69ed771bf604dd1789fca9d77b5bbe302artem
0e42dee69ed771bf604dd1789fca9d77b5bbe302artem#
0e42dee69ed771bf604dd1789fca9d77b5bbe302artem# Rules for making shared objects out of .c files. Works well if
0e42dee69ed771bf604dd1789fca9d77b5bbe302artem# we have a one-to-one mapping. Applies in all cases so far.
0e42dee69ed771bf604dd1789fca9d77b5bbe302artem#
0e42dee69ed771bf604dd1789fca9d77b5bbe302artem.SUFFIXES: .so.${FSTYP_VERS} ${SUFFIXES}
0e42dee69ed771bf604dd1789fca9d77b5bbe302artem
0e42dee69ed771bf604dd1789fca9d77b5bbe302artem.c.so.${FSTYP_VERS}:
0e42dee69ed771bf604dd1789fca9d77b5bbe302artem $(CC) $(CPPFLAGS) $(CFLAGS) $(DYNFLAGS) $(GSHARED) -o $@ $< $(LDLIBS)
0e42dee69ed771bf604dd1789fca9d77b5bbe302artem $(POST_PROCESS_SO)
0e42dee69ed771bf604dd1789fca9d77b5bbe302artem
0e42dee69ed771bf604dd1789fca9d77b5bbe302artem
0e42dee69ed771bf604dd1789fca9d77b5bbe302artem.KEEP_STATE:
0e42dee69ed771bf604dd1789fca9d77b5bbe302artem
0e42dee69ed771bf604dd1789fca9d77b5bbe302artemall: $(LIBPROG)
0e42dee69ed771bf604dd1789fca9d77b5bbe302artem
0e42dee69ed771bf604dd1789fca9d77b5bbe302arteminstall: all
0e42dee69ed771bf604dd1789fca9d77b5bbe302artem $(RM) $(ROOTLIBFSTYPE)/fstyp
0e42dee69ed771bf604dd1789fca9d77b5bbe302artem $(LN) $(ROOTUSRSBIN)/fstyp $(ROOTLIBFSTYPE)/fstyp
0e42dee69ed771bf604dd1789fca9d77b5bbe302artem
0e42dee69ed771bf604dd1789fca9d77b5bbe302artemlint: lint_SRCS
0e42dee69ed771bf604dd1789fca9d77b5bbe302artem
0e42dee69ed771bf604dd1789fca9d77b5bbe302artemcstyle:
0e42dee69ed771bf604dd1789fca9d77b5bbe302artem $(CSTYLE) $(SRCS)
0e42dee69ed771bf604dd1789fca9d77b5bbe302artem
0e42dee69ed771bf604dd1789fca9d77b5bbe302artemclean:
0e42dee69ed771bf604dd1789fca9d77b5bbe302artem ${RM} $(LIBPROG)
0e42dee69ed771bf604dd1789fca9d77b5bbe302artem
0e42dee69ed771bf604dd1789fca9d77b5bbe302artemclobber: clean