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