move 32-bit libs to lib/i386 subdirs & 64-bit libs to lib/
[unleashed.git] / usr / src / cmd / geniconvtbl / samples / Makefile
blob3bec3888bbf3a5982414ca584946d9646996a7ba
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
21 # Copyright 2006 Sun Microsystems, Inc. All rights reserved.
22 # Use is subject to license terms.
24 # ident "%Z%%M% %I% %E% SMI"
26 # cmd/geniconvtbl/samples/Makefile
29 INPUTFILES = ISO8859-1_to_UTF-8.src UTF-8_to_ISO8859-1.src\
30 eucJP_to_ISO-2022-JP.src ISO-2022-JP_to_eucJP.src \
31 ISO646_to_ISO8859-1.src ISO8859-1_to_ISO646.src
33 OUTPUTFILES = ISO646%ISO8859-1.bt ISO8859-1%ISO646.bt
34 # ONLY TWO binarytables are deribalables
36 # ISO8859-1%UTF-8.bt UTF-8%ISO8859-1.bt
37 # eucJP%ISO-2022-JP.bt ISO-2022-JP%eucJP.bt \
38 # ISO646%ISO8859-1.bt ISO8859-1%ISO646.bt
39 # OUTPUTFILES = $(INPUTFILES:%.src=%.bt) NEVER USE ( WATCH OUT FILE NAME )
42 GENICONVTBL= ../native/geniconvtbl
45 # include ../../../lib/Makefile.lib
46 include ../../Makefile.cmd
49 ROOTICONVDIRS = $(ROOTLIB64)/iconv
50 ROOTDIRS = $(ROOTICONVDIRS)/geniconvtbl
51 SRCSDIRS = $(ROOTDIRS)/srcs
52 BTSDIRS = $(ROOTDIRS)/binarytables
53 ROOTINPUTFILES = $(INPUTFILES:%=$(SRCSDIRS)/%)
54 ROOTOUTPUTFILES = $(OUTPUTFILES:%=$(BTSDIRS)/%)
56 $(ROOTINPUTFILES) := FILEMODE = 444
57 $(ROOTOUTPUTFILES) := FILEMODE = 444
60 .KEEP_STATE:
62 .PARALLEL: $(OUTPUTFILES)
65 all: $(OUTPUTFILES)
67 install: all $(ROOTOUTPUTFILES) $(ROOTINPUTFILES)
69 clean clobber:
70 $(RM) $(OUTPUTFILES)
73 ISO8859-1%UTF-8.bt: ISO8859-1_to_UTF-8.src
74 $(GENICONVTBL) -o $@ -f ISO8859-1_to_UTF-8.src
76 UTF-8%ISO8859_1.bt: UTF-8_to_ISO8859_1.src
77 $(GENICONVTBL) -o $@ -f UTF-8_to_ISO8859_1.src
79 eucJP%ISO-2022-JP.bt: eucJP_to_ISO-2022-JP.src
80 $(GENICONVTBL) -o $@ -f eucJP_to_ISO-2022-JP.src
82 ISO-2022-JP%eucJP.bt: ISO-2022-JP_to_eucJP.src
83 $(GENICONVTBL) -o $@ -f ISO-2022-JP_to_eucJP.src
85 ISO646%ISO8859-1.bt: ISO646_to_ISO8859-1.src
86 $(GENICONVTBL) -o $@ -f ISO646_to_ISO8859-1.src
88 ISO8859-1%ISO646.bt: ISO8859-1_to_ISO646.src
89 $(GENICONVTBL) -o $@ -f ISO8859-1_to_ISO646.src
92 # install rule
94 $(SRCSDIRS)/%: % $(SRCSDIRS)
95 $(INS.file)
97 $(BTSDIRS)/%: % $(BTSDIRS)
98 $(INS.file)
100 $(SRCSDIRS) $(BTSDIRS): $(ROOTDIRS)
101 $(INS.dir)
103 $(ROOTDIRS): $(ROOTICONVDIRS)
104 $(INS.dir)
106 $(ROOTICONVDIRS):
107 $(INS.dir)
109 $(SRCSDIRS)/%: $(SRCSDIRS) %
110 $(INS.file)
112 $(BTSDIRS)/%: $(BTSDIRS) %
113 $(INS.file)
115 # rule of making BinaryTable
116 # ( must be placed after install rule )
118 # .SUFFIXES: $(SUFFIXES) .src
119 # .SUFFIXES: $(SUFFIXES) .bt
122 # %.bt: %.src
123 # $(GENICONVTBL) -o $@ -f $<
125 # include ../../Makefile.targ