Makefile revision 694c35faa87b858ecdadfe4fc592615f4eefbb07
18aeb66595456f6f996a857aa636df9107d9492aJaco Jooste#
f0b8f6dd844f8752946b865bdd44175863b15812Peter Major# CDDL HEADER START
f0b8f6dd844f8752946b865bdd44175863b15812Peter Major#
f0b8f6dd844f8752946b865bdd44175863b15812Peter Major# The contents of this file are subject to the terms of the
f0b8f6dd844f8752946b865bdd44175863b15812Peter Major# Common Development and Distribution License (the "License").
f0b8f6dd844f8752946b865bdd44175863b15812Peter Major# You may not use this file except in compliance with the License.
f0b8f6dd844f8752946b865bdd44175863b15812Peter Major#
f0b8f6dd844f8752946b865bdd44175863b15812Peter Major# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
f0b8f6dd844f8752946b865bdd44175863b15812Peter Major# or http://www.opensolaris.org/os/licensing.
f0b8f6dd844f8752946b865bdd44175863b15812Peter Major# See the License for the specific language governing permissions
f0b8f6dd844f8752946b865bdd44175863b15812Peter Major# and limitations under the License.
f0b8f6dd844f8752946b865bdd44175863b15812Peter Major#
f0b8f6dd844f8752946b865bdd44175863b15812Peter Major# When distributing Covered Code, include this CDDL HEADER in each
f0b8f6dd844f8752946b865bdd44175863b15812Peter Major# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
f0b8f6dd844f8752946b865bdd44175863b15812Peter Major# If applicable, add the following below this CDDL HEADER, with the
f0b8f6dd844f8752946b865bdd44175863b15812Peter Major# fields enclosed by brackets "[]" replaced with your own identifying
18aeb66595456f6f996a857aa636df9107d9492aJaco Jooste# information: Portions Copyright [yyyy] [name of copyright owner]
18aeb66595456f6f996a857aa636df9107d9492aJaco Jooste#
18aeb66595456f6f996a857aa636df9107d9492aJaco Jooste# CDDL HEADER END
18aeb66595456f6f996a857aa636df9107d9492aJaco Jooste#
18aeb66595456f6f996a857aa636df9107d9492aJaco Jooste
18aeb66595456f6f996a857aa636df9107d9492aJaco Jooste#
18aeb66595456f6f996a857aa636df9107d9492aJaco Jooste# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
18aeb66595456f6f996a857aa636df9107d9492aJaco Jooste# Use is subject to license terms.
18aeb66595456f6f996a857aa636df9107d9492aJaco Jooste#
18aeb66595456f6f996a857aa636df9107d9492aJaco Jooste# lib/gss_mechs/mech_dh/backend/Makefile
18aeb66595456f6f996a857aa636df9107d9492aJaco Jooste#
18aeb66595456f6f996a857aa636df9107d9492aJaco JoostePROTOCOL_DIR = mech
18aeb66595456f6f996a857aa636df9107d9492aJaco JoosteSUBDIRS = $(MACH) $(BUILD64) $(MACH64)
18aeb66595456f6f996a857aa636df9107d9492aJaco Jooste
18aeb66595456f6f996a857aa636df9107d9492aJaco JoostePROTO_FILE = dhmech_prot.x
18aeb66595456f6f996a857aa636df9107d9492aJaco JoosteDERIVED_FILES = mech/dhmech_prot.h mech/xdr_token.c
18aeb66595456f6f996a857aa636df9107d9492aJaco JoosteCLEANFILES += $(DERIVED_FILES)
18aeb66595456f6f996a857aa636df9107d9492aJaco Jooste
18aeb66595456f6f996a857aa636df9107d9492aJaco Jooste# include library definitions
18aeb66595456f6f996a857aa636df9107d9492aJaco Joosteinclude ../../../Makefile.lib
18aeb66595456f6f996a857aa636df9107d9492aJaco Jooste
18aeb66595456f6f996a857aa636df9107d9492aJaco JoosteTEXT_DOMAIN = SUNW_OST_NETRPC
18aeb66595456f6f996a857aa636df9107d9492aJaco JoostePOFILES = generic.po
18aeb66595456f6f996a857aa636df9107d9492aJaco JoostePOFILE = mech_dh.po
18aeb66595456f6f996a857aa636df9107d9492aJaco Jooste
18aeb66595456f6f996a857aa636df9107d9492aJaco JoosteSED= sed
18aeb66595456f6f996a857aa636df9107d9492aJaco JoosteGREP= grep
18aeb66595456f6f996a857aa636df9107d9492aJaco Jooste
18aeb66595456f6f996a857aa636df9107d9492aJaco Joosteall := TARGET= all
18aeb66595456f6f996a857aa636df9107d9492aJaco Joosteclean := TARGET= clean
18aeb66595456f6f996a857aa636df9107d9492aJaco Joosteclobber := TARGET= clobber
18aeb66595456f6f996a857aa636df9107d9492aJaco Joostedelete := TARGET= delete
18aeb66595456f6f996a857aa636df9107d9492aJaco Joosteinstall := TARGET= install
18aeb66595456f6f996a857aa636df9107d9492aJaco Joostelint := TARGET= lint
18aeb66595456f6f996a857aa636df9107d9492aJaco Joostecatalog := TARGET= catalog
18aeb66595456f6f996a857aa636df9107d9492aJaco Joostepackage := TARGET= package
18aeb66595456f6f996a857aa636df9107d9492aJaco Jooste_msg := TARGET= _msg
18aeb66595456f6f996a857aa636df9107d9492aJaco Jooste
f0b8f6dd844f8752946b865bdd44175863b15812Peter Major.KEEP_STATE:
all: $(DERIVED_FILES) .WAIT $(SUBDIRS)
install: $(DERIVED_FILES) .WAIT $(SUBDIRS)
clean clobber delete lint catalog package: $(SUBDIRS)
#
# Rules for building the derived files
#
mech/xdr_token.c: $(PROTOCOL_DIR)/dhmech_prot.x
$(RPCGEN) -c $(PROTOCOL_DIR)/dhmech_prot.x |\
$(SED) -e 's!$(PROTOCOL_DIR)/dhmech_prot.h!dhmech_prot.h!' > $@
mech/dhmech_prot.h: mech/dhmech_prot.x
$(RPCGEN) -h $(PROTOCOL_DIR)/dhmech_prot.x > $@
# include library targets
include ../../../Makefile.targ
_msg: $(MSGDOMAIN) $(POFILE)
$(RM) $(MSGDOMAIN)/$(POFILE)
$(CP) $(POFILE) $(MSGDOMAIN)
$(POFILE): $(DERIVED_FILES) .WAIT $(POFILES)
$(RM) $@
$(CAT) $(POFILES) > $@
generic.po:
$(RM) messages.po
$(XGETTEXT) $(XGETFLAGS) `$(GREP) -l gettext mech/*.[ch]`
$(SED) "/^domain/d" messages.po > $@
$(RM) messages.po
$(MSGDOMAIN):
$(INS.dir)
$(MACH) $(MACH64): FRC
@cd $@; pwd; $(MAKE) $(TARGET)
FRC: