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
26 include $(SRC)/lib/iconv_modules/Makefile.iconv
27
28 install := TARGET = install
29 all := TARGET = all
30 lint := TARGET = lint
31 clean := TARGET = clean
32 clobber := TARGET = clobber
33
34 dummy: all
35
36 COMMON = ../common/
37 ICONV_COMMON = ../../common/
38
39 SRCS = byte_to_comb.c comb_to_byte.c \
40 euc_to_iso2022-7.c iso2022-7_to_euc.c \
41 euc_to_johap92.c johap92_to_euc.c \
42 euc_to_johap.c johap_to_euc.c \
43 euc_to_nbyte.c nbyte_to_euc.c \
44 uhang_to_utf_sub.c uhang_to_utf_main.c \
45 utf_to_uhang_sub.c utf_to_uhang_main.c \
75 E2U = ko_KR-euc%ko_KR-UTF-8.so
76 U2E = ko_KR-UTF-8%ko_KR-euc.so
77 N2U = ko_KR-johap92%ko_KR-UTF-8.so
78 U2N = ko_KR-UTF-8%ko_KR-johap92.so
79 O2U = ko_KR-johap%ko_KR-UTF-8.so
80 U2O = ko_KR-UTF-8%ko_KR-johap.so
81 I2U = ko_KR-iso2022-7%ko_KR-UTF-8.so
82 U2I = ko_KR-UTF-8%ko_KR-iso2022-7.so
83
84 C9332U = ko_KR-cp933%ko_KR-UTF-8.so
85 U2C933 = ko_KR-UTF-8%ko_KR-cp933.so
86
87 ALL_SOS = $(E2I) $(I2E) $(E2J92) $(J922E) $(E2J) $(J2E) $(E2NB) $(NB2E) \
88 $(U2UH) $(UH2U) $(UH2UCS2LE) $(UCS2LE2UH) $(UH2UCS2BE) $(UCS2BE2UH) \
89 $(U2E) $(E2U) $(N2U) $(U2N) $(O2U) $(U2O) $(I2U) $(U2I) \
90 $(C9332U) $(U2C933)
91
92 LDFLAGS = $(DYNFLAGS) $(LDLIBS) $(CFLAG_OPT)
93 CFLAGS += -I$(ICONV_COMMON) -I../inc
94
95 LINK_TARGETS = $(U2UH) $(C9332U) $(UH2U) $(E2U) $(I2U) $(O2U) $(N2U) \
96 $(E2I) $(E2J) $(E2J92) $(E2NB) $(I2E) $(J2E) $(J922E) $(NVBE) \
97 $(UCS2BE2UH) $(U2LE2UH) $(U2C933) $(U2E) $(U2I) $(U2O) $(U2N) \
98 $(UH2UCS2BE) $(UH2UCS2LE)
99
100 all: $(ALL_SOS)
101
102 #
103 # libraries
104 #
105 $(E2I): euc_to_iso2022-7.o
106 $(CC) $(LDFLAGS) $(CFLAGS) -o $@ euc_to_iso2022-7.o
107 $(POST_PROCESS_SO)
108
109 $(I2E): iso2022-7_to_euc.o
110 $(CC) $(LDFLAGS) $(CFLAGS) -o $@ iso2022-7_to_euc.o
111 $(POST_PROCESS_SO)
112
113 $(E2J92): euc_to_johap92.o ktable.o comp_to_pack.o c2p.o
114 $(CC) $(LDFLAGS) $(CFLAGS) -o $@ comp_to_pack.o c2p.o euc_to_johap92.o ktable.o
|
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 # Copyright (c) 2018, Joyent, Inc.
26
27
28 include $(SRC)/lib/iconv_modules/Makefile.iconv
29
30 install := TARGET = install
31 all := TARGET = all
32 lint := TARGET = lint
33 clean := TARGET = clean
34 clobber := TARGET = clobber
35
36 dummy: all
37
38 COMMON = ../common/
39 ICONV_COMMON = ../../common/
40
41 SRCS = byte_to_comb.c comb_to_byte.c \
42 euc_to_iso2022-7.c iso2022-7_to_euc.c \
43 euc_to_johap92.c johap92_to_euc.c \
44 euc_to_johap.c johap_to_euc.c \
45 euc_to_nbyte.c nbyte_to_euc.c \
46 uhang_to_utf_sub.c uhang_to_utf_main.c \
47 utf_to_uhang_sub.c utf_to_uhang_main.c \
77 E2U = ko_KR-euc%ko_KR-UTF-8.so
78 U2E = ko_KR-UTF-8%ko_KR-euc.so
79 N2U = ko_KR-johap92%ko_KR-UTF-8.so
80 U2N = ko_KR-UTF-8%ko_KR-johap92.so
81 O2U = ko_KR-johap%ko_KR-UTF-8.so
82 U2O = ko_KR-UTF-8%ko_KR-johap.so
83 I2U = ko_KR-iso2022-7%ko_KR-UTF-8.so
84 U2I = ko_KR-UTF-8%ko_KR-iso2022-7.so
85
86 C9332U = ko_KR-cp933%ko_KR-UTF-8.so
87 U2C933 = ko_KR-UTF-8%ko_KR-cp933.so
88
89 ALL_SOS = $(E2I) $(I2E) $(E2J92) $(J922E) $(E2J) $(J2E) $(E2NB) $(NB2E) \
90 $(U2UH) $(UH2U) $(UH2UCS2LE) $(UCS2LE2UH) $(UH2UCS2BE) $(UCS2BE2UH) \
91 $(U2E) $(E2U) $(N2U) $(U2N) $(O2U) $(U2O) $(I2U) $(U2I) \
92 $(C9332U) $(U2C933)
93
94 LDFLAGS = $(DYNFLAGS) $(LDLIBS) $(CFLAG_OPT)
95 CFLAGS += -I$(ICONV_COMMON) -I../inc
96
97 # needs work
98 SMATCH=off
99
100 LINK_TARGETS = $(U2UH) $(C9332U) $(UH2U) $(E2U) $(I2U) $(O2U) $(N2U) \
101 $(E2I) $(E2J) $(E2J92) $(E2NB) $(I2E) $(J2E) $(J922E) $(NVBE) \
102 $(UCS2BE2UH) $(U2LE2UH) $(U2C933) $(U2E) $(U2I) $(U2O) $(U2N) \
103 $(UH2UCS2BE) $(UH2UCS2LE)
104
105 all: $(ALL_SOS)
106
107 #
108 # libraries
109 #
110 $(E2I): euc_to_iso2022-7.o
111 $(CC) $(LDFLAGS) $(CFLAGS) -o $@ euc_to_iso2022-7.o
112 $(POST_PROCESS_SO)
113
114 $(I2E): iso2022-7_to_euc.o
115 $(CC) $(LDFLAGS) $(CFLAGS) -o $@ iso2022-7_to_euc.o
116 $(POST_PROCESS_SO)
117
118 $(E2J92): euc_to_johap92.o ktable.o comp_to_pack.o c2p.o
119 $(CC) $(LDFLAGS) $(CFLAGS) -o $@ comp_to_pack.o c2p.o euc_to_johap92.o ktable.o
|