xref: /illumos-gate/usr/src/lib/gss_mechs/mech_dh/backend/Makefile (revision bd97c7ce2344fa3252d8785c35895490916bc79b)
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
42all :=          TARGET= all
43clean :=        TARGET= clean
44clobber :=      TARGET= clobber
45delete :=       TARGET= delete
46install :=      TARGET= install
47catalog :=      TARGET= catalog
48package :=      TARGET= package
49_msg :=		TARGET= _msg
50
51.KEEP_STATE:
52all:            $(DERIVED_FILES) .WAIT $(SUBDIRS)
53
54install:        $(DERIVED_FILES) .WAIT $(SUBDIRS)
55
56clean clobber delete catalog package:      $(SUBDIRS)
57
58#
59# Rules for building the derived files
60#
61mech/xdr_token.c: $(PROTOCOL_DIR)/dhmech_prot.x
62	$(RPCGEN) -c $(PROTOCOL_DIR)/dhmech_prot.x |\
63	$(SED) -e 's!$(PROTOCOL_DIR)/dhmech_prot.h!dhmech_prot.h!' > $@
64
65mech/dhmech_prot.h: mech/dhmech_prot.x
66	$(RPCGEN) -h $(PROTOCOL_DIR)/dhmech_prot.x > $@
67
68# include library targets
69include ../../../Makefile.targ
70
71_msg: $(MSGDOMAIN) $(POFILE)
72	$(RM) $(MSGDOMAIN)/$(POFILE)
73	$(CP) $(POFILE) $(MSGDOMAIN)
74
75$(POFILE): $(DERIVED_FILES) .WAIT $(POFILES)
76	$(RM) $@
77	$(CAT) $(POFILES) > $@
78
79generic.po:
80	$(RM) messages.po
81	$(XGETTEXT) $(XGETFLAGS) `$(GREP) -l gettext mech/*.[ch]`
82	$(SED) "/^domain/d" messages.po > $@
83	$(RM) messages.po
84
85$(MSGDOMAIN):
86	$(INS.dir)
87
88$(MACH) $(MACH64):      FRC
89	@cd $@; pwd; $(MAKE) $(TARGET)
90
91FRC:
92