Print this page
11528 Makefile.noget can get gone
11529 Use -Wno-maybe-initialized
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/cmd/msgfmt/Makefile
+++ new/usr/src/cmd/msgfmt/Makefile
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 #
22 22 # Copyright 2006 Sun Microsystems, Inc. All rights reserved.
23 23 # Use is subject to license terms.
24 24 #
25 25 # Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T
26 26 # All Rights Reserved
27 27 #
28 28 # Copyright 2017 Joyent, Inc.
29 29 #
30 30
31 31 # cmd/msgfmt/Makefile
32 32
33 33 include ../Makefile.cmd
34 34
35 35 XOBJS= xgettext.o
36 36
37 37 LXOBJS= xgettext.lx.o
38 38
39 39 GOBJS= gnu_msgfmt.o gnu_handle.o gnu_lex.o gnu_hash.o gnu_check.o
40 40
41 41 YOBJS= gnu_po.o
42 42
43 43 BOBJS= gnu_msgs.o
44 44
45 45 LOBJS= gnu_msgs_rev.o
46 46
47 47 SOBJS= msgfmt.o check_header.o
48 48
49 49 COBJS= option.o util.o
50 50
51 51 BINPROG= msgfmt xgettext
52 52 LIBPROG= gmsgfmt
53 53 PROG= $(BINPROG) $(LIBPROG)
54 54
55 55 YFLAGS += -d
56 56 LINTFLAGS += -um
57 57
58 58 POFILE= msgfmt_all.po
↓ open down ↓ |
58 lines elided |
↑ open up ↑ |
59 59 POFILES= $(SOBJS:%.o=%.po) $(GOBJS:%.o=%.po) $(COBJS:%.o=%.po) \
60 60 $(BOBJS:%.o=%.po) $(YOBJS:%.o=%.po)
61 61
62 62 CLOBBERFILES += gmsgfmt_rev
63 63
64 64 ROOTBINPROG= $(BINPROG:%=$(ROOTBIN)/%)
65 65 ROOTLIBPROG= $(LIBPROG:%=$(ROOTLIB)/%)
66 66
67 67 CERRWARN += -_gcc=-Wno-parentheses
68 68 CERRWARN += -_gcc=-Wno-unused-label
69 -CERRWARN += -_gcc=-Wno-uninitialized
69 +CERRWARN += $(CNOWARN_UNINIT)
70 70 CERRWARN += -_gcc=-Wno-unused-variable
71 71
72 72 .KEEP_STATE:
73 73
74 74 .PARALLEL: $(SOBJS) $(GOBJS) $(YOBJS) $(COBJS) $(BOBJS) $(LOBJS) \
75 75 $(XOBJS) $(LXOBJS)
76 76
77 77 all: $(PROG) gmsgfmt_rev
78 78
79 79 msgfmt: $(SOBJS) $(COBJS)
80 80 $(LINK.c) $(SOBJS) $(COBJS) -o $@ $(LDLIBS)
81 81 $(POST_PROCESS)
82 82
83 83 gmsgfmt: $(GOBJS) $(YOBJS) $(BOBJS) $(COBJS)
84 84 $(LINK.c) $(GOBJS) $(YOBJS) $(BOBJS) $(COBJS) -o $@ $(LDLIBS)
85 85 $(POST_PROCESS)
86 86
87 87 gmsgfmt_rev: $(GOBJS) $(YOBJS) $(LOBJS) $(COBJS)
88 88 $(LINK.c) $(GOBJS) $(YOBJS) $(LOBJS) $(COBJS) -o $@ $(LDLIBS)
89 89 $(POST_PROCESS)
90 90
91 91 xgettext: $(XOBJS) $(LXOBJS)
92 92 $(LINK.c) $(XOBJS) $(LXOBJS) -o $@ $(LDLIBS)
93 93 $(POST_PROCESS)
94 94
95 95 $(POFILES): y.tab.h
96 96
97 97 $(POFILE): $(POFILES)
98 98 $(RM) $@
99 99 cat $(POFILES) > $@
100 100
101 101 install: all $(ROOTBINPROG) $(ROOTLIBPROG)
102 102
103 103 clean:
104 104 $(RM) $(SOBJS) $(GOBJS) $(YOBJS) $(COBJS) \
105 105 $(XOBJS) $(LXOBJS) $(BOBJS) $(LOBJS) \
106 106 $(POFILE) $(POFILES) gnu_po.c y.tab.h xgettext.lx.c
107 107
108 108 lint: gnu_po.c y.tab.h
109 109 $(LINT.c) $(SOBJS:%.o=%.c) $(COBJS:%.o=%.c) $(LDLIBS)
110 110 $(LINT.c) $(GOBJS:%.o=%.c) $(BOBJS:%.o=%.c) $(COBJS:%.o=%.c) $(LDLIBS)
111 111 $(LINT.c) $(GOBJS:%.o=%.c) $(LOBJS:%.o=%.c) $(COBJS:%.o=%.c) $(LDLIBS)
112 112 $(LINT.c) $(XOBJS:%.o=%.c) $(LDLIBS)
113 113
114 114 gnu_po.c + y.tab.h: gnu_po.y
115 115 $(RM) gnu_po.c y.tab.h
116 116 $(YACC.y) gnu_po.y
117 117 mv y.tab.c gnu_po.c
118 118
119 119 gnu_lex.o: y.tab.h
120 120
121 121 include ../Makefile.targ
↓ open down ↓ |
42 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX