8322 nl: misleading-indentation
[unleashed/tickless.git] / usr / src / lib / gss_mechs / mech_dh / backend / Makefile
blob8640e0d68ccbfc8dec6d1b45a3b1750c31d91389
2 # CDDL HEADER START
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.
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.
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]
19 # CDDL HEADER END
23 # Copyright 2008 Sun Microsystems, Inc. All rights reserved.
24 # Use is subject to license terms.
26 # lib/gss_mechs/mech_dh/backend/Makefile
28 PROTOCOL_DIR = mech
29 SUBDIRS = $(MACH) $(BUILD64) $(MACH64)
31 PROTO_FILE = dhmech_prot.x
32 DERIVED_FILES = mech/dhmech_prot.h mech/xdr_token.c
33 CLEANFILES += $(DERIVED_FILES)
35 # include library definitions
36 include ../../../Makefile.lib
38 TEXT_DOMAIN = SUNW_OST_NETRPC
39 POFILES = generic.po
40 POFILE = mech_dh.po
42 SED= sed
43 GREP= grep
45 all := TARGET= all
46 clean := TARGET= clean
47 clobber := TARGET= clobber
48 delete := TARGET= delete
49 install := TARGET= install
50 lint := TARGET= lint
51 catalog := TARGET= catalog
52 package := TARGET= package
53 _msg := TARGET= _msg
55 .KEEP_STATE:
56 all: $(DERIVED_FILES) .WAIT $(SUBDIRS)
58 install: $(DERIVED_FILES) .WAIT $(SUBDIRS)
60 clean clobber delete lint catalog package: $(SUBDIRS)
63 # Rules for building the derived files
65 mech/xdr_token.c: $(PROTOCOL_DIR)/dhmech_prot.x
66 $(RPCGEN) -c $(PROTOCOL_DIR)/dhmech_prot.x |\
67 $(SED) -e 's!$(PROTOCOL_DIR)/dhmech_prot.h!dhmech_prot.h!' > $@
69 mech/dhmech_prot.h: mech/dhmech_prot.x
70 $(RPCGEN) -h $(PROTOCOL_DIR)/dhmech_prot.x > $@
72 # include library targets
73 include ../../../Makefile.targ
75 _msg: $(MSGDOMAIN) $(POFILE)
76 $(RM) $(MSGDOMAIN)/$(POFILE)
77 $(CP) $(POFILE) $(MSGDOMAIN)
79 $(POFILE): $(DERIVED_FILES) .WAIT $(POFILES)
80 $(RM) $@
81 $(CAT) $(POFILES) > $@
83 generic.po:
84 $(RM) messages.po
85 $(XGETTEXT) $(XGETFLAGS) `$(GREP) -l gettext mech/*.[ch]`
86 $(SED) "/^domain/d" messages.po > $@
87 $(RM) messages.po
89 $(MSGDOMAIN):
90 $(INS.dir)
92 $(MACH) $(MACH64): FRC
93 @cd $@; pwd; $(MAKE) $(TARGET)
95 FRC: