17c478bd9Sstevel@tonic-gate#
27c478bd9Sstevel@tonic-gate# CDDL HEADER START
37c478bd9Sstevel@tonic-gate#
47c478bd9Sstevel@tonic-gate# The contents of this file are subject to the terms of the
5*b92a49eeSja# Common Development and Distribution License (the "License").
6*b92a49eeSja# You may not use this file except in compliance with the License.
77c478bd9Sstevel@tonic-gate#
87c478bd9Sstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
97c478bd9Sstevel@tonic-gate# or http://www.opensolaris.org/os/licensing.
107c478bd9Sstevel@tonic-gate# See the License for the specific language governing permissions
117c478bd9Sstevel@tonic-gate# and limitations under the License.
127c478bd9Sstevel@tonic-gate#
137c478bd9Sstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each
147c478bd9Sstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
157c478bd9Sstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the
167c478bd9Sstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying
177c478bd9Sstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner]
187c478bd9Sstevel@tonic-gate#
197c478bd9Sstevel@tonic-gate# CDDL HEADER END
207c478bd9Sstevel@tonic-gate#
217c478bd9Sstevel@tonic-gate#
22*b92a49eeSja# Copyright 2010 Sun Microsystems, Inc.  All rights reserved.
23*b92a49eeSja# Use is subject to license terms.
247c478bd9Sstevel@tonic-gate#
257c478bd9Sstevel@tonic-gate#
267c478bd9Sstevel@tonic-gate# cmd/loadkeys/type_101/Makefile
277c478bd9Sstevel@tonic-gate
287c478bd9Sstevel@tonic-gateKEYTABLES = \
297c478bd9Sstevel@tonic-gate	canadian_french2 \
307c478bd9Sstevel@tonic-gate	czech \
317c478bd9Sstevel@tonic-gate	denmark \
327c478bd9Sstevel@tonic-gate	france \
337c478bd9Sstevel@tonic-gate	germany \
347c478bd9Sstevel@tonic-gate	greece \
357c478bd9Sstevel@tonic-gate	hungary \
367c478bd9Sstevel@tonic-gate	italy \
377c478bd9Sstevel@tonic-gate	j3100 \
387c478bd9Sstevel@tonic-gate	japan \
397c478bd9Sstevel@tonic-gate	korea \
407c478bd9Sstevel@tonic-gate	latvia \
417c478bd9Sstevel@tonic-gate	lithuania \
427c478bd9Sstevel@tonic-gate	netherlands \
437c478bd9Sstevel@tonic-gate	norway \
447c478bd9Sstevel@tonic-gate	poland \
457c478bd9Sstevel@tonic-gate	portugal \
467c478bd9Sstevel@tonic-gate	reset \
477c478bd9Sstevel@tonic-gate	russia \
487c478bd9Sstevel@tonic-gate	spain \
497c478bd9Sstevel@tonic-gate	sweden \
507c478bd9Sstevel@tonic-gate	swiss_french \
517c478bd9Sstevel@tonic-gate	swiss_german \
52*b92a49eeSja	traditional_chinese \
537c478bd9Sstevel@tonic-gate	turkey \
547c478bd9Sstevel@tonic-gate	uk \
557c478bd9Sstevel@tonic-gate	us
567c478bd9Sstevel@tonic-gate
577c478bd9Sstevel@tonic-gateinclude ../../Makefile.cmd
587c478bd9Sstevel@tonic-gate
597c478bd9Sstevel@tonic-gateROOTKEYTABLESDIR= $(ROOTSHLIB)/keytables
607c478bd9Sstevel@tonic-gateROOTKEYDIR= $(ROOTKEYTABLESDIR)/type_101
617c478bd9Sstevel@tonic-gateROOTKEYTABLES= $(KEYTABLES:%=$(ROOTKEYDIR)/%)
627c478bd9Sstevel@tonic-gate
637c478bd9Sstevel@tonic-gate# there is an install target for each ROOT layout link
647c478bd9Sstevel@tonic-gate#
657c478bd9Sstevel@tonic-gateLAYOUTS= \
667c478bd9Sstevel@tonic-gate	layout_00 \
677c478bd9Sstevel@tonic-gate	layout_01 \
687c478bd9Sstevel@tonic-gate	layout_22 \
697c478bd9Sstevel@tonic-gate	layout_23 \
707c478bd9Sstevel@tonic-gate	layout_24 \
717c478bd9Sstevel@tonic-gate	layout_25 \
727c478bd9Sstevel@tonic-gate	layout_26 \
737c478bd9Sstevel@tonic-gate	layout_27 \
747c478bd9Sstevel@tonic-gate	layout_28 \
757c478bd9Sstevel@tonic-gate	layout_29 \
767c478bd9Sstevel@tonic-gate	layout_2a \
777c478bd9Sstevel@tonic-gate	layout_2b \
787c478bd9Sstevel@tonic-gate	layout_2c \
797c478bd9Sstevel@tonic-gate	layout_2d \
807c478bd9Sstevel@tonic-gate	layout_2e \
817c478bd9Sstevel@tonic-gate	layout_2f \
827c478bd9Sstevel@tonic-gate	layout_30 \
837c478bd9Sstevel@tonic-gate	layout_31 \
847c478bd9Sstevel@tonic-gate	layout_32 \
857c478bd9Sstevel@tonic-gate	layout_33 \
867c478bd9Sstevel@tonic-gate	layout_34 \
877c478bd9Sstevel@tonic-gate	layout_35 \
887c478bd9Sstevel@tonic-gate	layout_36 \
897c478bd9Sstevel@tonic-gate	layout_37 \
907c478bd9Sstevel@tonic-gate	layout_38 \
917c478bd9Sstevel@tonic-gate	layout_39 \
927c478bd9Sstevel@tonic-gate	layout_3b \
937c478bd9Sstevel@tonic-gate	layout_3e9
947c478bd9Sstevel@tonic-gate
957c478bd9Sstevel@tonic-gateROOTLINKS= $(LAYOUTS:%=$(ROOTKEYDIR)/%)
967c478bd9Sstevel@tonic-gate
977c478bd9Sstevel@tonic-gate$(ROOTKEYTABLES) := FILEMODE = 444
987c478bd9Sstevel@tonic-gate
997c478bd9Sstevel@tonic-gate# install rule
1007c478bd9Sstevel@tonic-gate$(ROOTKEYDIR)/%: %
1017c478bd9Sstevel@tonic-gate	$(INS.file)
1027c478bd9Sstevel@tonic-gate
1037c478bd9Sstevel@tonic-gate.KEEP_STATE:
1047c478bd9Sstevel@tonic-gate
1057c478bd9Sstevel@tonic-gateall:  $(KEYTABLES)
1067c478bd9Sstevel@tonic-gate
1077c478bd9Sstevel@tonic-gateinstall: all $(ROOTKEYTABLESDIR) $(ROOTKEYDIR) $(ROOTKEYTABLES) $(ROOTLINKS)
1087c478bd9Sstevel@tonic-gate
1097c478bd9Sstevel@tonic-gateclean:
1107c478bd9Sstevel@tonic-gate
1117c478bd9Sstevel@tonic-gateneaten:
1127c478bd9Sstevel@tonic-gate	for i in $(KEYTABLES); do		\
1137c478bd9Sstevel@tonic-gate		sh ./neaten.sh $$i;		\
1147c478bd9Sstevel@tonic-gate		if cmp -s $$i $$i.neat; then	\
1157c478bd9Sstevel@tonic-gate			echo No change to $$i.;	\
1167c478bd9Sstevel@tonic-gate			rm $$i.neat;		\
1177c478bd9Sstevel@tonic-gate		fi;				\
1187c478bd9Sstevel@tonic-gate	done
1197c478bd9Sstevel@tonic-gate
1207c478bd9Sstevel@tonic-gate$(ROOTKEYTABLESDIR):
1217c478bd9Sstevel@tonic-gate	$(INS.dir)
1227c478bd9Sstevel@tonic-gate
1237c478bd9Sstevel@tonic-gate$(ROOTKEYDIR): $(ROOTKEYTABLESDIR)
1247c478bd9Sstevel@tonic-gate	$(INS.dir)
1257c478bd9Sstevel@tonic-gate
1267c478bd9Sstevel@tonic-gate# install targets for ROOT layout links
1277c478bd9Sstevel@tonic-gate#
1287c478bd9Sstevel@tonic-gate$(ROOTKEYDIR)/layout_00: $(ROOTKEYDIR)/us
1297c478bd9Sstevel@tonic-gate	$(RM) $@; $(LN) $(ROOTKEYDIR)/us $@
1307c478bd9Sstevel@tonic-gate
1317c478bd9Sstevel@tonic-gate$(ROOTKEYDIR)/layout_01:	$(ROOTKEYDIR)/us
1327c478bd9Sstevel@tonic-gate	$(RM) $@; $(LN) $(ROOTKEYDIR)/us $@
1337c478bd9Sstevel@tonic-gate
1347c478bd9Sstevel@tonic-gate$(ROOTKEYDIR)/layout_22:	$(ROOTKEYDIR)/j3100
1357c478bd9Sstevel@tonic-gate	$(RM) $@; $(LN) $(ROOTKEYDIR)/j3100 $@
1367c478bd9Sstevel@tonic-gate
1377c478bd9Sstevel@tonic-gate$(ROOTKEYDIR)/layout_23:	$(ROOTKEYDIR)/france
1387c478bd9Sstevel@tonic-gate	$(RM) $@; $(LN) $(ROOTKEYDIR)/france $@
1397c478bd9Sstevel@tonic-gate
1407c478bd9Sstevel@tonic-gate$(ROOTKEYDIR)/layout_24:	$(ROOTKEYDIR)/denmark
1417c478bd9Sstevel@tonic-gate	$(RM) $@; $(LN) $(ROOTKEYDIR)/denmark $@
1427c478bd9Sstevel@tonic-gate
1437c478bd9Sstevel@tonic-gate$(ROOTKEYDIR)/layout_25:	$(ROOTKEYDIR)/germany
1447c478bd9Sstevel@tonic-gate	$(RM) $@; $(LN) $(ROOTKEYDIR)/germany $@
1457c478bd9Sstevel@tonic-gate
1467c478bd9Sstevel@tonic-gate$(ROOTKEYDIR)/layout_26:	$(ROOTKEYDIR)/italy
1477c478bd9Sstevel@tonic-gate	$(RM) $@; $(LN) $(ROOTKEYDIR)/italy $@
1487c478bd9Sstevel@tonic-gate
1497c478bd9Sstevel@tonic-gate$(ROOTKEYDIR)/layout_27:	$(ROOTKEYDIR)/netherlands
1507c478bd9Sstevel@tonic-gate	$(RM) $@; $(LN) $(ROOTKEYDIR)/netherlands $@
1517c478bd9Sstevel@tonic-gate
1527c478bd9Sstevel@tonic-gate$(ROOTKEYDIR)/layout_28:	$(ROOTKEYDIR)/norway
1537c478bd9Sstevel@tonic-gate	$(RM) $@; $(LN) $(ROOTKEYDIR)/norway $@
1547c478bd9Sstevel@tonic-gate
1557c478bd9Sstevel@tonic-gate$(ROOTKEYDIR)/layout_29:	$(ROOTKEYDIR)/portugal
1567c478bd9Sstevel@tonic-gate	$(RM) $@; $(LN) $(ROOTKEYDIR)/portugal $@
1577c478bd9Sstevel@tonic-gate
1587c478bd9Sstevel@tonic-gate$(ROOTKEYDIR)/layout_2a:	$(ROOTKEYDIR)/spain
1597c478bd9Sstevel@tonic-gate	$(RM) $@; $(LN) $(ROOTKEYDIR)/spain $@
1607c478bd9Sstevel@tonic-gate
1617c478bd9Sstevel@tonic-gate$(ROOTKEYDIR)/layout_2b:	$(ROOTKEYDIR)/sweden
1627c478bd9Sstevel@tonic-gate	$(RM) $@; $(LN) $(ROOTKEYDIR)/sweden $@
1637c478bd9Sstevel@tonic-gate
1647c478bd9Sstevel@tonic-gate$(ROOTKEYDIR)/layout_2c:	$(ROOTKEYDIR)/swiss_french
1657c478bd9Sstevel@tonic-gate	$(RM) $@; $(LN) $(ROOTKEYDIR)/swiss_french $@
1667c478bd9Sstevel@tonic-gate
1677c478bd9Sstevel@tonic-gate$(ROOTKEYDIR)/layout_2d:	$(ROOTKEYDIR)/swiss_german
1687c478bd9Sstevel@tonic-gate	$(RM) $@; $(LN) $(ROOTKEYDIR)/swiss_german $@
1697c478bd9Sstevel@tonic-gate
1707c478bd9Sstevel@tonic-gate$(ROOTKEYDIR)/layout_2e:	$(ROOTKEYDIR)/uk
1717c478bd9Sstevel@tonic-gate	$(RM) $@; $(LN) $(ROOTKEYDIR)/uk $@
1727c478bd9Sstevel@tonic-gate
1737c478bd9Sstevel@tonic-gate$(ROOTKEYDIR)/layout_2f:	$(ROOTKEYDIR)/korea
1747c478bd9Sstevel@tonic-gate	$(RM) $@; $(LN) $(ROOTKEYDIR)/korea $@
1757c478bd9Sstevel@tonic-gate
176*b92a49eeSja$(ROOTKEYDIR)/layout_30:	$(ROOTKEYDIR)/traditional_chinese
177*b92a49eeSja	$(RM) $@; $(LN) $(ROOTKEYDIR)/traditional_chinese $@
1787c478bd9Sstevel@tonic-gate
1797c478bd9Sstevel@tonic-gate$(ROOTKEYDIR)/layout_31:	$(ROOTKEYDIR)/japan
1807c478bd9Sstevel@tonic-gate	$(RM) $@; $(LN) $(ROOTKEYDIR)/japan $@
1817c478bd9Sstevel@tonic-gate
1827c478bd9Sstevel@tonic-gate$(ROOTKEYDIR)/layout_32:	$(ROOTKEYDIR)/canadian_french2
1837c478bd9Sstevel@tonic-gate	$(RM) $@; $(LN) $(ROOTKEYDIR)/canadian_french2 $@
1847c478bd9Sstevel@tonic-gate
1857c478bd9Sstevel@tonic-gate$(ROOTKEYDIR)/layout_33:	$(ROOTKEYDIR)/hungary
1867c478bd9Sstevel@tonic-gate	$(RM) $@; $(LN) $(ROOTKEYDIR)/hungary $@
1877c478bd9Sstevel@tonic-gate
1887c478bd9Sstevel@tonic-gate$(ROOTKEYDIR)/layout_34:	$(ROOTKEYDIR)/poland
1897c478bd9Sstevel@tonic-gate	$(RM) $@; $(LN) $(ROOTKEYDIR)/poland $@
1907c478bd9Sstevel@tonic-gate
1917c478bd9Sstevel@tonic-gate$(ROOTKEYDIR)/layout_35:	$(ROOTKEYDIR)/czech
1927c478bd9Sstevel@tonic-gate	$(RM) $@; $(LN) $(ROOTKEYDIR)/czech $@
1937c478bd9Sstevel@tonic-gate
1947c478bd9Sstevel@tonic-gate$(ROOTKEYDIR)/layout_36:	$(ROOTKEYDIR)/russia
1957c478bd9Sstevel@tonic-gate	$(RM) $@; $(LN) $(ROOTKEYDIR)/russia $@
1967c478bd9Sstevel@tonic-gate
1977c478bd9Sstevel@tonic-gate$(ROOTKEYDIR)/layout_37:	$(ROOTKEYDIR)/latvia
1987c478bd9Sstevel@tonic-gate	$(RM) $@; $(LN) $(ROOTKEYDIR)/latvia $@
1997c478bd9Sstevel@tonic-gate
2007c478bd9Sstevel@tonic-gate$(ROOTKEYDIR)/layout_38:	$(ROOTKEYDIR)/turkey
2017c478bd9Sstevel@tonic-gate	$(RM) $@; $(LN) $(ROOTKEYDIR)/turkey $@
2027c478bd9Sstevel@tonic-gate
2037c478bd9Sstevel@tonic-gate$(ROOTKEYDIR)/layout_39:	$(ROOTKEYDIR)/greece
2047c478bd9Sstevel@tonic-gate	$(RM) $@; $(LN) $(ROOTKEYDIR)/greece $@
2057c478bd9Sstevel@tonic-gate
2067c478bd9Sstevel@tonic-gate$(ROOTKEYDIR)/layout_3b:	$(ROOTKEYDIR)/lithuania
2077c478bd9Sstevel@tonic-gate	$(RM) $@; $(LN) $(ROOTKEYDIR)/lithuania $@
2087c478bd9Sstevel@tonic-gate
2097c478bd9Sstevel@tonic-gate$(ROOTKEYDIR)/layout_3e9:	$(ROOTKEYDIR)/us
2107c478bd9Sstevel@tonic-gate	$(RM) $@; $(LN) $(ROOTKEYDIR)/us $@
2117c478bd9Sstevel@tonic-gate
2127c478bd9Sstevel@tonic-gateinclude ../../Makefile.targ
213