212032b342cab2f8798b146813d800ce522f9a66nd#
212032b342cab2f8798b146813d800ce522f9a66nd# CDDL HEADER START
212032b342cab2f8798b146813d800ce522f9a66nd#
212032b342cab2f8798b146813d800ce522f9a66nd# The contents of this file are subject to the terms of the
212032b342cab2f8798b146813d800ce522f9a66nd# Common Development and Distribution License (the "License").
212032b342cab2f8798b146813d800ce522f9a66nd# You may not use this file except in compliance with the License.
212032b342cab2f8798b146813d800ce522f9a66nd#
212032b342cab2f8798b146813d800ce522f9a66nd# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
212032b342cab2f8798b146813d800ce522f9a66nd# or http://www.opensolaris.org/os/licensing.
212032b342cab2f8798b146813d800ce522f9a66nd# See the License for the specific language governing permissions
212032b342cab2f8798b146813d800ce522f9a66nd# and limitations under the License.
212032b342cab2f8798b146813d800ce522f9a66nd#
212032b342cab2f8798b146813d800ce522f9a66nd# When distributing Covered Code, include this CDDL HEADER in each
212032b342cab2f8798b146813d800ce522f9a66nd# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
212032b342cab2f8798b146813d800ce522f9a66nd# If applicable, add the following below this CDDL HEADER, with the
212032b342cab2f8798b146813d800ce522f9a66nd# fields enclosed by brackets "[]" replaced with your own identifying
212032b342cab2f8798b146813d800ce522f9a66nd# information: Portions Copyright [yyyy] [name of copyright owner]
212032b342cab2f8798b146813d800ce522f9a66nd#
212032b342cab2f8798b146813d800ce522f9a66nd# CDDL HEADER END
3b3b7fc78d1f5bfc2769903375050048ff41ff26nd#
ad74a0524a06bfe11b7de9e3b4ce7233ab3bd3f7nd
ad74a0524a06bfe11b7de9e3b4ce7233ab3bd3f7nd#
3b3b7fc78d1f5bfc2769903375050048ff41ff26nd# Copyright (c) 1997, 2011, Oracle and/or its affiliates. All rights reserved.
3b3b7fc78d1f5bfc2769903375050048ff41ff26nd#
a2a160100f0a51cb7fd738c1462a0b251215870erbowen# lib/gss_mechs/mech_dh/backend/Makefile
a2a160100f0a51cb7fd738c1462a0b251215870erbowen#
a2a160100f0a51cb7fd738c1462a0b251215870erbowenPROTOCOL_DIR = mech
a2a160100f0a51cb7fd738c1462a0b251215870erbowen
212032b342cab2f8798b146813d800ce522f9a66ndPROTO_FILE = dhmech_prot.x
212032b342cab2f8798b146813d800ce522f9a66ndDERIVED_FILES = mech/dhmech_prot.h mech/xdr_token.c
212032b342cab2f8798b146813d800ce522f9a66ndCLEANFILES += $(DERIVED_FILES)
212032b342cab2f8798b146813d800ce522f9a66nd
212032b342cab2f8798b146813d800ce522f9a66nd# include library definitions
212032b342cab2f8798b146813d800ce522f9a66ndinclude ../../../Makefile.lib
212032b342cab2f8798b146813d800ce522f9a66nd
212032b342cab2f8798b146813d800ce522f9a66ndTEXT_DOMAIN = SUNW_OST_NETRPC
212032b342cab2f8798b146813d800ce522f9a66ndPOFILES = generic.po
212032b342cab2f8798b146813d800ce522f9a66ndPOFILE = mech_dh.po
212032b342cab2f8798b146813d800ce522f9a66nd
212032b342cab2f8798b146813d800ce522f9a66ndSED= sed
212032b342cab2f8798b146813d800ce522f9a66ndGREP= grep
212032b342cab2f8798b146813d800ce522f9a66nd
212032b342cab2f8798b146813d800ce522f9a66ndall := TARGET= all
d0619fd858a9fd6c8efa7689c63d4546a5bf0c40ndclean := TARGET= clean
212032b342cab2f8798b146813d800ce522f9a66ndclobber := TARGET= clobber
212032b342cab2f8798b146813d800ce522f9a66ndinstall := TARGET= install
212032b342cab2f8798b146813d800ce522f9a66nd_msg := TARGET= _msg
a2a160100f0a51cb7fd738c1462a0b251215870erbowen
a2a160100f0a51cb7fd738c1462a0b251215870erbowen.KEEP_STATE:
a2a160100f0a51cb7fd738c1462a0b251215870erbowenall: $(DERIVED_FILES)
a2a160100f0a51cb7fd738c1462a0b251215870erbowen
a2a160100f0a51cb7fd738c1462a0b251215870erboweninstall: $(DERIVED_FILES)
838d5ac1582d50020a146d747b64d64548fa8c92rbowen
838d5ac1582d50020a146d747b64d64548fa8c92rbowen#
212032b342cab2f8798b146813d800ce522f9a66nd# Rules for building the derived files
212032b342cab2f8798b146813d800ce522f9a66nd#
212032b342cab2f8798b146813d800ce522f9a66ndmech/xdr_token.c: $(PROTOCOL_DIR)/dhmech_prot.x
838d5ac1582d50020a146d747b64d64548fa8c92rbowen $(RPCGEN) -c $(PROTOCOL_DIR)/dhmech_prot.x |\
838d5ac1582d50020a146d747b64d64548fa8c92rbowen $(SED) -e 's!$(PROTOCOL_DIR)/dhmech_prot.h!dhmech_prot.h!' > $@
212032b342cab2f8798b146813d800ce522f9a66nd
212032b342cab2f8798b146813d800ce522f9a66ndmech/dhmech_prot.h: mech/dhmech_prot.x
a2a160100f0a51cb7fd738c1462a0b251215870erbowen $(RPCGEN) -h $(PROTOCOL_DIR)/dhmech_prot.x > $@
838d5ac1582d50020a146d747b64d64548fa8c92rbowen
838d5ac1582d50020a146d747b64d64548fa8c92rbowen# include library targets
838d5ac1582d50020a146d747b64d64548fa8c92rbowen#include ../../../Makefile.targ
212032b342cab2f8798b146813d800ce522f9a66nd
212032b342cab2f8798b146813d800ce522f9a66nd# EXPORT DELETE START
212032b342cab2f8798b146813d800ce522f9a66nd# Special target to clean up the source tree for export distribution
a2a160100f0a51cb7fd738c1462a0b251215870erbowen# Warning: This target changes the source tree
838d5ac1582d50020a146d747b64d64548fa8c92rbowenEXPORT_SRC:
212032b342cab2f8798b146813d800ce522f9a66nd $(RM) Makefile+ mech/crypto.c+ mech/dhmech.c+
212032b342cab2f8798b146813d800ce522f9a66nd $(SED) -e "/^# EXPORT DELETE START/,/^# EXPORT DELETE END/d" \
212032b342cab2f8798b146813d800ce522f9a66nd < Makefile > Makefile+
212032b342cab2f8798b146813d800ce522f9a66nd $(MV) Makefile+ Makefile
212032b342cab2f8798b146813d800ce522f9a66nd $(SED) -e "/EXPORT DELETE START/,/EXPORT DELETE END/d" \
212032b342cab2f8798b146813d800ce522f9a66nd < mech/crypto.c > mech/crypto.c+
a2a160100f0a51cb7fd738c1462a0b251215870erbowen $(MV) mech/crypto.c+ mech/crypto.c
838d5ac1582d50020a146d747b64d64548fa8c92rbowen $(SED) -e "/EXPORT DELETE START/,/EXPORT DELETE END/d" \
838d5ac1582d50020a146d747b64d64548fa8c92rbowen < mech/dhmech.c > mech/dhmech.c+
838d5ac1582d50020a146d747b64d64548fa8c92rbowen $(MV) mech/dhmech.c+ mech/dhmech.c
a2a160100f0a51cb7fd738c1462a0b251215870erbowen $(CHMOD) 444 Makefile mech/crypto.c mech/dhmech.c
a2a160100f0a51cb7fd738c1462a0b251215870erbowen
a2a160100f0a51cb7fd738c1462a0b251215870erbowen# CRYPT DELETE START
a2a160100f0a51cb7fd738c1462a0b251215870erbowenCRYPT_SRC:
a2a160100f0a51cb7fd738c1462a0b251215870erbowen $(RM) Makefile+ mech/dhmech.c+
212032b342cab2f8798b146813d800ce522f9a66nd $(SED) -e "/^# CRYPT DELETE START/,/^# CRYPT DELETE END/d" \
212032b342cab2f8798b146813d800ce522f9a66nd < Makefile \
212032b342cab2f8798b146813d800ce522f9a66nd | $(SED) -e "/EXPORT DELETE/d" \
a2a160100f0a51cb7fd738c1462a0b251215870erbowen > Makefile+
a2a160100f0a51cb7fd738c1462a0b251215870erbowen $(MV) Makefile+ Makefile
a2a160100f0a51cb7fd738c1462a0b251215870erbowen $(SED) -e "/CRYPT DELETE START/,/CRYPT DELETE END/d" \
a2a160100f0a51cb7fd738c1462a0b251215870erbowen < mech/dhmech.c > mech/dhmech.c+
838d5ac1582d50020a146d747b64d64548fa8c92rbowen $(MV) mech/dhmech.c+ mech/dhmech.c
838d5ac1582d50020a146d747b64d64548fa8c92rbowen $(CHMOD) 444 Makefile mech/dhmech.c
212032b342cab2f8798b146813d800ce522f9a66nd
212032b342cab2f8798b146813d800ce522f9a66nd# CRYPT DELETE END
212032b342cab2f8798b146813d800ce522f9a66nd# EXPORT DELETE END
a2a160100f0a51cb7fd738c1462a0b251215870erbowen
212032b342cab2f8798b146813d800ce522f9a66ndclean:
838d5ac1582d50020a146d747b64d64548fa8c92rbowen -$(RM) $(CLEANFILES)
838d5ac1582d50020a146d747b64d64548fa8c92rbowen
212032b342cab2f8798b146813d800ce522f9a66ndclobber:
212032b342cab2f8798b146813d800ce522f9a66nd -$(RM) $(CLEANFILES)
212032b342cab2f8798b146813d800ce522f9a66nd
212032b342cab2f8798b146813d800ce522f9a66nd_msg: $(MSGDOMAIN) $(POFILE)
a2a160100f0a51cb7fd738c1462a0b251215870erbowen $(RM) $(MSGDOMAIN)/$(POFILE)
a2a160100f0a51cb7fd738c1462a0b251215870erbowen $(CP) $(POFILE) $(MSGDOMAIN)
a2a160100f0a51cb7fd738c1462a0b251215870erbowen
212032b342cab2f8798b146813d800ce522f9a66nd$(POFILE): $(DERIVED_FILES) .WAIT $(POFILES)
212032b342cab2f8798b146813d800ce522f9a66nd $(RM) $@
212032b342cab2f8798b146813d800ce522f9a66nd $(CAT) $(POFILES) > $@
212032b342cab2f8798b146813d800ce522f9a66nd
212032b342cab2f8798b146813d800ce522f9a66ndgeneric.po:
212032b342cab2f8798b146813d800ce522f9a66nd $(RM) messages.po
212032b342cab2f8798b146813d800ce522f9a66nd $(XGETTEXT) $(XGETFLAGS) `$(GREP) -l gettext mech/*.[ch]`
a2a160100f0a51cb7fd738c1462a0b251215870erbowen $(SED) "/^domain/d" messages.po > $@
a2a160100f0a51cb7fd738c1462a0b251215870erbowen $(RM) messages.po
a2a160100f0a51cb7fd738c1462a0b251215870erbowen
a2a160100f0a51cb7fd738c1462a0b251215870erbowen$(MSGDOMAIN):
a2a160100f0a51cb7fd738c1462a0b251215870erbowen $(INS.dir)
a2a160100f0a51cb7fd738c1462a0b251215870erbowen