Print this page
6945 illumos xgettext should be using from Makefile.master
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/lib/libunistat/Makefile.com
+++ new/usr/src/lib/libunistat/Makefile.com
1 1 # CDDL HEADER START
2 2 #
3 3 # The contents of this file are subject to the terms of the
4 4 # Common Development and Distribution License (the "License").
5 5 # You may not use this file except in compliance with the License.
6 6 #
7 7 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
8 8 # or http://www.opensolaris.org/os/licensing.
9 9 # See the License for the specific language governing permissions
10 10 # and limitations under the License.
11 11 #
12 12 # When distributing Covered Code, include this CDDL HEADER in each
13 13 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
14 14 # If applicable, add the following below this CDDL HEADER, with the
15 15 # fields enclosed by brackets "[]" replaced with your own identifying
16 16 # information: Portions Copyright [yyyy] [name of copyright owner]
17 17 #
18 18 # CDDL HEADER END
19 19 #
20 20 #
21 21 # Copyright 2009 Sun Microsystems, Inc. All rights reserved.
22 22 # Use is subject to license terms.
23 23 #
24 24 # lib/libunistat/Makefile.com
25 25 #
26 26 # include global definitions
27 27 include ../../../Makefile.master
28 28
29 29 LIBRARY= libunistat.a
30 30 VERS= .1
31 31
32 32 OBJECTS= spcs_s_u.o spcs_log.o
33 33
34 34 # include library definitions
35 35 include ../../Makefile.lib
36 36
37 37 SRCS= $(OBJECTS:%.o=../common/%.c)
38 38 SRCDIR= ../common
39 39
40 40 LIBS += $(DYNLIB) $(LINTLIB)
41 41
42 42 # definitions for lint
43 43
44 44 LINTFLAGS += -u -I..
45 45 LINTFLAGS += -erroff=E_UNDEFINED_SYMBOL
46 46 LINTFLAGS += -erroff=E_STATIC_UNUSED
47 47 LINTFLAGS += -erroff=E_BAD_PTR_INT_COMB_ARG
48 48 LINTFLAGS += -erroff=E_VAR_USED_BEFORE_SET
49 49 LINTFLAGS += -erroff=E_SEC_FORBIDDEN_WARN_CFTIME
50 50 LINTFLAGS += -erroff=E_SEC_PRINTF_VAR_FMT
51 51 LINTFLAGS += -erroff=E_OLD_STYLE_DECL_OR_BAD_TYPE
52 52 LINTFLAGS += -erroff=E_YACC_ERROR
53 53 LINTFLAGS += -erroff=E_FUNC_RET_MAYBE_IGNORED2
54 54 LINTFLAGS += -erroff=E_FUNC_RET_ALWAYS_IGNOR2
55 55 LINTOUT= lint.out
56 56 LINTOUT_INTER= lintinter.out
57 57
58 58 CERRWARN += -_gcc=-Wno-parentheses
59 59 CERRWARN += -_gcc=-Wno-unused-variable
60 60
61 61 LINTSRC= $(LINTLIB:%.ln=%)
62 62 ROOTLINTDIR= $(ROOTLIBDIR)
63 63 ROOTLINT= $(LINTSRC:%=$(ROOTLINTDIR)/%)
64 64
65 65 CLEANFILES += $(LINTOUT) $(LINTLIB) $(LINTOUT_INTER) $(LINT_INTER)
66 66
67 67 all:= TARGET= all
68 68 clean:= TARGET= clean
69 69 clobber:= TARGET= clobber
70 70 install:= TARGET= install
71 71 lint:= TARGET= lint
72 72 lintinter:= TARGET= lintinter
73 73
74 74 MODS= dsw \
75 75 rdc \
76 76 spcs \
77 77 sdbc \
78 78 solaris \
79 79 sv
80 80
81 81 ERRS= $(MODS:%=$(SRCDIR)/%/%.err)
82 82 MSGS= $(MODS:%=$(SRCDIR)/%/%.msg)
83 83 EDEFS= $(MODS:%=$(SRCDIR)/%/%.edef)
84 84 TRNKS= $(MODS:%=$(SRCDIR)/%/%.trnk)
85 85 DTRNKS= $(MODS:%=$(SRCDIR)/%/%.dtrnk)
86 86
87 87 ERRGEN_DIR= $(SRC)/cmd/avs/errgen
88 88 ERRGEN= $(ERRGEN_DIR)/errgen
89 89
90 90 # production (non-debug)
91 91 DFLAGS = -DISSTATIC=static
92 92
93 93 # development (debug) - cstyle prohibits use of "STATIC"
94 94 DFLAGS = -g -DISSTATIC=" "
95 95
96 96 CFLAGS += $(CCVERBOSE) $(DFLAGS) -I. -DLIBSPCS_CLIENT\
97 97 -I$(JAVAINC) -I$(JAVAINCSOL)\
98 98 -DLIBUNISTAT_LOCALE=\"/usr/install/unistat/locale\"
99 99 CFLAGS64 += $(CCVERBOSE) $(DFLAGS) -I. -DLIBSPCS_CLIENT\
100 100 -I$(JAVAINC) -I$(JAVAINCSOL)\
101 101 -DLIBUNISTAT_LOCALE=\"/usr/install/unistat/locale\"
102 102 LDLIBS += -lc
103 103
104 104 $(LINTLIB) := SRCS = ../common/llib-lunistat
105 105 $(LINTLIB) := LINTFLAGS = -nvx -DLIBSPCS_CLIENT -I$(JAVAINC) -I$(JAVAINCSOL)\
106 106 -DISSTATIC=static \
107 107 -DLIBUNISTAT_LOCALE=\"/usr/install/unistat/locale\"
108 108 $(LINTLIB) := LINTFLAGS64 = -nvx -Xarch=v9 -DLIBSPCS_CLIENT \
109 109 -I$(JAVAINC) -I$(JAVAINCSOL) \
110 110 -DISSTATIC=static \
111 111 -DLIBUNISTAT_LOCALE=\"/usr/install/unistat/locale\"
112 112
113 113 $(LINT_INTER) := SRCS += ../common/llib-lunistat
114 114 $(LINT_INTER) := LINTFLAGS = -nvx -DLIBSPCS_CLIENT -I$(JAVAINC) -I$(JAVAINCSOL)\
115 115 -DISSTATIC=static \
116 116 -DLIBUNISTAT_LOCALE=\"/usr/install/unistat/locale\"
117 117 $(LINT_INTER) := LINTFLAGS64 = -nvx -Xarch=v9 -DLIBSPCS_CLIENT \
118 118 -I$(JAVAINC) -I$(JAVAINCSOL) \
119 119 -DISSTATIC=static \
120 120 -DLIBUNISTAT_LOCALE=\"/usr/install/unistat/locale\"
121 121
122 122 COMMENT= "/* THIS FILE IS AUTOMATICALLY GENERATED: DO NOT EDIT */"
123 123
124 124 CLEANFILES += *.h *.po\
125 125 $(SRCDIR)/*/*.msg\
126 126 $(SRCDIR)/*/*.properties\
127 127 $(SRCDIR)/*/*.exc\
128 128 $(SRCDIR)/*/*.edef\
129 129 $(SRCDIR)/*/*.trnk\
130 130 $(SRCDIR)/*/*.dtrnk
131 131
132 132 # note that the properties files are generated in ../libspcs/java
133 133
134 134 .SUFFIXES: .err .exc .properties .edef .msg .trnk .dtrnk
135 135
136 136 .err.msg:
137 137 $(ERRGEN) -m `basename $*` <$*.err >$*.msg
138 138
139 139 .err.edef:
140 140 $(ERRGEN) -c `basename $*` <$*.err >$*.edef
141 141
142 142 .err.trnk:
143 143 $(ERRGEN) -t `basename $*` <$*.err >$*.trnk
144 144
145 145 .err.dtrnk:
146 146 $(ERRGEN) -x `basename $*` <$*.err >$*.dtrnk
147 147
148 148 all: spcs_etext.h spcs_errors.h spcs_etrinkets.h spcs_dtrinkets.h $(LIB)
149 149
150 150 spcs_dtrinkets.h: $(ERRGEN) $(DTRNKS)
151 151 @echo $(COMMENT) > $@
152 152 cat $(DTRNKS) >>spcs_dtrinkets.h
↓ open down ↓ |
152 lines elided |
↑ open up ↑ |
153 153
154 154 spcs_etrinkets.h: $(ERRGEN) $(TRNKS)
155 155 @echo $(COMMENT) > $@
156 156 cat $(TRNKS) $(SRCDIR)/spcs_etrinkets.stub >> $@
157 157
158 158 spcs_etext.h: $(ERRGEN) $(MSGS)
159 159 @echo $(COMMENT) > $@
160 160 $(CAT) $(MSGS) $(SRCDIR)/spcs_etext.stub >> $@
161 161 $(SED) "s/ \"/ gettext(\"/" < $@ |\
162 162 sed "s/\",/\"),/" > temp
163 - xgettext -d unistat temp ; rm temp
163 + $(XGETTEXT) -d unistat temp ; rm temp
164 164
165 165 spcs_errors.h: $(ERRGEN) $(EDEFS)
166 166 @echo $(COMMENT) > $@
167 167 $(CAT) $(EDEFS) $(SRCDIR)/spcs_errors.stub >> $@
168 168
169 169 $(ERRGEN):
170 170 @cd $(ERRGEN_DIR); pwd; $(MAKE) install
171 171
172 172
173 173 .KEEP_STATE:
174 174
175 175 FRC:
176 176
177 177 lint: lintcheck $(LINTLIB)
178 178 lintinter: $(LINT_INTER)
179 179
180 180 # include library targets
181 181 include ../../Makefile.targ
182 182
183 183 objs/%.o pics/%.o: ../common/%.c
184 184 $(COMPILE.c) -o $@ $<
185 185 $(POST_PROCESS_O)
186 186
187 187 # install rule for lint library target
188 188 $(ROOTLINTDIR)/%: ../common/%
189 189 $(INS.file)
↓ open down ↓ |
16 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX