Makefile revision 0e42dee69ed771bf604dd1789fca9d77b5bbe302
af84459fbf938e508fd10b01cb8d699c79083813takashi#
af84459fbf938e508fd10b01cb8d699c79083813takashi# CDDL HEADER START
fd9abdda70912b99b24e3bf1a38f26fde908a74cnd#
fd9abdda70912b99b24e3bf1a38f26fde908a74cnd# The contents of this file are subject to the terms of the
fd9abdda70912b99b24e3bf1a38f26fde908a74cnd# Common Development and Distribution License (the "License").
af84459fbf938e508fd10b01cb8d699c79083813takashi# You may not use this file except in compliance with the License.
af84459fbf938e508fd10b01cb8d699c79083813takashi#
af84459fbf938e508fd10b01cb8d699c79083813takashi# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
af84459fbf938e508fd10b01cb8d699c79083813takashi# or http://www.opensolaris.org/os/licensing.
96ad5d81ee4a2cc66a4ae19893efc8aa6d06fae7jailletc# See the License for the specific language governing permissions
af84459fbf938e508fd10b01cb8d699c79083813takashi# and limitations under the License.
af84459fbf938e508fd10b01cb8d699c79083813takashi#
d29d9ab4614ff992b0e8de6e2b88d52b6f1f153erbowen# When distributing Covered Code, include this CDDL HEADER in each
2e545ce2450a9953665f701bb05350f0d3f26275nd# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
d29d9ab4614ff992b0e8de6e2b88d52b6f1f153erbowen# If applicable, add the following below this CDDL HEADER, with the
d29d9ab4614ff992b0e8de6e2b88d52b6f1f153erbowen# fields enclosed by brackets "[]" replaced with your own identifying
af84459fbf938e508fd10b01cb8d699c79083813takashi# information: Portions Copyright [yyyy] [name of copyright owner]
af84459fbf938e508fd10b01cb8d699c79083813takashi#
af33a4994ae2ff15bc67d19ff1a7feb906745bf8rbowen# CDDL HEADER END
3f08db06526d6901aa08c110b5bc7dde6bc39905nd#
af84459fbf938e508fd10b01cb8d699c79083813takashi#
af84459fbf938e508fd10b01cb8d699c79083813takashi#ident "%Z%%M% %I% %E% SMI"
af84459fbf938e508fd10b01cb8d699c79083813takashi#
3f08db06526d6901aa08c110b5bc7dde6bc39905nd# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
af84459fbf938e508fd10b01cb8d699c79083813takashi# Use is subject to license terms.
af84459fbf938e508fd10b01cb8d699c79083813takashi#
af84459fbf938e508fd10b01cb8d699c79083813takashi
af84459fbf938e508fd10b01cb8d699c79083813takashiFSTYP_VERS=1
af84459fbf938e508fd10b01cb8d699c79083813takashiFSTYPE= zfs
af84459fbf938e508fd10b01cb8d699c79083813takashiLIBPROG= fstyp.so.${FSTYP_VERS}
af84459fbf938e508fd10b01cb8d699c79083813takashi
f086b4b402fa9a2fefc7dda85de2a3cc1cd0a654rjunginclude ../../../../lib/Makefile.lib
af84459fbf938e508fd10b01cb8d699c79083813takashiinclude ../../Makefile.fstype
0a05fab9aadd37834734ffe106fc8ad4488fb3e3rbowen
0a05fab9aadd37834734ffe106fc8ad4488fb3e3rbowenCFLAGS += $(C_PICFLAGS)
af84459fbf938e508fd10b01cb8d699c79083813takashiDYNLIB= $(LIBPROG)
af84459fbf938e508fd10b01cb8d699c79083813takashi
af84459fbf938e508fd10b01cb8d699c79083813takashiLDLIBS += -lnvpair -lzfs -lc
af84459fbf938e508fd10b01cb8d699c79083813takashi
af84459fbf938e508fd10b01cb8d699c79083813takashiLINTFLAGS += -erroff=E_BAD_PTR_CAST_ALIGN -erroff=E_NAME_DEF_NOT_USED2
af84459fbf938e508fd10b01cb8d699c79083813takashiLINTFLAGS64 += -erroff=E_BAD_PTR_CAST_ALIGN -erroff=E_NAME_DEF_NOT_USED2
af84459fbf938e508fd10b01cb8d699c79083813takashi
af84459fbf938e508fd10b01cb8d699c79083813takashiSRCS= ${LIBPROG:%.so.$(FSTYP_VERS)=%.c}
0cf3cdbaa1dad11cbf1ce32e48f1b4ec88cf779fnilgun
c04f76acce77126cf88b09350e56ea8c6b4a064enilgunCPPFLAGS += -DFSTYP_VERS=${FSTYP_VERS} -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
af84459fbf938e508fd10b01cb8d699c79083813takashi
af84459fbf938e508fd10b01cb8d699c79083813takashi#
af84459fbf938e508fd10b01cb8d699c79083813takashi# Override PMAP dependency
af84459fbf938e508fd10b01cb8d699c79083813takashi#
af84459fbf938e508fd10b01cb8d699c79083813takashiPMAP=
af84459fbf938e508fd10b01cb8d699c79083813takashi
af84459fbf938e508fd10b01cb8d699c79083813takashi#
af84459fbf938e508fd10b01cb8d699c79083813takashi# Rules for making shared objects out of .c files. Works well if
af84459fbf938e508fd10b01cb8d699c79083813takashi# we have a one-to-one mapping. Applies in all cases so far.
af84459fbf938e508fd10b01cb8d699c79083813takashi#
af84459fbf938e508fd10b01cb8d699c79083813takashi.SUFFIXES: .so.${FSTYP_VERS} ${SUFFIXES}
af84459fbf938e508fd10b01cb8d699c79083813takashi
af84459fbf938e508fd10b01cb8d699c79083813takashi.c.so.${FSTYP_VERS}:
af84459fbf938e508fd10b01cb8d699c79083813takashi $(CC) $(CPPFLAGS) $(CFLAGS) $(DYNFLAGS) $(GSHARED) -o $@ $< $(LDLIBS)
5e828ff0f7e24a6cea156a5406297993e9e0efdelgentis $(POST_PROCESS_SO)
727872d18412fc021f03969b8641810d8896820bhumbedooh
9a58dc6a2b26ec128b1270cf48810e705f1a90dbsf
9a58dc6a2b26ec128b1270cf48810e705f1a90dbsf.KEEP_STATE:
af84459fbf938e508fd10b01cb8d699c79083813takashi
af84459fbf938e508fd10b01cb8d699c79083813takashiall: $(LIBPROG)
af84459fbf938e508fd10b01cb8d699c79083813takashi
af84459fbf938e508fd10b01cb8d699c79083813takashiinstall: all
af84459fbf938e508fd10b01cb8d699c79083813takashi $(RM) $(ROOTLIBFSTYPE)/fstyp
af84459fbf938e508fd10b01cb8d699c79083813takashi $(LN) $(ROOTUSRSBIN)/fstyp $(ROOTLIBFSTYPE)/fstyp
af84459fbf938e508fd10b01cb8d699c79083813takashi
af84459fbf938e508fd10b01cb8d699c79083813takashilint: lint_SRCS
af84459fbf938e508fd10b01cb8d699c79083813takashi
af84459fbf938e508fd10b01cb8d699c79083813takashicstyle:
af84459fbf938e508fd10b01cb8d699c79083813takashi $(CSTYLE) $(SRCS)
af84459fbf938e508fd10b01cb8d699c79083813takashi
af84459fbf938e508fd10b01cb8d699c79083813takashiclean:
af84459fbf938e508fd10b01cb8d699c79083813takashi ${RM} $(LIBPROG)
af84459fbf938e508fd10b01cb8d699c79083813takashi
af84459fbf938e508fd10b01cb8d699c79083813takashiclobber: clean
af84459fbf938e508fd10b01cb8d699c79083813takashi