Print this page
11528 Makefile.noget can get gone
11529 Use -Wno-maybe-initialized
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/lib/libndmp/Makefile.com
+++ new/usr/src/lib/libndmp/Makefile.com
1 1 #
2 2 # Copyright 2008 Sun Microsystems, Inc. All rights reserved.
3 3 # Use is subject to license terms.
4 4 #
5 5
6 6 #
7 7 # BSD 3 Clause License
8 8 #
9 9 # Copyright (c) 2007, The Storage Networking Industry Association.
10 10 #
11 11 # Redistribution and use in source and binary forms, with or without
12 12 # modification, are permitted provided that the following conditions
13 13 # are met:
14 14 # - Redistributions of source code must retain the above copyright
15 15 # notice, this list of conditions and the following disclaimer.
16 16 #
17 17 # - Redistributions in binary form must reproduce the above copyright
18 18 # notice, this list of conditions and the following disclaimer in
19 19 # the documentation and/or other materials provided with the
20 20 # distribution.
21 21 #
22 22 # - Neither the name of The Storage Networking Industry Association (SNIA)
23 23 # nor the names of its contributors may be used to endorse or promote
24 24 # products derived from this software without specific prior written
25 25 # permission.
26 26 #
27 27 # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
28 28 # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
29 29 # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
30 30 # ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
31 31 # LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
32 32 # CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
33 33 # SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
34 34 # INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
35 35 # CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
36 36 # ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
37 37 # POSSIBILITY OF SUCH DAMAGE.
38 38 #
39 39 LIBRARY= libndmp.a
40 40 VERS= .1
41 41 OBJECTS= libndmp.o libndmp_error.o libndmp_door_data.o libndmp_prop.o libndmp_base64.o
42 42
43 43 include ../../Makefile.lib
44 44
45 45 SRCDIR = ../common
↓ open down ↓ |
45 lines elided |
↑ open up ↑ |
46 46 INCS += -I$(SRCDIR)
47 47 INCS += -I$(SRC)/cmd/ndmpd/include
48 48
49 49 CSTD= $(CSTD_GNU99)
50 50 C99LMODE= -Xc99=%all
51 51 LIBS= $(DYNLIB) $(LINTLIB)
52 52 LDLIBS += -lc -lscf
53 53 CPPFLAGS += $(INCS) -D_REENTRANT
54 54
55 55 CERRWARN += -_gcc=-Wno-char-subscripts
56 -CERRWARN += -_gcc=-Wno-uninitialized
56 +CERRWARN += $(CNOWARN_UNINIT)
57 57
58 58 SRCS= $(OBJECTS:%.o=$(SRCDIR)/%.c)
59 59 $(LINTLIB) := SRCS= $(SRCDIR)/$(LINTSRC)
60 60
61 61 .KEEP_STATE:
62 62
63 63 all: $(LIBS)
64 64
65 65 lint: lintcheck
66 66
67 67 include ../../Makefile.targ
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX