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# Copyright 2010 Sun Microsystems, Inc.  All rights reserved.
23# Use is subject to license terms.
24#
25# cmd/loadkeys/type_4/Makefile
26
27KEYTABLES = \
28	us belgium_france germany swiss_german swiss_french uk \
29	canada denmark italy netherlands norway portugal spain_latin_america \
30	sweden_finland japan korea traditional_chinese us101a_pc \
31	reset germany_5 norway_5 sweden_5 uk_5 italy_5 \
32	portugal_5 swiss_french_5 us_5 denmark_5 netherlands_5 spain_5 \
33	swiss_german_5 france_5 japan_5 korea_5 traditional_chinese_5 canadian_french_5 \
34	hungary_5 poland_5 czech_5 russia_5 canadian_french_5_tbits5 \
35	germany_hobo norway_hobo sweden_hobo uk_hobo italy_hobo \
36	portugal_hobo swiss_french_hobo us_hobo denmark_hobo netherlands_hobo \
37	spain_hobo swiss_german_hobo france_hobo japan_hobo korea_hobo \
38	traditional_chinese_hobo canadian_french_hobo
39
40include ../../Makefile.cmd
41
42ROOTKEYDIR= $(ROOTSHLIB)/keytables/type_4
43ROOTKEYTABLES= $(KEYTABLES:%=$(ROOTKEYDIR)/%)
44
45# there is an install target for each ROOT layout link
46#
47LAYOUTS= \
48	layout_00 layout_01 layout_02 layout_03 layout_04 layout_05 \
49	layout_06 layout_07 layout_08 layout_09 layout_0a layout_0b \
50	layout_0c layout_0d layout_0e layout_10 layout_11 layout_13 \
51	layout_20 layout_21 layout_22 layout_23 layout_24 layout_25 \
52	layout_26 layout_27 layout_28 layout_29 layout_2a layout_2b \
53	layout_2c layout_2d layout_2e layout_2f layout_30 layout_31 \
54	layout_32 layout_33 layout_34 layout_35 layout_36 layout_3f \
55	layout_50 layout_51 layout_52 layout_53 layout_54 \
56	layout_55 layout_56 layout_57 layout_58 layout_59 layout_5a \
57	layout_5b layout_5c layout_5d layout_5e \
58	layout_5f layout_60 layout_61
59
60ROOTLINKS= $(LAYOUTS:%=$(ROOTKEYDIR)/%)
61
62$(ROOTKEYTABLES) := FILEMODE = 444
63
64# install rule
65$(ROOTKEYDIR)/%: %
66	$(INS.file)
67
68COMPATKEYDIR= $(ROOTSHLIB)/keytables
69
70COMPATLINKS= $(LAYOUTS:%=$(COMPATKEYDIR)/%) $(KEYTABLES:%=$(COMPATKEYDIR)/%)
71
72$(COMPATKEYDIR)/%: $(ROOTKEYDIR)/%
73	$(RM) $@; ln $< $@
74
75.KEEP_STATE:
76
77all:  $(KEYTABLES)
78
79install: all $(COMPATKEYDIR) $(ROOTKEYDIR) $(ROOTKEYTABLES) $(ROOTLINKS) $(COMPATLINKS)
80
81clean:
82
83$(COMPATKEYDIR):
84	$(INS.dir)
85
86$(ROOTKEYDIR): $(COMPATKEYDIR)
87	$(INS.dir)
88
89# install targets for ROOT layout links
90#
91$(ROOTKEYDIR)/layout_00: $(ROOTKEYDIR)/us
92	$(RM) $@; $(LN) $(ROOTKEYDIR)/us $@
93
94$(ROOTKEYDIR)/layout_01: $(ROOTKEYDIR)/us
95	$(RM) $@; $(LN) $(ROOTKEYDIR)/us $@
96
97$(ROOTKEYDIR)/layout_02: $(ROOTKEYDIR)/belgium_france
98	$(RM) $@; $(LN) $(ROOTKEYDIR)/belgium_france $@
99
100$(ROOTKEYDIR)/layout_03: $(ROOTKEYDIR)/canada
101	$(RM) $@; $(LN) $(ROOTKEYDIR)/canada $@
102
103$(ROOTKEYDIR)/layout_04: $(ROOTKEYDIR)/denmark
104	$(RM) $@; $(LN) $(ROOTKEYDIR)/denmark $@
105
106$(ROOTKEYDIR)/layout_05: $(ROOTKEYDIR)/germany
107	$(RM) $@; $(LN) $(ROOTKEYDIR)/germany $@
108
109$(ROOTKEYDIR)/layout_06: $(ROOTKEYDIR)/italy
110	$(RM) $@; $(LN) $(ROOTKEYDIR)/italy $@
111
112$(ROOTKEYDIR)/layout_07: $(ROOTKEYDIR)/netherlands
113	$(RM) $@; $(LN) $(ROOTKEYDIR)/netherlands $@
114
115$(ROOTKEYDIR)/layout_08: $(ROOTKEYDIR)/norway
116	$(RM) $@; $(LN) $(ROOTKEYDIR)/norway $@
117
118$(ROOTKEYDIR)/layout_09: $(ROOTKEYDIR)/portugal
119	$(RM) $@; $(LN) $(ROOTKEYDIR)/portugal $@
120
121$(ROOTKEYDIR)/layout_0a: $(ROOTKEYDIR)/spain_latin_america
122	$(RM) $@; $(LN) $(ROOTKEYDIR)/spain_latin_america $@
123
124$(ROOTKEYDIR)/layout_0b: $(ROOTKEYDIR)/sweden_finland
125	$(RM) $@; $(LN) $(ROOTKEYDIR)/sweden_finland $@
126
127$(ROOTKEYDIR)/layout_0c: $(ROOTKEYDIR)/swiss_french
128	$(RM) $@; $(LN) $(ROOTKEYDIR)/swiss_french $@
129
130$(ROOTKEYDIR)/layout_0d: $(ROOTKEYDIR)/swiss_german
131	$(RM) $@; $(LN) $(ROOTKEYDIR)/swiss_german $@
132
133$(ROOTKEYDIR)/layout_0e: $(ROOTKEYDIR)/uk
134	$(RM) $@; $(LN) $(ROOTKEYDIR)/uk $@
135
136$(ROOTKEYDIR)/layout_10: $(ROOTKEYDIR)/korea
137	$(RM) $@; $(LN) $(ROOTKEYDIR)/korea $@
138
139$(ROOTKEYDIR)/layout_11: $(ROOTKEYDIR)/traditional_chinese
140	$(RM) $@; $(LN) $(ROOTKEYDIR)/traditional_chinese $@
141
142$(ROOTKEYDIR)/layout_13: $(ROOTKEYDIR)/us101a_pc
143	$(RM) $@; $(LN) $(ROOTKEYDIR)/us101a_pc $@
144
145$(ROOTKEYDIR)/layout_20: $(ROOTKEYDIR)/japan
146	$(RM) $@; $(LN) $(ROOTKEYDIR)/japan $@
147
148$(ROOTKEYDIR)/layout_21: $(ROOTKEYDIR)/us_5
149	$(RM) $@; $(LN) $(ROOTKEYDIR)/us_5 $@
150
151$(ROOTKEYDIR)/layout_22: $(ROOTKEYDIR)/us_5
152	$(RM) $@; $(LN) $(ROOTKEYDIR)/us_5 $@
153
154$(ROOTKEYDIR)/layout_23: $(ROOTKEYDIR)/france_5
155	$(RM) $@; $(LN) $(ROOTKEYDIR)/france_5 $@
156
157$(ROOTKEYDIR)/layout_24: $(ROOTKEYDIR)/denmark_5
158	$(RM) $@; $(LN) $(ROOTKEYDIR)/denmark_5 $@
159
160$(ROOTKEYDIR)/layout_25: $(ROOTKEYDIR)/germany_5
161	$(RM) $@; $(LN) $(ROOTKEYDIR)/germany_5 $@
162
163$(ROOTKEYDIR)/layout_26: $(ROOTKEYDIR)/italy_5
164	$(RM) $@; $(LN) $(ROOTKEYDIR)/italy_5 $@
165
166$(ROOTKEYDIR)/layout_27: $(ROOTKEYDIR)/netherlands_5
167	$(RM) $@; $(LN) $(ROOTKEYDIR)/netherlands_5 $@
168
169$(ROOTKEYDIR)/layout_28: $(ROOTKEYDIR)/norway_5
170	$(RM) $@; $(LN) $(ROOTKEYDIR)/norway_5 $@
171
172$(ROOTKEYDIR)/layout_29: $(ROOTKEYDIR)/portugal_5
173	$(RM) $@; $(LN) $(ROOTKEYDIR)/portugal_5 $@
174
175$(ROOTKEYDIR)/layout_2a: $(ROOTKEYDIR)/spain_5
176	$(RM) $@; $(LN) $(ROOTKEYDIR)/spain_5 $@
177
178$(ROOTKEYDIR)/layout_2b: $(ROOTKEYDIR)/sweden_5
179	$(RM) $@; $(LN) $(ROOTKEYDIR)/sweden_5 $@
180
181$(ROOTKEYDIR)/layout_2c: $(ROOTKEYDIR)/swiss_french_5
182	$(RM) $@; $(LN) $(ROOTKEYDIR)/swiss_french_5 $@
183
184$(ROOTKEYDIR)/layout_2d: $(ROOTKEYDIR)/swiss_german_5
185	$(RM) $@; $(LN) $(ROOTKEYDIR)/swiss_german_5 $@
186
187$(ROOTKEYDIR)/layout_2e: $(ROOTKEYDIR)/uk_5
188	$(RM) $@; $(LN) $(ROOTKEYDIR)/uk_5 $@
189
190$(ROOTKEYDIR)/layout_2f: $(ROOTKEYDIR)/korea_5
191	$(RM) $@; $(LN) $(ROOTKEYDIR)/korea_5 $@
192
193$(ROOTKEYDIR)/layout_30: $(ROOTKEYDIR)/traditional_chinese_5
194	$(RM) $@; $(LN) $(ROOTKEYDIR)/traditional_chinese_5 $@
195
196$(ROOTKEYDIR)/layout_31: $(ROOTKEYDIR)/japan_5
197	$(RM) $@; $(LN) $(ROOTKEYDIR)/japan_5 $@
198
199$(ROOTKEYDIR)/layout_32: $(ROOTKEYDIR)/canadian_french_5
200	$(RM) $@; $(LN) $(ROOTKEYDIR)/canadian_french_5 $@
201
202$(ROOTKEYDIR)/layout_33: $(ROOTKEYDIR)/hungary_5
203	$(RM) $@; $(LN) $(ROOTKEYDIR)/hungary_5 $@
204
205$(ROOTKEYDIR)/layout_34: $(ROOTKEYDIR)/poland_5
206	$(RM) $@; $(LN) $(ROOTKEYDIR)/poland_5 $@
207
208$(ROOTKEYDIR)/layout_35: $(ROOTKEYDIR)/czech_5
209	$(RM) $@; $(LN) $(ROOTKEYDIR)/czech_5 $@
210
211$(ROOTKEYDIR)/layout_36: $(ROOTKEYDIR)/russia_5
212	$(RM) $@; $(LN) $(ROOTKEYDIR)/russia_5 $@
213
214$(ROOTKEYDIR)/layout_3f: $(ROOTKEYDIR)/canadian_french_5_tbits5
215	$(RM) $@; $(LN) $(ROOTKEYDIR)/canadian_french_5_tbits5 $@
216
217$(ROOTKEYDIR)/layout_50: $(ROOTKEYDIR)/us_hobo
218	$(RM) $@; $(LN) $(ROOTKEYDIR)/us_hobo $@
219
220$(ROOTKEYDIR)/layout_51: $(ROOTKEYDIR)/us_hobo
221	$(RM) $@; $(LN) $(ROOTKEYDIR)/us_hobo $@
222
223$(ROOTKEYDIR)/layout_52: $(ROOTKEYDIR)/france_hobo
224	$(RM) $@; $(LN) $(ROOTKEYDIR)/france_hobo $@
225
226$(ROOTKEYDIR)/layout_53: $(ROOTKEYDIR)/denmark_hobo
227	$(RM) $@; $(LN) $(ROOTKEYDIR)/denmark_hobo $@
228
229$(ROOTKEYDIR)/layout_54: $(ROOTKEYDIR)/germany_hobo
230	$(RM) $@; $(LN) $(ROOTKEYDIR)/germany_hobo $@
231
232$(ROOTKEYDIR)/layout_55: $(ROOTKEYDIR)/italy_hobo
233	$(RM) $@; $(LN) $(ROOTKEYDIR)/italy_hobo $@
234
235$(ROOTKEYDIR)/layout_56: $(ROOTKEYDIR)/netherlands_hobo
236	$(RM) $@; $(LN) $(ROOTKEYDIR)/netherlands_hobo $@
237
238$(ROOTKEYDIR)/layout_57: $(ROOTKEYDIR)/norway_hobo
239	$(RM) $@; $(LN) $(ROOTKEYDIR)/norway_hobo $@
240
241$(ROOTKEYDIR)/layout_58: $(ROOTKEYDIR)/portugal_hobo
242	$(RM) $@; $(LN) $(ROOTKEYDIR)/portugal_hobo $@
243
244$(ROOTKEYDIR)/layout_59: $(ROOTKEYDIR)/spain_hobo
245	$(RM) $@; $(LN) $(ROOTKEYDIR)/spain_hobo $@
246
247$(ROOTKEYDIR)/layout_5a: $(ROOTKEYDIR)/sweden_hobo
248	$(RM) $@; $(LN) $(ROOTKEYDIR)/sweden_hobo $@
249
250$(ROOTKEYDIR)/layout_5b: $(ROOTKEYDIR)/swiss_french_hobo
251	$(RM) $@; $(LN) $(ROOTKEYDIR)/swiss_french_hobo $@
252
253$(ROOTKEYDIR)/layout_5c: $(ROOTKEYDIR)/swiss_german_hobo
254	$(RM) $@; $(LN) $(ROOTKEYDIR)/swiss_german_hobo $@
255
256$(ROOTKEYDIR)/layout_5d: $(ROOTKEYDIR)/uk_hobo
257	$(RM) $@; $(LN) $(ROOTKEYDIR)/uk_hobo $@
258
259$(ROOTKEYDIR)/layout_5e: $(ROOTKEYDIR)/korea_hobo
260	$(RM) $@; $(LN) $(ROOTKEYDIR)/korea_hobo $@
261
262$(ROOTKEYDIR)/layout_5f: $(ROOTKEYDIR)/traditional_chinese_hobo
263	$(RM) $@; $(LN) $(ROOTKEYDIR)/traditional_chinese_hobo $@
264
265$(ROOTKEYDIR)/layout_60: $(ROOTKEYDIR)/japan_hobo
266	$(RM) $@; $(LN) $(ROOTKEYDIR)/japan_hobo $@
267
268$(ROOTKEYDIR)/layout_61: $(ROOTKEYDIR)/canadian_french_hobo
269	$(RM) $@; $(LN) $(ROOTKEYDIR)/canadian_french_hobo $@
270
271include ../../Makefile.targ
272