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