1*91e1e26aSAlexander Pyhalov# 2*91e1e26aSAlexander Pyhalov# CDDL HEADER START 3*91e1e26aSAlexander Pyhalov# 4*91e1e26aSAlexander Pyhalov# The contents of this file are subject to the terms of the 5*91e1e26aSAlexander Pyhalov# Common Development and Distribution License (the "License"). 6*91e1e26aSAlexander Pyhalov# You may not use this file except in compliance with the License. 7*91e1e26aSAlexander Pyhalov# 8*91e1e26aSAlexander Pyhalov# You can obtain a copy of the license at src/OPENSOLARIS.LICENSE 9*91e1e26aSAlexander Pyhalov# or http://www.opensolaris.org/os/licensing. 10*91e1e26aSAlexander Pyhalov# See the License for the specific language governing permissions 11*91e1e26aSAlexander Pyhalov# and limitations under the License. 12*91e1e26aSAlexander Pyhalov# 13*91e1e26aSAlexander Pyhalov# When distributing Covered Code, include this CDDL HEADER in each 14*91e1e26aSAlexander Pyhalov# file and include the License file at src/OPENSOLARIS.LICENSE. 15*91e1e26aSAlexander Pyhalov# If applicable, add the following below this CDDL HEADER, with the 16*91e1e26aSAlexander Pyhalov# fields enclosed by brackets "[]" replaced with your own identifying 17*91e1e26aSAlexander Pyhalov# information: Portions Copyright [yyyy] [name of copyright owner] 18*91e1e26aSAlexander Pyhalov# 19*91e1e26aSAlexander Pyhalov# CDDL HEADER END 20*91e1e26aSAlexander Pyhalov# 21*91e1e26aSAlexander Pyhalov# 22*91e1e26aSAlexander Pyhalov# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved. 23*91e1e26aSAlexander Pyhalov# 24*91e1e26aSAlexander Pyhalov 25*91e1e26aSAlexander Pyhalovinclude $(SRC)/Makefile.master 26*91e1e26aSAlexander Pyhalov 27*91e1e26aSAlexander Pyhalov 28*91e1e26aSAlexander Pyhalov# let the .so compilation be driven by present recoding tables 29*91e1e26aSAlexander PyhalovTABLES:sh = cd ../tbls/ && ls *tbl 30*91e1e26aSAlexander Pyhalov 31*91e1e26aSAlexander PyhalovALL_SOS:sh = (cd ../tbls/ && ls *tbl |sed -e s:_:%:g -e 's:\.tbl$:.so:g') 32*91e1e26aSAlexander Pyhalov 33*91e1e26aSAlexander PyhalovLDLIBS = -lc 34*91e1e26aSAlexander Pyhalov 35*91e1e26aSAlexander PyhalovLINK_TARGETS = 646%8859-1.so 36*91e1e26aSAlexander Pyhalov 37*91e1e26aSAlexander Pyhalov.NO_PARALLEL: 38*91e1e26aSAlexander Pyhalov 39*91e1e26aSAlexander Pyhalov.PARALLEL: $(ALL_SOS) 40*91e1e26aSAlexander Pyhalov 41*91e1e26aSAlexander Pyhalovall: $(ALL_SOS) 42*91e1e26aSAlexander Pyhalov 43*91e1e26aSAlexander Pyhalovinclude $(SRC)/lib/iconv_modules/Makefile.iconv 44*91e1e26aSAlexander Pyhalov 45*91e1e26aSAlexander PyhalovLDFLAGS = $(DYNFLAGS) $(LDLIBS) 46*91e1e26aSAlexander Pyhalov 47*91e1e26aSAlexander PyhalovCFLAGS += $(INCLUDES) $(XREGSFLAG) -D_REENTRANT 48*91e1e26aSAlexander Pyhalov 49*91e1e26aSAlexander PyhalovCLEANFILES += core ../common/tbl.h 50*91e1e26aSAlexander Pyhalov 51*91e1e26aSAlexander Pyhalov$(ALL_SOS): ../common/euro.h ../common/euro.c ../common/tbl.h 52*91e1e26aSAlexander Pyhalov TABLE=`echo $@ | $(TR) -d "-" | sed -e s:%:_:g | /usr/bin/cut -d. -f1` ; \ 53*91e1e26aSAlexander Pyhalov $(CC) $(CFLAGS) -DT_$$TABLE ../common/euro.c -c -o $@.o ; \ 54*91e1e26aSAlexander Pyhalov $(LD) $(LDFLAGS) -o $@ $@.o $(LDLIBS) 55*91e1e26aSAlexander Pyhalov $(POST_PROCESS_SO) 56*91e1e26aSAlexander Pyhalov 57*91e1e26aSAlexander Pyhalov../common/tbl.h: ../genincl $(TABLES:%=../tbls/%) 58*91e1e26aSAlexander Pyhalov cd ..; ./genincl > common/tbl.h 59*91e1e26aSAlexander Pyhalov 60*91e1e26aSAlexander Pyhalov$(CREATE_LINKS): $(ICONV_LINK_TARGETS) 61*91e1e26aSAlexander Pyhalov $(SYMLINK) -f 646%8859-1.so $(ICONV_DIR)/646%8859-15.so 62*91e1e26aSAlexander Pyhalov $(SYMLINK) -f 646%8859-1.so $(ICONV_DIR)/646%8859-2.so 63*91e1e26aSAlexander Pyhalov $(SYMLINK) -f 646%8859-1.so $(ICONV_DIR)/646%8859-4.so 64*91e1e26aSAlexander Pyhalov $(SYMLINK) -f 646%8859-1.so $(ICONV_DIR)/646%8859-5.so 65*91e1e26aSAlexander Pyhalov $(SYMLINK) -f 646%8859-1.so $(ICONV_DIR)/646%8859-6.so 66*91e1e26aSAlexander Pyhalov $(SYMLINK) -f 646%8859-1.so $(ICONV_DIR)/646%8859-7.so 67*91e1e26aSAlexander Pyhalov $(SYMLINK) -f 646%8859-1.so $(ICONV_DIR)/646%8859-8.so 68*91e1e26aSAlexander Pyhalov $(SYMLINK) -f 646%8859-1.so $(ICONV_DIR)/646%8859-9.so 69*91e1e26aSAlexander Pyhalov $(SYMLINK) -f 646%8859-1.so $(ICONV_DIR)/646%CP1251.so 70*91e1e26aSAlexander Pyhalov $(SYMLINK) -f 646%8859-1.so $(ICONV_DIR)/646%KOI8-R.so 71*91e1e26aSAlexander Pyhalov $(TOUCH) $@ 72*91e1e26aSAlexander Pyhalov 73*91e1e26aSAlexander PyhalovFRC: 74