Print this page
10051 cw(1) shouldn't have to translate -g
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/cmd/geniconvtbl/Makefile.com
+++ new/usr/src/cmd/geniconvtbl/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 usr/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 usr/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 # Copyright 2007 Sun Microsystems, Inc. All rights reserved.
22 22 # Use is subject to license terms.
23 23 #
24 24
25 25 $(NOT_NATIVE)NATIVE_BUILD = $(POUND_SIGN)
26 26
27 27 ITM = geniconvtbl.so
28 28 PROG = geniconvtbl
29 29
30 30 SRCSH1 = iconv_tm.h hash.h
31 31 SRCCH1 = itmcomp.h itm_util.h maptype.h
32 32 SRCSC1 = itmcomp.c assemble.c disassemble.c itm_util.c
33 33 SRCY1 = itm_comp.y
34 34 SRCL1 = itm_comp.l
35 35 SRCI1 = geniconvtbl.c
36 36
37 37
38 38 YTABC = y.tab.c
39 39 YTABH = y.tab.h
40 40 LEXYY = lex.yy.c
41 41 YOUT = y.output
42 42 MAPFILE = ../mapfile
43 43
44 44
45 45
46 46 SRCSH = $(SRCSH1:%.h=../%.h)
47 47 SRCCH = $(SRCCH1:%.h=../%.h)
48 48 SRCSC = $(SRCSC1:%.c=../%.c)
49 49 SRCI = $(SRCI1:%.c=../%.c)
50 50 SRCY = $(SRCY1:%.y=../%.y)
51 51 SRCL = $(SRCL1:%.l=../%.l)
52 52
53 53 SRCYC = $(SRCY:%.y=%.c)
54 54 SRCLC = $(SRCL:%.l=%.c)
55 55
56 56 SRCS = $(SRCSC) $(YTABC) $(LEXYY)
57 57 HDRS = $(SRCCH1) $(ERNOSTRH)
58 58
59 59
60 60
61 61 SED = sed
62 62 LEXSED = ../lex.sed
63 63 YACCSED = ../yacc.sed
64 64
65 65
↓ open down ↓ |
65 lines elided |
↑ open up ↑ |
66 66
67 67 # include ../../../lib/Makefile.lib
68 68 include ../../Makefile.cmd
69 69
70 70
71 71 ROOTDIRS32= $(ROOTLIB)/iconv
72 72 ROOTDIRS64= $(ROOTLIB)/iconv/$(MACH64)
73 73 ROOTITM32 = $(ROOTDIRS32)/$(ITM)
74 74 ROOTITM64 = $(ROOTDIRS64)/$(ITM)
75 75
76 -#
77 -# definition for some useful target like clean,
76 +# defined for some useful targets like clean,
78 77 OBJS = $(SRCSC1:%.c=%.o) $(YTABC:.c=.o) $(LEXYY:.c=.o)
79 78
80 79 CHECKHDRS = $(HDRS%.h=%.check)
81 80
82 81 CLOBBERFILES= $(ITM) $(SRCYC)
83 -CLEANFILES = $(OBJS) $(YTABC) $(YTABH) $(LEXYY) $(YOUT) \
82 +CLEANFILES = $(OBJS) $(YTABC) $(YTABH) $(LEXYY) $(YOUT) \
84 83 $(POFILES) $(POFILE)
85 84
86 85 CPPFLAGS += -I. -I..
87 86 CERRWARN += -_gcc=-Wno-uninitialized
88 87 CERRWARN += -_gcc=-Wno-unused-label
89 88 CERRWARN += -_gcc=-Wno-switch
90 89 CERRWARN += -_gcc=-Wno-unused-variable
91 90 CERRWARN += -_gcc=-Wno-implicit-function-declaration
92 91 YFLAGS += -d -v
93 -CFLAGS += -D_FILE_OFFSET_BITS=64
92 +CFLAGS += -D_FILE_OFFSET_BITS=64
94 93
95 94 $(ITM) := CFLAGS += $(GSHARED) $(C_PICFLAGS) $(ZTEXT) -h $@
96 -$(ITM) := CPPFLAGS += -D_REENTRANT
95 +$(ITM) := CPPFLAGS += -D_REENTRANT
97 96 $(ITM) := sparc_CFLAGS += -xregs=no%appl
98 97 $(ITM) := sparcv9_CFLAGS += -xregs=no%appl
99 98
100 99 LDLIBS += -lgen
101 100
102 101 MY_NATIVE_CPPFLAGS = -D_FILE_OFFSET_BITS=64 -I. -I..
103 102 MY_NATIVE_LDFLAGS = $(MAPFILE.NES:%=-M%) $(MAPFILE.PGA:%=-M%) $(MAPFILE.NED:%=-M%)
104 103 MY_NATIVE_LDLIBS = -lgen
105 104
106 105 #
107 106 # Message catalog
108 107 #
109 108 POFILES= $(SRCSC1:%.c=%.po) $(SRCI1:%.c=%.po) \
110 109 $(SRCY1:%.y=%.po) $(SRCL1:%.l=%.po)
111 110
112 111 POFILE= geniconvtbl_.po
113 112
114 113
115 114
116 115
117 116
118 117 .KEEP_STATE:
119 118
120 119 .PARALLEL: $(ITM) $(OBJS)
121 120
122 121 $(PROG): $(OBJS)
123 122 $(LINK.c) $(OBJS) -o $@ $(LDLIBS)
124 123 $(POST_PROCESS)
125 124
126 125 $(ITM): $(SRCI)
127 126 $(CC) $(CFLAGS) $(CPPFLAGS) -M$(MAPFILE) -o $@ $(SRCI) $(LDLIBS)
128 127 $(POST_PROCESS_SO)
129 128
130 129 $(YTABC) $(YTABH): $(SRCY)
131 130 $(YACC) $(YFLAGS) $(SRCY)
132 131 @ $(MV) $(YTABC) $(YTABC)~
133 132 @ $(SED) -f $(YACCSED) $(YTABC)~ > $(YTABC)
134 133 @ $(RM) $(YTABC)~
135 134
136 135 $(LEXYY): $(SRCL) $(YTABH)
137 136 $(LEX) -t $(SRCL) | $(SED) -f $(LEXSED) > $(LEXYY)
138 137
139 138
140 139 $(POFILE): .WAIT $(POFILES)
141 140 $(RM) $@
142 141 $(CAT) $(POFILES) >$@
143 142
144 143 $(POFILES): $(SRCSC) $(SRCI) $(SRCY) $(SRCL)
145 144
146 145 %.po: ../%.c
147 146 $(COMPILE.cpp) $< > $<.i
148 147 $(BUILD.po)
149 148
150 149
151 150 lint : lint_SRCS1 lint_SRCS2
152 151
153 152
154 153 lint_SRCS1: $(SRCS)
155 154 $(LINT.c) $(SRCS) $(LDLIBS)
156 155
157 156 lint_SRCS2: $(SRCI)
158 157 $(LINT.c) $(SRCI) $(LDLIBS)
159 158
↓ open down ↓ |
53 lines elided |
↑ open up ↑ |
160 159
161 160
162 161 hdrchk: $(HDRCHECKS)
163 162
164 163 cstyle: $(SRCS)
165 164 $(DOT_C_CHECK)
166 165
167 166 clean:
168 167 $(RM) $(CLEANFILES)
169 168
170 -debug:
171 - $(MAKE) all COPTFLAG='' COPTFLAG64='' CFLAGS='-g -DDEBUG'
172 -
173 -
174 -%.o: %.c
169 +%.o: %.c
175 170 $(COMPILE.c) $<
176 171
177 172 %.o: ../%.c
178 173 $(COMPILE.c) $<
179 174
180 175
181 176
182 177 # install rule
183 -#
184 178 $(ROOTDIRS32)/%: $(ROOTDIRS32) %
185 179 -$(INS.file)
186 180
187 181 $(ROOTDIRS64)/%: $(ROOTDIRS64) %
188 182 -$(INS.file)
189 183
190 184 $(ROOTDIRS32): $(ROOTLIB)
191 185 -$(INS.dir)
192 186
193 187 $(ROOTDIRS64): $(ROOTDIRS32)
194 188 -$(INS.dir)
195 189
196 190 $(ROOTLIB) $(ROOTBIN):
197 191 -$(INS.dir)
198 192
199 193 include ../../Makefile.targ
200 194
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX