Makefile revision 18c2aff776a775d34a4c9893a4c72e0434d68e36
363N/A#
363N/A# CDDL HEADER START
363N/A#
363N/A# The contents of this file are subject to the terms of the
363N/A# Common Development and Distribution License (the "License").
363N/A# You may not use this file except in compliance with the License.
363N/A#
363N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
363N/A# or http://www.opensolaris.org/os/licensing.
363N/A# See the License for the specific language governing permissions
363N/A# and limitations under the License.
363N/A#
363N/A# When distributing Covered Code, include this CDDL HEADER in each
363N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
363N/A# If applicable, add the following below this CDDL HEADER, with the
363N/A# fields enclosed by brackets "[]" replaced with your own identifying
363N/A# information: Portions Copyright [yyyy] [name of copyright owner]
363N/A#
363N/A# CDDL HEADER END
363N/A#
5680N/A#
5680N/A# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
5600N/A# Use is subject to license terms.
363N/A#
363N/A# ident "%Z%%M% %I% %E% SMI"
363N/A#
2221N/A
2221N/AIDENT_VERS=1
363N/AFSTYPE= ufs
363N/ALIBPROG= ident_ufs.so.${IDENT_VERS}
364N/A
363N/Ainclude ../../../../lib/Makefile.lib
363N/Ainclude ../../Makefile.fstype
7101N/A
6714N/A# There should be a mapfile here
363N/AMAPFILES =
844N/A
7101N/ACFLAGS += $(C_PICFLAGS)
363N/ADYNLIB= $(LIBPROG)
2931N/A
363N/A#
3817N/A# Override PMAP dependency
3817N/A#
363N/APMAP=
695N/A
365N/A#
363N/A# Rules for making shared objects out of .c files. Works well if
363N/A# we have a one-to-one mapping. Applies in all cases so far.
363N/A#
363N/A.SUFFIXES: .so.${IDENT_VERS} ${SUFFIXES}
363N/A
2221N/A.c.so.${IDENT_VERS}:
363N/A ${CC} ${CPPFLAGS} ${CFLAGS} $(DYNFLAGS) $(GSHARED) -o $@ $< -lc
363N/A $(POST_PROCESS_SO)
4662N/A
695N/ASRCS= ${LIBPROG:%.so.$(IDENT_VERS)=%.c}
363N/A
363N/ACPPFLAGS += -DIDENT_VERS=${IDENT_VERS}
363N/A
4250N/A.KEEP_STATE:
814N/A
363N/Aall: ${LIBPROG}
4820N/A
791N/Alint:
791N/A $(LINT.c) ${CFLAGS} ${SRCS}
791N/A
4662N/Acstyle:
363N/A ${CSTYLE} ${SRCS}
3062N/A
3062N/Aclean:
3062N/A ${RM} ${IDENTS} core a.out
3062N/A
363N/Aclobber: clean
7101N/A
363N/A