xref: /titanic_50/usr/src/lib/iconv_modules/th_TH/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 2006 Sun Microsystems, Inc.  All rights reserved.
23*880d7978SAlexander Pyhalov# Use is subject to license terms.
24*880d7978SAlexander Pyhalov#
25*880d7978SAlexander Pyhalov
26*880d7978SAlexander Pyhalovinclude $(SRC)/lib/iconv_modules/Makefile.iconv
27*880d7978SAlexander Pyhalov
28*880d7978SAlexander PyhalovCOMMON = ../common/
29*880d7978SAlexander Pyhalov
30*880d7978SAlexander PyhalovSRCS	= euc2utf_main.c \
31*880d7978SAlexander Pyhalov	  utf2euc_main.c \
32*880d7978SAlexander Pyhalov	  874_to_838_main.c \
33*880d7978SAlexander Pyhalov	  838_to_874_main.c \
34*880d7978SAlexander Pyhalov	  common_utf.c \
35*880d7978SAlexander Pyhalov	  euc2utf_sub.c \
36*880d7978SAlexander Pyhalov	  utf2euc_sub.c
37*880d7978SAlexander Pyhalov
38*880d7978SAlexander Pyhalovdummy: all
39*880d7978SAlexander Pyhalov
40*880d7978SAlexander PyhalovE2U	= eucTH%UTF-8.so
41*880d7978SAlexander PyhalovU2E	= UTF-8%eucTH.so
42*880d7978SAlexander Pyhalov723	= IBM-874%IBM-838.so
43*880d7978SAlexander Pyhalov327	= IBM-838%IBM-874.so
44*880d7978SAlexander Pyhalov
45*880d7978SAlexander PyhalovALL_SOS	= $(U2E) $(E2U) $(723) $(327)
46*880d7978SAlexander Pyhalov
47*880d7978SAlexander PyhalovCFLAGS += -I$(COMMON)
48*880d7978SAlexander Pyhalov
49*880d7978SAlexander PyhalovLDFLAGS = $(DYNFLAGS) $(LDLIBS)
50*880d7978SAlexander Pyhalov
51*880d7978SAlexander Pyhalovinstall: all
52*880d7978SAlexander Pyhalov
53*880d7978SAlexander Pyhalovall:	$(ALL_SOS)
54*880d7978SAlexander Pyhalov
55*880d7978SAlexander Pyhalov#
56*880d7978SAlexander Pyhalov# Library
57*880d7978SAlexander Pyhalov#
58*880d7978SAlexander Pyhalov$(E2U): euc_to_utf_main.o euc_to_utf_sub.o common_utf.o $(COMMON)common_def.h
59*880d7978SAlexander Pyhalov	$(CC) $(CFLAGS) $(LDFLAGS) -o $@ euc_to_utf_main.o euc_to_utf_sub.o common_utf.o
60*880d7978SAlexander Pyhalov	$(POST_PROCESS_SO)
61*880d7978SAlexander Pyhalov
62*880d7978SAlexander Pyhalov$(U2E): utf_to_euc_main.o utf_to_euc_sub.o common_utf.o $(COMMON)common_def.h
63*880d7978SAlexander Pyhalov	$(CC) $(CFLAGS) $(LDFLAGS) -o $@ utf_to_euc_main.o utf_to_euc_sub.o common_utf.o
64*880d7978SAlexander Pyhalov	$(POST_PROCESS_SO)
65*880d7978SAlexander Pyhalov
66*880d7978SAlexander Pyhalov$(723): 874_to_838_main.o 874_to_838_sub.o common_utf.o $(COMMON)common_def.h
67*880d7978SAlexander Pyhalov	$(CC) $(CFLAGS) $(LDFLAGS) -o $@ 874_to_838_main.o 874_to_838_sub.o common_utf.o
68*880d7978SAlexander Pyhalov	$(POST_PROCESS_SO)
69*880d7978SAlexander Pyhalov
70*880d7978SAlexander Pyhalov$(327): 838_to_874_main.o 838_to_874_sub.o common_utf.o $(COMMON)common_def.h
71*880d7978SAlexander Pyhalov	$(CC) $(CFLAGS) $(LDFLAGS) -o $@ 838_to_874_main.o 838_to_874_sub.o common_utf.o
72*880d7978SAlexander Pyhalov	$(POST_PROCESS_SO)
73