Makefile revision 2
713N/A#
713N/A# CDDL HEADER START
713N/A#
713N/A# The contents of this file are subject to the terms of the
713N/A# Common Development and Distribution License (the "License").
713N/A# You may not use this file except in compliance with the License.
713N/A#
713N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
713N/A# or http://www.opensolaris.org/os/licensing.
713N/A# See the License for the specific language governing permissions
713N/A# and limitations under the License.
713N/A#
713N/A# When distributing Covered Code, include this CDDL HEADER in each
713N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
713N/A# If applicable, add the following below this CDDL HEADER, with the
713N/A# fields enclosed by brackets "[]" replaced with your own identifying
713N/A# information: Portions Copyright [yyyy] [name of copyright owner]
713N/A#
713N/A# CDDL HEADER END
713N/A#
713N/A#
713N/A# Copyright (c) 1996, 2011, Oracle and/or its affiliates. All rights reserved.
713N/A#
713N/A
713N/Ainclude ../Makefile.lib
713N/A
713N/ALIBRARY= libgss.a
713N/A
713N/A# defines the duplicate sources we share with gsscred
713N/AGSSCRED_DIR = $(SRC)/cmd/gss/gsscred
713N/ADUPLICATE_SRC = gsscred_utils.c gsscred_file.c # gen_oids.c
713N/ACLEAN_SRC = $(DUPLICATE_SRC) gen_oids.c
713N/A
713N/ASUBDIRS = $(MACH)
713N/A$(BUILD64)SUBDIRS += $(MACH64)
713N/A
713N/AROOTDIRS= $(ROOT)/usr/include
713N/AGSSMECH_DIR= $(ROOT)/usr/lib/gss
713N/A
713N/Aall := TARGET= all
713N/Aclean := TARGET= clean
713N/Aclobber := TARGET= clobber
713N/Ainstall := TARGET= install
713N/Alint := TARGET= lint
713N/Astub := TARGET= stub
713N/Astubinstall := TARGET= stubinstall
713N/A
715N/APOFILE = $(LIBRARY:.a=.po)
713N/AXGETFLAGS+= -a
713N/AMSGFILES = `$(GREP) -l gettext *.[ch]`
713N/A
713N/A.KEEP_STATE:
713N/A
715N/Aall clean clobber lint stub stubinstall: $(SUBDIRS)
715N/A
715N/Ainstall: $(GSSMECH_DIR) all .WAIT $(SUBDIRS)
713N/A
713N/Acheck install_h:
713N/A
713N/A_msg: $(MSGDOMAINPOFILE)
713N/A
713N/A$(POFILE): pofile_MSGFILES
713N/A
713N/A$(GSSMECH_DIR):
715N/A $(INS.dir)
713N/A
713N/A$(SUBDIRS): FRC
715N/A @cd $@; pwd; $(MAKE) $(TARGET)
713N/A
713N/AFRC:
713N/A
715N/A# include library targets
715N/Ainclude ../Makefile.targ
713N/A
713N/A# EXPORT DELETE START
775N/A# Special target to clean up the source tree for export distribution
713N/A# Warning: This target changes the source tree
715N/A
715N/AEXPORT_SRC:
715N/A $(RM) Makefile+ g_seal.c+ g_unseal.c+
713N/A sed -e "/EXPORT DELETE START/,/EXPORT DELETE END/d" \
713N/A < g_seal.c > g_seal.c+
715N/A $(MV) g_seal.c+ g_seal.c
713N/A sed -e "/EXPORT DELETE START/,/EXPORT DELETE END/d" \
713N/A < g_unseal.c > g_unseal.c+
713N/A $(MV) g_unseal.c+ g_unseal.c
713N/A sed -e "/^# EXPORT DELETE START/,/^# EXPORT DELETE END/d" \
715N/A < Makefile > Makefile+
713N/A $(MV) Makefile+ Makefile
713N/A $(CHMOD) 444 Makefile g_seal.c g_unseal.c
715N/A
713N/A# EXPORT DELETE END
715N/A
713N/A
713N/Ainclude $(SRC)/Makefile.msg.targ
713N/A