xref: /titanic_52/usr/src/lib/iconv_modules/th_TH/Makefile.com (revision 2fb4439d628ad2df0775287be1abd1ed95e7d267)
1#
2# CDDL HEADER START
3#
4# The contents of this file are subject to the terms of the
5# Common Development and Distribution License (the "License").
6# You may not use this file except in compliance with the License.
7#
8# You can obtain a copy of the license at src/OPENSOLARIS.LICENSE
9# or http://www.opensolaris.org/os/licensing.
10# See the License for the specific language governing permissions
11# and limitations under the License.
12#
13# When distributing Covered Code, include this CDDL HEADER in each
14# file and include the License file at src/OPENSOLARIS.LICENSE.
15# If applicable, add the following below this CDDL HEADER, with the
16# fields enclosed by brackets "[]" replaced with your own identifying
17# information: Portions Copyright [yyyy] [name of copyright owner]
18#
19# CDDL HEADER END
20#
21#
22# Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
23# Use is subject to license terms.
24#
25
26include $(SRC)/lib/iconv_modules/Makefile.iconv
27
28COMMON = ../common/
29
30SRCS	= euc2utf_main.c \
31	  utf2euc_main.c \
32	  874_to_838_main.c \
33	  838_to_874_main.c \
34	  common_utf.c \
35	  euc2utf_sub.c \
36	  utf2euc_sub.c
37
38dummy: all
39
40E2U	= eucTH%UTF-8.so
41U2E	= UTF-8%eucTH.so
42723	= IBM-874%IBM-838.so
43327	= IBM-838%IBM-874.so
44
45ALL_SOS	= $(U2E) $(E2U) $(723) $(327)
46
47CFLAGS += -I$(COMMON)
48
49LDFLAGS = $(DYNFLAGS) $(LDLIBS)
50
51install: all
52
53all:	$(ALL_SOS)
54
55#
56# Library
57#
58$(E2U): euc_to_utf_main.o euc_to_utf_sub.o common_utf.o $(COMMON)common_def.h
59	$(CC) $(CFLAGS) $(LDFLAGS) -o $@ euc_to_utf_main.o euc_to_utf_sub.o common_utf.o
60	$(POST_PROCESS_SO)
61
62$(U2E): utf_to_euc_main.o utf_to_euc_sub.o common_utf.o $(COMMON)common_def.h
63	$(CC) $(CFLAGS) $(LDFLAGS) -o $@ utf_to_euc_main.o utf_to_euc_sub.o common_utf.o
64	$(POST_PROCESS_SO)
65
66$(723): 874_to_838_main.o 874_to_838_sub.o common_utf.o $(COMMON)common_def.h
67	$(CC) $(CFLAGS) $(LDFLAGS) -o $@ 874_to_838_main.o 874_to_838_sub.o common_utf.o
68	$(POST_PROCESS_SO)
69
70$(327): 838_to_874_main.o 838_to_874_sub.o common_utf.o $(COMMON)common_def.h
71	$(CC) $(CFLAGS) $(LDFLAGS) -o $@ 838_to_874_main.o 838_to_874_sub.o common_utf.o
72	$(POST_PROCESS_SO)
73