2N/A#
2N/A# CDDL HEADER START
2N/A#
2N/A# The contents of this file are subject to the terms of the
2N/A# Common Development and Distribution License (the "License").
2N/A# You may not use this file except in compliance with the License.
2N/A#
2N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
2N/A# or http://www.opensolaris.org/os/licensing.
2N/A# See the License for the specific language governing permissions
2N/A# and limitations under the License.
2N/A#
2N/A# When distributing Covered Code, include this CDDL HEADER in each
2N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
2N/A# If applicable, add the following below this CDDL HEADER, with the
2N/A# fields enclosed by brackets "[]" replaced with your own identifying
2N/A# information: Portions Copyright [yyyy] [name of copyright owner]
2N/A#
2N/A# CDDL HEADER END
2N/A#
2N/A
2N/A#
2N/A# Copyright (c) 1997, 2011, Oracle and/or its affiliates. All rights reserved.
2N/A#
2N/A# lib/gss_mechs/mech_dh/backend/Makefile
2N/A#
2N/APROTOCOL_DIR = mech
2N/A
2N/APROTO_FILE = dhmech_prot.x
2N/ADERIVED_FILES = mech/dhmech_prot.h mech/xdr_token.c
2N/ACLEANFILES += $(DERIVED_FILES)
2N/A
2N/A# include library definitions
2N/Ainclude ../../../Makefile.lib
2N/A
2N/ATEXT_DOMAIN = SUNW_OST_NETRPC
2N/APOFILES = generic.po
2N/APOFILE = mech_dh.po
2N/A
2N/ASED= sed
2N/AGREP= grep
2N/A
2N/Aall := TARGET= all
2N/Aclean := TARGET= clean
2N/Aclobber := TARGET= clobber
2N/Ainstall := TARGET= install
2N/A_msg := TARGET= _msg
2N/A
2N/A.KEEP_STATE:
2N/Aall: $(DERIVED_FILES)
2N/A
2N/Ainstall: $(DERIVED_FILES)
2N/A
2N/A#
2N/A# Rules for building the derived files
2N/A#
2N/Amech/xdr_token.c: $(PROTOCOL_DIR)/dhmech_prot.x
2N/A $(RPCGEN) -c $(PROTOCOL_DIR)/dhmech_prot.x |\
2N/A $(SED) -e 's!$(PROTOCOL_DIR)/dhmech_prot.h!dhmech_prot.h!' > $@
2N/A
2N/Amech/dhmech_prot.h: mech/dhmech_prot.x
2N/A $(RPCGEN) -h $(PROTOCOL_DIR)/dhmech_prot.x > $@
2N/A
2N/A# include library targets
2N/A#include ../../../Makefile.targ
2N/A
2N/A# EXPORT DELETE START
2N/A# Special target to clean up the source tree for export distribution
2N/A# Warning: This target changes the source tree
2N/AEXPORT_SRC:
2N/A $(RM) Makefile+ mech/crypto.c+ mech/dhmech.c+
2N/A $(SED) -e "/^# EXPORT DELETE START/,/^# EXPORT DELETE END/d" \
2N/A < Makefile > Makefile+
2N/A $(MV) Makefile+ Makefile
2N/A $(SED) -e "/EXPORT DELETE START/,/EXPORT DELETE END/d" \
2N/A < mech/crypto.c > mech/crypto.c+
2N/A $(MV) mech/crypto.c+ mech/crypto.c
2N/A $(SED) -e "/EXPORT DELETE START/,/EXPORT DELETE END/d" \
2N/A < mech/dhmech.c > mech/dhmech.c+
2N/A $(MV) mech/dhmech.c+ mech/dhmech.c
2N/A $(CHMOD) 444 Makefile mech/crypto.c mech/dhmech.c
2N/A
2N/A# CRYPT DELETE START
2N/ACRYPT_SRC:
2N/A $(RM) Makefile+ mech/dhmech.c+
2N/A $(SED) -e "/^# CRYPT DELETE START/,/^# CRYPT DELETE END/d" \
2N/A < Makefile \
2N/A | $(SED) -e "/EXPORT DELETE/d" \
2N/A > Makefile+
2N/A $(MV) Makefile+ Makefile
2N/A $(SED) -e "/CRYPT DELETE START/,/CRYPT DELETE END/d" \
2N/A < mech/dhmech.c > mech/dhmech.c+
2N/A $(MV) mech/dhmech.c+ mech/dhmech.c
2N/A $(CHMOD) 444 Makefile mech/dhmech.c
2N/A
2N/A# CRYPT DELETE END
2N/A# EXPORT DELETE END
2N/A
2N/Aclean:
2N/A -$(RM) $(CLEANFILES)
2N/A
2N/Aclobber:
2N/A -$(RM) $(CLEANFILES)
2N/A
2N/A_msg: $(MSGDOMAIN) $(POFILE)
2N/A $(RM) $(MSGDOMAIN)/$(POFILE)
2N/A $(CP) $(POFILE) $(MSGDOMAIN)
2N/A
2N/A$(POFILE): $(DERIVED_FILES) .WAIT $(POFILES)
2N/A $(RM) $@
2N/A $(CAT) $(POFILES) > $@
2N/A
2N/Ageneric.po:
2N/A $(RM) messages.po
2N/A $(XGETTEXT) $(XGETFLAGS) `$(GREP) -l gettext mech/*.[ch]`
2N/A $(SED) "/^domain/d" messages.po > $@
2N/A $(RM) messages.po
2N/A
2N/A$(MSGDOMAIN):
2N/A $(INS.dir)