Makefile revision 18c2aff776a775d34a4c9893a4c72e0434d68e36
9725N/A#
9725N/A# CDDL HEADER START
9725N/A#
9725N/A# The contents of this file are subject to the terms of the
9725N/A# Common Development and Distribution License (the "License").
9725N/A# You may not use this file except in compliance with the License.
9725N/A#
9725N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9725N/A# or http://www.opensolaris.org/os/licensing.
9725N/A# See the License for the specific language governing permissions
9725N/A# and limitations under the License.
9725N/A#
9725N/A# When distributing Covered Code, include this CDDL HEADER in each
9725N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
9725N/A# If applicable, add the following below this CDDL HEADER, with the
9725N/A# fields enclosed by brackets "[]" replaced with your own identifying
9725N/A# information: Portions Copyright [yyyy] [name of copyright owner]
9725N/A#
9725N/A# CDDL HEADER END
9725N/A#
9725N/A#
9725N/A# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
9725N/A# Use is subject to license terms.
9725N/A#
9725N/A# ident "%Z%%M% %I% %E% SMI"
9725N/A#
9725N/A
9725N/AIDENT_VERS=1
9725N/AFSTYPE= udfs
9725N/ALIBPROG= ident_udfs.so.${IDENT_VERS}
9725N/A
9725N/Ainclude ../../../../lib/Makefile.lib
9725N/Ainclude ../../Makefile.fstype
9725N/A
9725N/A# There should be a mapfile here
9725N/AMAPFILES =
9725N/A
9725N/ADYNLIB= $(LIBPROG)
9725N/A
9725N/A#
9725N/A# Override PMAP dependency
9725N/A#
9725N/APMAP=
9725N/A
9725N/ACFLAGS += $(C_PICFLAGS)
9725N/A#
9725N/A# Rules for making shared objects out of .c files. Works well if
9725N/A# we have a one-to-one mapping. Applies in all cases so far.
9725N/A#
9725N/A.SUFFIXES: .so.${IDENT_VERS} ${SUFFIXES}
9725N/A
9725N/A.c.so.${IDENT_VERS}:
9725N/A ${CC} ${CPPFLAGS} ${CFLAGS} $(DYNFLAGS) $(GSHARED) -o $@ $< -lc
9725N/A $(POST_PROCESS_SO)
9725N/A
9725N/ASRCS= ${LIBPROG:%.so.$(IDENT_VERS)=%.c}
9725N/A
9725N/ACPPFLAGS += -DIDENT_VERS=${IDENT_VERS}
9725N/A
9725N/A.KEEP_STATE:
9725N/A
9725N/Aall: ${LIBPROG}
9725N/A
9725N/A# for messaging catalog
9725N/A#
9725N/APOFILE= ident.po
9728N/A
9725N/A# for messaging catalog
9725N/A#
9725N/Acatalog: $(POFILE)
15153N/A
9725N/A$(POFILE): $(SRCS)
9725N/A $(RM) $@
15153N/A $(COMPILE.cpp) $(SRCS) > $(POFILE).i
10017N/A $(XGETTEXT) $(XGETFLAGS) $(POFILE).i
15153N/A sed "/^domain/d" messages.po > $@
10017N/A
10017N/Alint:
10017N/A $(LINT.c) -u ${SRCS}
10017N/A
10017N/Aputback:
10017N/A -cstyle -p ident_udfs.c
15153N/A -keywords ident_udfs.c
10017N/A -keywords Makefile
10017N/A
15157N/Acstyle:
10017N/A ${CSTYLE} ${SRCS}
10017N/A
11198N/Aclean:
10017N/A ${RM} ${IDENTS} core a.out
15153N/A
11192N/Aclobber: clean
9725N/A
15153N/A