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 (c) 2010, Oracle and/or its affiliates. All rights reserved. 2316d86563SAlexander Pyhalov# 2416d86563SAlexander Pyhalov 2516d86563SAlexander Pyhalovinclude $(SRC)/Makefile.master 2616d86563SAlexander Pyhalov 2716d86563SAlexander Pyhalov 2816d86563SAlexander Pyhalov# let the .so compilation be driven by present recoding tables 2916d86563SAlexander PyhalovTABLES:sh = cd ../tbls/ && ls *tbl 3016d86563SAlexander Pyhalov 3116d86563SAlexander PyhalovALL_SOS:sh = (cd ../tbls/ && ls *tbl |sed -e s:_:%:g -e 's:\.tbl$:.so:g') 3216d86563SAlexander Pyhalov 3316d86563SAlexander PyhalovLDLIBS = -lc 3416d86563SAlexander Pyhalov 3516d86563SAlexander PyhalovLINK_TARGETS = 646%8859-1.so 3616d86563SAlexander Pyhalov 3716d86563SAlexander Pyhalov.NO_PARALLEL: 3816d86563SAlexander Pyhalov 3916d86563SAlexander Pyhalov.PARALLEL: $(ALL_SOS) 4016d86563SAlexander Pyhalov 4116d86563SAlexander Pyhalovall: $(ALL_SOS) 4216d86563SAlexander Pyhalov 4316d86563SAlexander Pyhalovinclude $(SRC)/lib/iconv_modules/Makefile.iconv 4416d86563SAlexander Pyhalov 4516d86563SAlexander PyhalovLDFLAGS = $(DYNFLAGS) $(LDLIBS) 4616d86563SAlexander Pyhalov 47*d17be682SRichard LoweCFLAGS += -D_REENTRANT 4816d86563SAlexander Pyhalov 49dfe6d73fSRichard LoweCLEANFILES += tbl.h 5016d86563SAlexander Pyhalov 51dfe6d73fSRichard Lowe$(ALL_SOS): ../common/euro.h ../common/euro.c tbl.h 5216d86563SAlexander Pyhalov TABLE=`echo $@ | $(TR) -d "-" | sed -e s:%:_:g | /usr/bin/cut -d. -f1` ; \ 53dfe6d73fSRichard Lowe $(CC) $(CFLAGS) $(CPPFLAGS) -DT_$$TABLE ../common/euro.c -c -o $@.o ; \ 5416d86563SAlexander Pyhalov $(LD) $(LDFLAGS) -o $@ $@.o $(LDLIBS) 5516d86563SAlexander Pyhalov $(POST_PROCESS_SO) 5616d86563SAlexander Pyhalov 57dfe6d73fSRichard Lowetbl.h: ../genincl $(TABLES:%=../tbls/%) 58dfe6d73fSRichard Lowe (cd ..; ./genincl) > $@ 5916d86563SAlexander Pyhalov 6016d86563SAlexander Pyhalov$(CREATE_LINKS): $(ICONV_LINK_TARGETS) 6116d86563SAlexander Pyhalov $(SYMLINK) -f 646%8859-1.so $(ICONV_DIR)/646%8859-15.so 6216d86563SAlexander Pyhalov $(SYMLINK) -f 646%8859-1.so $(ICONV_DIR)/646%8859-2.so 6316d86563SAlexander Pyhalov $(SYMLINK) -f 646%8859-1.so $(ICONV_DIR)/646%8859-4.so 6416d86563SAlexander Pyhalov $(SYMLINK) -f 646%8859-1.so $(ICONV_DIR)/646%8859-5.so 6516d86563SAlexander Pyhalov $(SYMLINK) -f 646%8859-1.so $(ICONV_DIR)/646%8859-6.so 6616d86563SAlexander Pyhalov $(SYMLINK) -f 646%8859-1.so $(ICONV_DIR)/646%8859-7.so 6716d86563SAlexander Pyhalov $(SYMLINK) -f 646%8859-1.so $(ICONV_DIR)/646%8859-8.so 6816d86563SAlexander Pyhalov $(SYMLINK) -f 646%8859-1.so $(ICONV_DIR)/646%8859-9.so 6916d86563SAlexander Pyhalov $(SYMLINK) -f 646%8859-1.so $(ICONV_DIR)/646%CP1251.so 7016d86563SAlexander Pyhalov $(SYMLINK) -f 646%8859-1.so $(ICONV_DIR)/646%KOI8-R.so 7116d86563SAlexander Pyhalov $(TOUCH) $@ 7216d86563SAlexander Pyhalov 7316d86563SAlexander PyhalovFRC: 74