116d86563SAlexander Pyhalov#
216d86563SAlexander Pyhalov# CDDL HEADER START
316d86563SAlexander Pyhalov#
416d86563SAlexander Pyhalov# The contents of this file are subject to the terms of the
516d86563SAlexander Pyhalov# Common Development and Distribution License (the "License").
616d86563SAlexander Pyhalov# You may not use this file except in compliance with the License.
716d86563SAlexander Pyhalov#
816d86563SAlexander Pyhalov# You can obtain a copy of the license at src/OPENSOLARIS.LICENSE
916d86563SAlexander Pyhalov# or http://www.opensolaris.org/os/licensing.
1016d86563SAlexander Pyhalov# See the License for the specific language governing permissions
1116d86563SAlexander Pyhalov# and limitations under the License.
1216d86563SAlexander Pyhalov#
1316d86563SAlexander Pyhalov# When distributing Covered Code, include this CDDL HEADER in each
1416d86563SAlexander Pyhalov# file and include the License file at src/OPENSOLARIS.LICENSE.
1516d86563SAlexander Pyhalov# If applicable, add the following below this CDDL HEADER, with the
1616d86563SAlexander Pyhalov# fields enclosed by brackets "[]" replaced with your own identifying
1716d86563SAlexander Pyhalov# information: Portions Copyright [yyyy] [name of copyright owner]
1816d86563SAlexander Pyhalov#
1916d86563SAlexander Pyhalov# CDDL HEADER END
2016d86563SAlexander Pyhalov#
2116d86563SAlexander Pyhalov#
2216d86563SAlexander Pyhalov# Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
2316d86563SAlexander Pyhalov# Use is subject to license terms.
2416d86563SAlexander Pyhalov#
2516d86563SAlexander Pyhalov
2616d86563SAlexander Pyhalovinclude $(SRC)/Makefile.master
2716d86563SAlexander Pyhalovinclude $(SRC)/lib/iconv_modules/Makefile.iconv
2816d86563SAlexander Pyhalov
29*d17be682SRichard LoweCFLAGS =  $(C_BIGPICFLAGS) $(GSHARED) $(COPTFLAG) -I. -D_REENTRANT
3016d86563SAlexander Pyhalov
3116d86563SAlexander PyhalovSRCS = 646%8859.c 646da%8859.c 646de%8859.c 646en%8859.c 646es%8859.c 646fr%8859.c 646it%8859.c 646sv%8859.c \
3216d86563SAlexander Pyhalov8859%646.c 8859%646da.c 8859%646de.c 8859%646en.c 8859%646es.c 8859%646fr.c 8859%646it.c 8859%646sv.c 8859-1%IBM-037.c \
3316d86563SAlexander Pyhalov8859-1%IBM-500.c 8859-1%IBM-850.c IBM-037%8859-1.c IBM-500%8859-1.c IBM-850%8859-1.c alt%iso.c alt%iso5.c alt%koi.c \
3416d86563SAlexander Pyhalovalt%koi8.c alt%mac.c alt%win.c alt%win5.c dhn%dos2.c dhn%ib2.c dhn%is2.c dhn%iso2.c dhn%maz.c dhn%wi2.c dhn%win2.c \
3516d86563SAlexander Pyhalovdos2%dhn.c dos2%iso2.c dos2%maz.c dos2%win2.c ib2%dhn.c ib2%is2.c ib2%maz.c ib2%wi2.c is2%dhn.c is2%ib2.c is2%maz.c \
3616d86563SAlexander Pyhalovis2%wi2.c iso%alt.c iso%koi.c iso%mac.c iso%win.c iso2%dhn.c iso2%dos2.c iso2%maz.c iso2%win2.c iso5%alt.c iso5%koi8.c \
3716d86563SAlexander Pyhaloviso5%mac.c iso5%win5.c koi%alt.c koi%iso.c koi%mac.c koi%win.c koi8%alt.c koi8%iso5.c koi8%mac.c koi8%win5.c mac%alt.c \
3816d86563SAlexander Pyhalovmac%iso.c mac%iso5.c mac%koi.c mac%koi8.c mac%win.c mac%win5.c maz%dhn.c maz%dos2.c maz%ib2.c maz%is2.c maz%iso2.c \
3916d86563SAlexander Pyhalovmaz%wi2.c maz%win2.c orig%646de%8859.c table.8859-1.IBM-500.c table.IBM-500.8859-1.c table.alt.iso.c table.alt.koi.c \
4016d86563SAlexander Pyhalovtable.alt.mac.c table.alt.win.c table.dhn.ib2.c table.dhn.is2.c table.dhn.maz.c table.dhn.wi2.c table.ib2.dhn.c table.ib2.is2.c \
4116d86563SAlexander Pyhalovtable.ib2.maz.c table.ib2.wi2.c table.is2.dhn.c table.is2.ib2.c table.is2.maz.c table.is2.wi2.c table.iso.alt.c table.iso.koi.c \
4216d86563SAlexander Pyhalovtable.iso.mac.c table.iso.win.c table.koi.alt.c table.koi.iso.c table.koi.mac.c table.koi.win.c table.mac.alt.c table.mac.iso.c \
4316d86563SAlexander Pyhalovtable.mac.koi.c table.mac.win.c table.maz.dhn.c table.maz.ib2.c table.maz.is2.c table.maz.wi2.c table.wi2.dhn.c table.wi2.ib2.c \
4416d86563SAlexander Pyhalovtable.wi2.is2.c table.wi2.maz.c table.win.alt.c table.win.iso.c table.win.koi.c table.win.mac.c wi2%dhn.c wi2%ib2.c wi2%is2.c \
4516d86563SAlexander Pyhalovwi2%maz.c win%alt.c win%iso.c win%koi.c win%mac.c win2%dhn.c win2%dos2.c win2%iso2.c win2%maz.c win5%alt.c win5%iso5.c win5%koi8.c \
4616d86563SAlexander Pyhalovwin5%mac.c
4716d86563SAlexander Pyhalov
4816d86563SAlexander PyhalovBINTABLES = 8859-16%8859-2.bt 8859-16%ibm850.bt 8859-16%ibm870.bt 8859-2%8859-16.bt ibm850%8859-16.bt ibm870%8859-16.bt
4916d86563SAlexander Pyhalov
5016d86563SAlexander PyhalovBINTABLES_DIR = $(ROOT)/usr/lib/iconv/geniconvtbl/binarytables
5116d86563SAlexander Pyhalov
5216d86563SAlexander PyhalovROOT_BINTABLES = $(BINTABLES:%=$(BINTABLES_DIR)/%)
5316d86563SAlexander Pyhalov
5416d86563SAlexander Pyhalovall: $(PROGS)
5516d86563SAlexander Pyhalov
5616d86563SAlexander Pyhalovinstall: $(BINTABLES) $(ICONV_DIR) all $(ICONV_LIBS)
5716d86563SAlexander Pyhalov
5816d86563SAlexander Pyhalov$(BINTABLES_DIR):
5916d86563SAlexander Pyhalov	$(INS.dir)
6016d86563SAlexander Pyhalov
6116d86563SAlexander Pyhalov$(ROOT_BINTABLES): $(BINTABLES)
6216d86563SAlexander Pyhalov	$(INS.file)
6316d86563SAlexander Pyhalov
6416d86563SAlexander PyhalovFRC:
65