Makefile revision 18c2aff776a775d34a4c9893a4c72e0434d68e36
5d92fff82718cd018f0b61a10b9ad4d2b8064c95rpluem#
bf52162f2d05c1fb1a107c7ef108de73f739b3edpquerna# CDDL HEADER START
4acb0cd5536553055c7c6996414cec00b0191e1djim#
4acb0cd5536553055c7c6996414cec00b0191e1djim# The contents of this file are subject to the terms of the
0ab15ffa17f588723d0c310af78b505bf4e8a953sf# Common Development and Distribution License, Version 1.0 only
0ab15ffa17f588723d0c310af78b505bf4e8a953sf# (the "License"). You may not use this file except in compliance
0ab15ffa17f588723d0c310af78b505bf4e8a953sf# with the License.
1dee19645438f8e3cb80fe86e1aaade04d093e45sf#
1dee19645438f8e3cb80fe86e1aaade04d093e45sf# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
1dee19645438f8e3cb80fe86e1aaade04d093e45sf# or http://www.opensolaris.org/os/licensing.
9f478b1ce1e6296ad7a244d9d2eaa6af79cfdfbfsf# See the License for the specific language governing permissions
9f478b1ce1e6296ad7a244d9d2eaa6af79cfdfbfsf# and limitations under the License.
9f478b1ce1e6296ad7a244d9d2eaa6af79cfdfbfsf#
9bec939825399ac2816ea0d912d2e3c3b2ed91f4sf# When distributing Covered Code, include this CDDL HEADER in each
9bec939825399ac2816ea0d912d2e3c3b2ed91f4sf# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
9bec939825399ac2816ea0d912d2e3c3b2ed91f4sf# If applicable, add the following below this CDDL HEADER, with the
5cca2a55e4a1cabdc2ca0db3bee456f27cf4c69eminfrin# fields enclosed by brackets "[]" replaced with your own identifying
5cca2a55e4a1cabdc2ca0db3bee456f27cf4c69eminfrin# information: Portions Copyright [yyyy] [name of copyright owner]
5cca2a55e4a1cabdc2ca0db3bee456f27cf4c69eminfrin#
33510984c759eb3da154ceb0db9b75fa0031d3b4sf# CDDL HEADER END
33510984c759eb3da154ceb0db9b75fa0031d3b4sf#
33510984c759eb3da154ceb0db9b75fa0031d3b4sf#
33510984c759eb3da154ceb0db9b75fa0031d3b4sf# Copyright 2005 Sun Microsystems, Inc. All rights reserved.
33510984c759eb3da154ceb0db9b75fa0031d3b4sf# Use is subject to license terms.
33510984c759eb3da154ceb0db9b75fa0031d3b4sf#
33510984c759eb3da154ceb0db9b75fa0031d3b4sf# Makefile for HSFS ident function.
33510984c759eb3da154ceb0db9b75fa0031d3b4sf#
33510984c759eb3da154ceb0db9b75fa0031d3b4sf# ident "%Z%%M% %I% %E% SMI"
6b15044d54a096e6323ff1540f1a491e8de7622dsf#
6b15044d54a096e6323ff1540f1a491e8de7622dsf# cmd/fs.d/hsfs/ident/Makefile
6b15044d54a096e6323ff1540f1a491e8de7622dsf#
287b17b746df229d6211c624b8a3e1edda21cecdsf
287b17b746df229d6211c624b8a3e1edda21cecdsfIDENT_VERS=1
287b17b746df229d6211c624b8a3e1edda21cecdsfFSTYPE= hsfs
de2d327e43e0f17cdb64851beafecba96a0ed962sfLIBPROG= ident_hsfs.so.${IDENT_VERS}
de2d327e43e0f17cdb64851beafecba96a0ed962sf
de2d327e43e0f17cdb64851beafecba96a0ed962sfinclude ../../Makefile.fstype
de2d327e43e0f17cdb64851beafecba96a0ed962sf#
c1ea0100af157a0d4e4a3de323f32dbfac4e5b6esf# Rules for making shared objects out of .c files. Works well if
c1ea0100af157a0d4e4a3de323f32dbfac4e5b6esf# we have a one-to-one mapping. Applies in all cases so far.
c1ea0100af157a0d4e4a3de323f32dbfac4e5b6esf#
c1ea0100af157a0d4e4a3de323f32dbfac4e5b6esf.SUFFIXES: .so.${IDENT_VERS} ${SUFFIXES}
c1ea0100af157a0d4e4a3de323f32dbfac4e5b6esf
c1ea0100af157a0d4e4a3de323f32dbfac4e5b6esf.c.so.${IDENT_VERS}:
c1ea0100af157a0d4e4a3de323f32dbfac4e5b6esf ${CC} ${CPPFLAGS} ${CFLAGS} ${COPTFLAG} ${LDFLAGS} $(GSHARED) \
b44565f239485673d9486068588a5fb3af008be9sf $(C_PICFLAGS) -o $@ $< ${LIBS}
b44565f239485673d9486068588a5fb3af008be9sf $(POST_PROCESS_SO)
b44565f239485673d9486068588a5fb3af008be9sf
b44565f239485673d9486068588a5fb3af008be9sfSRCS= ${LIBPROG:%.so.$(IDENT_VERS)=%.c}
bf99d597a964add76124fc185892e04733a02969sf
bf99d597a964add76124fc185892e04733a02969sfCPPFLAGS += -DIDENT_VERS=${IDENT_VERS}
bf99d597a964add76124fc185892e04733a02969sfLDFLAGS += $(ZTEXT) $(ZDEFS) $(ZCOMBRELOC)
876167dba234e2c7065895c87b77a8c57bdcf754sfLIBS= -lc
876167dba234e2c7065895c87b77a8c57bdcf754sf
876167dba234e2c7065895c87b77a8c57bdcf754sf.KEEP_STATE:
9d4ce88bcd21b01619a31c53db11a51c2a1e9717sf
9d4ce88bcd21b01619a31c53db11a51c2a1e9717sfall: ${LIBPROG}
9d4ce88bcd21b01619a31c53db11a51c2a1e9717sf
2792ea4d5c772a6bc19dece2e098b8125bf7184cjimlint:
2792ea4d5c772a6bc19dece2e098b8125bf7184cjim $(LINT.c) ${CFLAGS} ${SRCS}
2792ea4d5c772a6bc19dece2e098b8125bf7184cjim
2792ea4d5c772a6bc19dece2e098b8125bf7184cjimcstyle:
59a3c1e7880d3eab0d182735ff47758b9860411fminfrin ${CSTYLE} ${SRCS}
59a3c1e7880d3eab0d182735ff47758b9860411fminfrin
59a3c1e7880d3eab0d182735ff47758b9860411fminfrinclean:
59a3c1e7880d3eab0d182735ff47758b9860411fminfrin ${RM} ${IDENTS} core a.out
59a3c1e7880d3eab0d182735ff47758b9860411fminfrin
59a3c1e7880d3eab0d182735ff47758b9860411fminfrinclobber: clean
b3e63c395d671f14a096d7e888dbfd2caf93a663sf
b3e63c395d671f14a096d7e888dbfd2caf93a663sf