1# 2# CDDL HEADER START 3# 4# The contents of this file are subject to the terms of the 5# Common Development and Distribution License (the "License"). 6# You may not use this file except in compliance with the License. 7# 8# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9# or http://www.opensolaris.org/os/licensing. 10# See the License for the specific language governing permissions 11# and limitations under the License. 12# 13# When distributing Covered Code, include this CDDL HEADER in each 14# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15# If applicable, add the following below this CDDL HEADER, with the 16# fields enclosed by brackets "[]" replaced with your own identifying 17# information: Portions Copyright [yyyy] [name of copyright owner] 18# 19# CDDL HEADER END 20# 21 22# 23# Copyright 2008 Sun Microsystems, Inc. All rights reserved. 24# Use is subject to license terms. 25# 26# lib/gss_mechs/mech_dh/backend/Makefile 27# 28PROTOCOL_DIR = mech 29SUBDIRS = $(MACH) $(BUILD64) $(MACH64) 30 31PROTO_FILE = dhmech_prot.x 32DERIVED_FILES = mech/dhmech_prot.h mech/xdr_token.c 33CLEANFILES += $(DERIVED_FILES) 34 35# include library definitions 36include ../../../Makefile.lib 37 38TEXT_DOMAIN = SUNW_OST_NETRPC 39POFILES = generic.po 40POFILE = mech_dh.po 41 42SED= sed 43GREP= grep 44 45all := TARGET= all 46clean := TARGET= clean 47clobber := TARGET= clobber 48delete := TARGET= delete 49install := TARGET= install 50catalog := TARGET= catalog 51package := TARGET= package 52_msg := TARGET= _msg 53 54.KEEP_STATE: 55all: $(DERIVED_FILES) .WAIT $(SUBDIRS) 56 57install: $(DERIVED_FILES) .WAIT $(SUBDIRS) 58 59clean clobber delete catalog package: $(SUBDIRS) 60 61# 62# Rules for building the derived files 63# 64mech/xdr_token.c: $(PROTOCOL_DIR)/dhmech_prot.x 65 $(RPCGEN) -c $(PROTOCOL_DIR)/dhmech_prot.x |\ 66 $(SED) -e 's!$(PROTOCOL_DIR)/dhmech_prot.h!dhmech_prot.h!' > $@ 67 68mech/dhmech_prot.h: mech/dhmech_prot.x 69 $(RPCGEN) -h $(PROTOCOL_DIR)/dhmech_prot.x > $@ 70 71# include library targets 72include ../../../Makefile.targ 73 74_msg: $(MSGDOMAIN) $(POFILE) 75 $(RM) $(MSGDOMAIN)/$(POFILE) 76 $(CP) $(POFILE) $(MSGDOMAIN) 77 78$(POFILE): $(DERIVED_FILES) .WAIT $(POFILES) 79 $(RM) $@ 80 $(CAT) $(POFILES) > $@ 81 82generic.po: 83 $(RM) messages.po 84 $(XGETTEXT) $(XGETFLAGS) `$(GREP) -l gettext mech/*.[ch]` 85 $(SED) "/^domain/d" messages.po > $@ 86 $(RM) messages.po 87 88$(MSGDOMAIN): 89 $(INS.dir) 90 91$(MACH) $(MACH64): FRC 92 @cd $@; pwd; $(MAKE) $(TARGET) 93 94FRC: 95