xref: /titanic_52/usr/src/lib/iconv_modules/vi/Makefile.com (revision 91e1e26ac6a73ce959289cf7d3d96c4baedbe0b8)
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 2008 Sun Microsystems, Inc.  All rights reserved.
23*91e1e26aSAlexander Pyhalov# Use is subject to license terms.
24*91e1e26aSAlexander Pyhalov#
25*91e1e26aSAlexander Pyhalov
26*91e1e26aSAlexander PyhalovSRCS		=	tcvn%UCS-2.c \
27*91e1e26aSAlexander Pyhalov            tcvn%UTF-8.c \
28*91e1e26aSAlexander Pyhalov            tcvn%viscii.c \
29*91e1e26aSAlexander Pyhalov            UCS-2%tcvn.c  \
30*91e1e26aSAlexander Pyhalov            UCS-2%viscii.c  \
31*91e1e26aSAlexander Pyhalov            UTF-8%tcvn.c  \
32*91e1e26aSAlexander Pyhalov            UTF-8%viscii.c  \
33*91e1e26aSAlexander Pyhalov            viscii%tcvn.c  \
34*91e1e26aSAlexander Pyhalov            viscii%UCS-2.c  \
35*91e1e26aSAlexander Pyhalov            viscii%UTF-8.c
36*91e1e26aSAlexander PyhalovCOMMON = ../common/
37*91e1e26aSAlexander Pyhalov
38*91e1e26aSAlexander PyhalovLINK_TARGETS  = UCS-2BE%tcvn.so tcvn%UCS-2BE.so
39*91e1e26aSAlexander PyhalovLINK_TARGETS += UCS-2BE%viscii.so viscii%UCS-2BE.so
40*91e1e26aSAlexander Pyhalov
41*91e1e26aSAlexander Pyhalovdummy: all
42*91e1e26aSAlexander Pyhalov
43*91e1e26aSAlexander Pyhalovtcvn%UCS-2LE.o: $(COMMON)tcvn%UCS-2.c
44*91e1e26aSAlexander Pyhalov	$(CC) $(CFLAGS) -DUCS_2LE -c -o $@ $^
45*91e1e26aSAlexander Pyhalov
46*91e1e26aSAlexander Pyhalovtcvn%UCS-2BE.o: $(COMMON)tcvn%UCS-2.c
47*91e1e26aSAlexander Pyhalov	$(CC) $(CFLAGS) -c -o $@ $^
48*91e1e26aSAlexander Pyhalov
49*91e1e26aSAlexander Pyhalovviscii%UCS-2LE.o: $(COMMON)viscii%UCS-2.c
50*91e1e26aSAlexander Pyhalov	$(CC) $(CFLAGS) -DUCS_2LE -c -o $@ $^
51*91e1e26aSAlexander Pyhalov
52*91e1e26aSAlexander Pyhalovviscii%UCS-2BE.o: $(COMMON)viscii%UCS-2.c
53*91e1e26aSAlexander Pyhalov	$(CC) $(CFLAGS) -c -o $@ $^
54*91e1e26aSAlexander Pyhalov
55*91e1e26aSAlexander PyhalovUCS-2LE%tcvn.o: $(COMMON)UCS-2%tcvn.c
56*91e1e26aSAlexander Pyhalov	$(CC) $(CFLAGS) -DUCS_2LE -c -o $@ $^
57*91e1e26aSAlexander Pyhalov
58*91e1e26aSAlexander PyhalovUCS-2BE%tcvn.o: $(COMMON)UCS-2%tcvn.c
59*91e1e26aSAlexander Pyhalov	$(CC) $(CFLAGS) -c -o $@ $^
60*91e1e26aSAlexander Pyhalov
61*91e1e26aSAlexander PyhalovUCS-2LE%viscii.o: $(COMMON)UCS-2%viscii.c
62*91e1e26aSAlexander Pyhalov	$(CC) $(CFLAGS) -DUCS_2LE -c -o $@ $^
63*91e1e26aSAlexander Pyhalov
64*91e1e26aSAlexander PyhalovUCS-2BE%viscii.o: $(COMMON)UCS-2%viscii.c
65*91e1e26aSAlexander Pyhalov	$(CC) $(CFLAGS) -c -o $@ $^
66*91e1e26aSAlexander Pyhalov
67*91e1e26aSAlexander Pyhalovinclude $(SRC)/lib/iconv_modules/Makefile.iconv
68*91e1e26aSAlexander Pyhalov
69*91e1e26aSAlexander Pyhalov$(CREATE_LINKS):  $(ICONV_LINK_TARGETS)
70*91e1e26aSAlexander Pyhalov	$(SYMLINK) -f tcvn%UCS-2BE.so $(ICONV_DIR)/tcvn%UCS-2.so
71*91e1e26aSAlexander Pyhalov	$(SYMLINK) -f UCS-2BE%tcvn.so $(ICONV_DIR)/UCS-2%tcvn.so
72*91e1e26aSAlexander Pyhalov	$(SYMLINK) -f UCS-2BE%viscii.so $(ICONV_DIR)/UCS-2%viscii.so
73*91e1e26aSAlexander Pyhalov	$(SYMLINK) -f viscii%UCS-2BE.so $(ICONV_DIR)/viscii%UCS-2.so
74*91e1e26aSAlexander Pyhalov	$(TOUCH) $@
75*91e1e26aSAlexander Pyhalov
76*91e1e26aSAlexander PyhalovALL_SOS  = tcvn%UCS-2LE.so		tcvn%UCS-2BE.so
77*91e1e26aSAlexander PyhalovALL_SOS += viscii%UCS-2LE.so		viscii%UCS-2BE.so
78*91e1e26aSAlexander PyhalovALL_SOS += UCS-2LE%tcvn.so		UCS-2BE%tcvn.so
79*91e1e26aSAlexander PyhalovALL_SOS += UCS-2LE%viscii.so		UCS-2BE%viscii.so
80*91e1e26aSAlexander PyhalovALL_SOS += UTF-8%tcvn.so			tcvn%UTF-8.so
81*91e1e26aSAlexander PyhalovALL_SOS += UTF-8%viscii.so		viscii%UTF-8.so
82*91e1e26aSAlexander PyhalovALL_SOS += tcvn%viscii.so			viscii%tcvn.so
83*91e1e26aSAlexander Pyhalov
84*91e1e26aSAlexander Pyhalovall: $(ALL_SOS)
85