Print this page
first pass
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/lib/gss_mechs/mech_dh/backend/Makefile
+++ new/usr/src/lib/gss_mechs/mech_dh/backend/Makefile
1 1 #
2 2 # CDDL HEADER START
3 3 #
4 4 # The contents of this file are subject to the terms of the
5 5 # Common Development and Distribution License (the "License").
6 6 # You may not use this file except in compliance with the License.
7 7 #
8 8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 9 # or http://www.opensolaris.org/os/licensing.
10 10 # See the License for the specific language governing permissions
11 11 # and limitations under the License.
12 12 #
13 13 # When distributing Covered Code, include this CDDL HEADER in each
14 14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 15 # If applicable, add the following below this CDDL HEADER, with the
16 16 # fields enclosed by brackets "[]" replaced with your own identifying
17 17 # information: Portions Copyright [yyyy] [name of copyright owner]
18 18 #
19 19 # CDDL HEADER END
20 20 #
21 21
22 22 #
23 23 # Copyright 2008 Sun Microsystems, Inc. All rights reserved.
24 24 # Use is subject to license terms.
25 25 #
26 26 # lib/gss_mechs/mech_dh/backend/Makefile
27 27 #
28 28 PROTOCOL_DIR = mech
29 29 SUBDIRS = $(MACH) $(BUILD64) $(MACH64)
30 30
31 31 PROTO_FILE = dhmech_prot.x
32 32 DERIVED_FILES = mech/dhmech_prot.h mech/xdr_token.c
33 33 CLEANFILES += $(DERIVED_FILES)
34 34
35 35 # include library definitions
36 36 include ../../../Makefile.lib
37 37
38 38 TEXT_DOMAIN = SUNW_OST_NETRPC
39 39 POFILES = generic.po
40 40 POFILE = mech_dh.po
41 41
42 42 SED= sed
43 43 GREP= grep
44 44
45 45 all := TARGET= all
46 46 clean := TARGET= clean
47 47 clobber := TARGET= clobber
48 48 delete := TARGET= delete
49 49 install := TARGET= install
50 50 lint := TARGET= lint
51 51 catalog := TARGET= catalog
52 52 package := TARGET= package
53 53 _msg := TARGET= _msg
54 54
55 55 .KEEP_STATE:
56 56 all: $(DERIVED_FILES) .WAIT $(SUBDIRS)
57 57
58 58 install: $(DERIVED_FILES) .WAIT $(SUBDIRS)
59 59
60 60 clean clobber delete lint catalog package: $(SUBDIRS)
61 61
62 62 #
63 63 # Rules for building the derived files
64 64 #
↓ open down ↓ |
64 lines elided |
↑ open up ↑ |
65 65 mech/xdr_token.c: $(PROTOCOL_DIR)/dhmech_prot.x
66 66 $(RPCGEN) -c $(PROTOCOL_DIR)/dhmech_prot.x |\
67 67 $(SED) -e 's!$(PROTOCOL_DIR)/dhmech_prot.h!dhmech_prot.h!' > $@
68 68
69 69 mech/dhmech_prot.h: mech/dhmech_prot.x
70 70 $(RPCGEN) -h $(PROTOCOL_DIR)/dhmech_prot.x > $@
71 71
72 72 # include library targets
73 73 include ../../../Makefile.targ
74 74
75 -# EXPORT DELETE START
76 -# Special target to clean up the source tree for export distribution
77 -# Warning: This target changes the source tree
78 -EXPORT_SRC:
79 - $(RM) Makefile+ Makefile.com+ mech/crypto.c+ mech/dhmech.c+
80 - $(SED) -e "/^# EXPORT DELETE START/,/^# EXPORT DELETE END/d" \
81 - < Makefile > Makefile+
82 - $(MV) Makefile+ Makefile
83 - $(SED) -e "/^# EXPORT DELETE START/,/^# EXPORT DELETE END/d" \
84 - < Makefile.com > Makefile.com+
85 - $(MV) Makefile.com+ Makefile.com
86 - $(SED) -e "/EXPORT DELETE START/,/EXPORT DELETE END/d" \
87 - < mech/crypto.c > mech/crypto.c+
88 - $(MV) mech/crypto.c+ mech/crypto.c
89 - $(SED) -e "/EXPORT DELETE START/,/EXPORT DELETE END/d" \
90 - < mech/dhmech.c > mech/dhmech.c+
91 - $(MV) mech/dhmech.c+ mech/dhmech.c
92 - $(CHMOD) 444 Makefile Makefile.com mech/crypto.c mech/dhmech.c
93 -
94 -# CRYPT DELETE START
95 -CRYPT_SRC:
96 - $(RM) Makefile+ Makefile.com+ mech/dhmech.c+
97 - $(SED) -e "/^# CRYPT DELETE START/,/^# CRYPT DELETE END/d" \
98 - < Makefile \
99 - | $(SED) -e "/EXPORT DELETE/d" \
100 - > Makefile+
101 - $(MV) Makefile+ Makefile
102 - $(SED) -e "/^# CRYPT DELETE START/,/^# CRYPT DELETE END/d" \
103 - < Makefile.com \
104 - | $(SED) -e "/EXPORT DELETE/d" \
105 - > Makefile.com+
106 - $(MV) Makefile.com+ Makefile.com
107 - $(SED) -e "/CRYPT DELETE START/,/CRYPT DELETE END/d" \
108 - < mech/dhmech.c > mech/dhmech.c+
109 - $(MV) mech/dhmech.c+ mech/dhmech.c
110 - $(CHMOD) 444 Makefile Makefile.com mech/dhmech.c
111 -
112 -# CRYPT DELETE END
113 -# EXPORT DELETE END
114 -
115 75 _msg: $(MSGDOMAIN) $(POFILE)
116 76 $(RM) $(MSGDOMAIN)/$(POFILE)
117 77 $(CP) $(POFILE) $(MSGDOMAIN)
118 78
119 79 $(POFILE): $(DERIVED_FILES) .WAIT $(POFILES)
120 80 $(RM) $@
121 81 $(CAT) $(POFILES) > $@
122 82
123 83 generic.po:
124 84 $(RM) messages.po
125 85 $(XGETTEXT) $(XGETFLAGS) `$(GREP) -l gettext mech/*.[ch]`
126 86 $(SED) "/^domain/d" messages.po > $@
127 87 $(RM) messages.po
128 88
129 89 $(MSGDOMAIN):
130 90 $(INS.dir)
131 91
132 92 $(MACH) $(MACH64): FRC
133 93 @cd $@; pwd; $(MAKE) $(TARGET)
134 94
135 95 FRC:
↓ open down ↓ |
11 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX