Makefile revision 7c478bd95313f5f23a4c958a745db2134aa03244
#
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License, Version 1.0 only
# (the "License"). You may not use this file except in compliance
# with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# See the License for the specific language governing permissions
# and limitations under the License.
#
# When distributing Covered Code, include this CDDL HEADER in each
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
# If applicable, add the following below this CDDL HEADER, with the
# fields enclosed by brackets "[]" replaced with your own identifying
# information: Portions Copyright [yyyy] [name of copyright owner]
#
# CDDL HEADER END
#
#
# Copyright 2005 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
# ident "%Z%%M% %I% %E% SMI"
#
#
# objects are listed by source directory
# common utility code used in more than one directory
$(PROTOCOL_DIR)/nis.x \
$(PROTOCOL_DIR)/nis.h \
$(PROTOCOL_DIR)/nis_object.x \
$(PROTOCOL_DIR)/nis_cache.x \
#
# Make sure they get cleaned when necessary
#
CLEANFILES += $(DERIVED_FILES)
# include library definitions
$(PROTOCOL_DIR):
$(INS.dir)
$(PROTOCOL_DIR)/%.h: $(PROTOCOL_SRCDIR)/%.h
$(INS.file)
$(RM) $@
$(RM) $@
$(RM) nis_callback.h
$(RM) $@
$(RM) nis_cache.h
$(PROTOCOL_DIR)/%.x: $(PROTOCOL_SRCDIR)/%.x
$(INS.file)
$(PROTOCOL_DIR)/%.x: $(PROTOCOL_UTS_SRCDIR)/%.x
$(INS.file)
#
# Rules for building the derived files
#
# Derived header files
#
$(SED) -e 's/_3_svc/_svc/' |\
$(SED) -e 's/_3/_clnt/' > $@
$(RM) nis_clnt-gen.h
$(SED) -e 's/_3_svc/_svc/' |\
$(SED) -e 's/_3/_clnt/' > $@
#
# Derived source files
#
< nis_clnt-tmp.c |\
$(SED) -e 's/_3/_clnt/' > $@
$(RM) nis_clnt-tmp.c
< nis_xdr-tmp.c > $@
$(RM) nis_xdr-tmp.c
$(SED) -e 's!\"$(PROTOCOL_DIR)/nis_callback.h\"!\<rpcsvc/nis_callback.h\>!' > $@
$(SED) -e 's!\"$(PROTOCOL_DIR)/nis_cache.h\"!"nis_cache.h"!' > $@
$(SED) -e 's!\"$(PROTOCOL_DIR)/nis_cache.h\"!"nis_cache.h"!' > $@
$(SED) -e 's!\"$(PROTOCOL_DIR)/nis_cache.h\"!"nis_cache.h"!' > $@
$(SED) -e 's!"$(PROTOCOL_DIR)/key_prot.h"!<rpc/key_prot.h>!' > $@
# include library targets
# EXPORT DELETE START
# CRYPT DELETE START
# Special target to clean up the source tree for export distribution
# Warning: This target changes the source tree
$(SED) -e "/EXPORT DELETE START/,/EXPORT DELETE END/d" \
$(SED) -e "/EXPORT DELETE START/,/EXPORT DELETE END/d" \
$(SED) -e "/EXPORT DELETE START/,/EXPORT DELETE END/d" \
$(SED) -e "/^# EXPORT DELETE START/,/^# EXPORT DELETE END/d" \
$(SED) -e "/^# CRYPT DELETE START/,/^# CRYPT DELETE END/d" \
< Makefile \
| $(SED) -e "/EXPORT DELETE/d" \
> Makefile+
# CRYPT DELETE END
# EXPORT DELETE END
$(RM) $@
$(RM) messages.po
$(RM) messages.po
$(RM) messages.po
$(RM) messages.po
$(MSGDOMAIN):
$(INS.dir)
FRC: