Print this page
11528 Makefile.noget can get gone
11529 Use -Wno-maybe-initialized
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/cmd/dfs.cmds/sharectl/Makefile.com
+++ new/usr/src/cmd/dfs.cmds/sharectl/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 #
22 22 # Copyright 2008 Sun Microsystems, Inc. All rights reserved.
23 23 # Use is subject to license terms.
24 24 #
25 25
26 26 include ../../../Makefile.cmd
27 27
28 28 COMMON = ..
29 29
30 30 PROG= sharectl
31 31
32 32 SHARECTL_MOD = sharectl
↓ open down ↓ |
32 lines elided |
↑ open up ↑ |
33 33
34 34 SHARECTL_SRC = $(SHARECTL_MOD:%=$(COMMON)/%.c) shareutil.c
35 35
36 36 SHARECTL_OBJ = $(SHARECTL_MOD:%=%.o) shareutil.o
37 37
38 38
39 39 MYCPPFLAGS = -I.. -I../../sharemgr
40 40 CPPFLAGS += $(MYCPPFLAGS)
41 41 LDLIBS += -lshare -lumem
42 42
43 -CERRWARN += -_gcc=-Wno-uninitialized
43 +CERRWARN += $(CNOWARN_UNINIT)
44 44
45 45 SRCS = $(SHARECTL_SRC)
46 46 OBJS = $(SHARECTL_OBJ)
47 47 MODS = $(SHARECTL_MOD)
48 48
49 49 CLOBBERFILES = $(MODS) $(POFILE) $(POFILES) shareutil.c
50 50
51 51 POFILES = $(SHARECTL_SRC:.c=.po)
52 52 POFILE = sharectl.po
53 53
54 54 all := TARGET= all
55 55 install := TARGET= install
56 56 clean := TARGET= clean
57 57 clobber := TARGET= clobber
58 58 lint := TARGET= lint
59 59 _msg:= TARGET= catalog
60 60
61 61 .KEEP_STATE:
62 62
63 63 all: $(MODS)
64 64
65 65 catalog: $(POFILE)
66 66
67 67 $(PROG): $(OBJS)
68 68 $(LINK.c) -o $@ $(OBJS) $(LDFLAGS) $(LDLIBS)
69 69 $(POST_PROCESS)
70 70
71 71 install: all $(ROOTUSRSBINPROG)
72 72
73 73 lint: $(SHARECTL_MOD).ln $(SHARECTL_SRC:.c=.ln)
74 74
75 75 clean:
76 76 $(RM) $(OBJS)
77 77
78 78 %.ln: FRC
79 79 $(LINT.c) $(SHARECTL_SRC) $(LDLIBS)
80 80
81 81 include ../../../Makefile.targ
82 82
83 83 $(POFILE): $(POFILES)
84 84 $(RM) $@; cat $(POFILES) > $@
85 85
86 86 %.o: $(COMMON)/%.c
87 87 $(COMPILE.c) -o $@ $<
88 88
89 89 shareutil.c: ../../sharemgr/shareutil.c
90 90 $(CP) -f ../../sharemgr/shareutil.c shareutil.c
91 91
92 92 FRC:
↓ open down ↓ |
39 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX