Print this page
11394 iconv_modules build could be much more parallel
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/lib/iconv_modules/euro/Makefile.com
+++ new/usr/src/lib/iconv_modules/euro/Makefile.com
1 1 #
2 2 # CDDL HEADER START
3 3 #
4 4 # The contents of this file are subject to the terms of the
5 5 # Common Development and Distribution License (the "License").
6 6 # You may not use this file except in compliance with the License.
7 7 #
8 8 # You can obtain a copy of the license at src/OPENSOLARIS.LICENSE
9 9 # or http://www.opensolaris.org/os/licensing.
10 10 # See the License for the specific language governing permissions
11 11 # and limitations under the License.
12 12 #
13 13 # When distributing Covered Code, include this CDDL HEADER in each
14 14 # file and include the License file at src/OPENSOLARIS.LICENSE.
15 15 # If applicable, add the following below this CDDL HEADER, with the
16 16 # fields enclosed by brackets "[]" replaced with your own identifying
17 17 # information: Portions Copyright [yyyy] [name of copyright owner]
18 18 #
19 19 # CDDL HEADER END
20 20 #
21 21 #
22 22 # Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
23 23 #
24 24
25 25 include $(SRC)/Makefile.master
26 26
27 27
28 28 # let the .so compilation be driven by present recoding tables
29 29 TABLES:sh = cd ../tbls/ && ls *tbl
30 30
31 31 ALL_SOS:sh = (cd ../tbls/ && ls *tbl |sed -e s:_:%:g -e 's:\.tbl$:.so:g')
32 32
33 33 LDLIBS = -lc
34 34
35 35 LINK_TARGETS = 646%8859-1.so
36 36
↓ open down ↓ |
36 lines elided |
↑ open up ↑ |
37 37 .NO_PARALLEL:
38 38
39 39 .PARALLEL: $(ALL_SOS)
40 40
41 41 all: $(ALL_SOS)
42 42
43 43 include $(SRC)/lib/iconv_modules/Makefile.iconv
44 44
45 45 LDFLAGS = $(DYNFLAGS) $(LDLIBS)
46 46
47 -CFLAGS += $(INCLUDES) $(XREGSFLAG) -D_REENTRANT
47 +CFLAGS += $(XREGSFLAG) -D_REENTRANT
48 48
49 -CLEANFILES += core ../common/tbl.h
49 +CLEANFILES += tbl.h
50 50
51 -$(ALL_SOS): ../common/euro.h ../common/euro.c ../common/tbl.h
51 +$(ALL_SOS): ../common/euro.h ../common/euro.c tbl.h
52 52 TABLE=`echo $@ | $(TR) -d "-" | sed -e s:%:_:g | /usr/bin/cut -d. -f1` ; \
53 - $(CC) $(CFLAGS) -DT_$$TABLE ../common/euro.c -c -o $@.o ; \
53 + $(CC) $(CFLAGS) $(CPPFLAGS) -DT_$$TABLE ../common/euro.c -c -o $@.o ; \
54 54 $(LD) $(LDFLAGS) -o $@ $@.o $(LDLIBS)
55 55 $(POST_PROCESS_SO)
56 56
57 -../common/tbl.h: ../genincl $(TABLES:%=../tbls/%)
58 - cd ..; ./genincl > common/tbl.h
57 +tbl.h: ../genincl $(TABLES:%=../tbls/%)
58 + (cd ..; ./genincl) > $@
59 59
60 60 $(CREATE_LINKS): $(ICONV_LINK_TARGETS)
61 61 $(SYMLINK) -f 646%8859-1.so $(ICONV_DIR)/646%8859-15.so
62 62 $(SYMLINK) -f 646%8859-1.so $(ICONV_DIR)/646%8859-2.so
63 63 $(SYMLINK) -f 646%8859-1.so $(ICONV_DIR)/646%8859-4.so
64 64 $(SYMLINK) -f 646%8859-1.so $(ICONV_DIR)/646%8859-5.so
65 65 $(SYMLINK) -f 646%8859-1.so $(ICONV_DIR)/646%8859-6.so
66 66 $(SYMLINK) -f 646%8859-1.so $(ICONV_DIR)/646%8859-7.so
67 67 $(SYMLINK) -f 646%8859-1.so $(ICONV_DIR)/646%8859-8.so
68 68 $(SYMLINK) -f 646%8859-1.so $(ICONV_DIR)/646%8859-9.so
69 69 $(SYMLINK) -f 646%8859-1.so $(ICONV_DIR)/646%CP1251.so
70 70 $(SYMLINK) -f 646%8859-1.so $(ICONV_DIR)/646%KOI8-R.so
71 71 $(TOUCH) $@
72 72
73 73 FRC:
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX