Print this page
11528 Makefile.noget can get gone
11529 Use -Wno-maybe-initialized
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/lib/efcode/Makefile.efcode
+++ new/usr/src/lib/efcode/Makefile.efcode
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
26 26 #
27 27 # Common build rules for efcode shared objects.
28 28 #
29 29 # For historical reasons, these shared objects aren't explicitly versioned, so
30 30 # turn off VERS and LIBLINKS (VERS must be cleared before the inclusion of
31 31 # Makefile.lib, and LIBLINKS must be cleared afterwards). Also, because of
32 32 # the weird alternate naming scheme, we must define our own symlink macros.
33 33 #
34 34
35 35 VERS =
36 36
37 37 include $(SRC)/lib/Makefile.lib
38 38
39 39 LIBS = $(DYNLIB)
40 40 LDLIBS += -lc
41 41 LIBLINKS =
42 42
↓ open down ↓ |
42 lines elided |
↑ open up ↑ |
43 43 MAPFILES =
44 44
45 45 CPPFLAGS += -DDEBUG -DFCODE_INTERNAL
46 46 CPPFLAGS += -I $(SRC)/lib/efcode/include -I $(ROOT)/usr/platform/sun4u/include
47 47 DYNFLAGS += -R\$$ORIGIN
48 48
49 49 CERRWARN += -_gcc=-Wno-unused-variable
50 50 CERRWARN += -_gcc=-Wno-unused-function
51 51 CERRWARN += -_gcc=-Wno-unused-value
52 52 CERRWARN += -_gcc=-Wno-parentheses
53 -CERRWARN += -_gcc=-Wno-uninitialized
53 +CERRWARN += $(CNOWARN_UNINIT)
54 54 CERRWARN += -_gcc=-Wno-type-limits
55 55
56 56 EFCODE64DIR = /usr/lib/efcode/$(MACH64)
57 57 ROOTLIBDIR = $(ROOT)/usr/lib/efcode
58 58 ROOTLIBDIR64 = $(ROOT)/usr/lib/efcode/$(MACH64)
59 59 ROOTSYMLINKS64 = $(SYMLINKS:%=$(ROOTLIBDIR64)/%)
60 60
61 61 #
62 62 # Since a number of efcode shared objects depend on fcode.so, fcdriver.so, and
63 63 # fcpackage.so, provide macros that expand to their full paths.
64 64 #
65 65 FCODE64 = $(ROOTLIBDIR64)/fcode.so
66 66 FCDRIVER64 = $(ROOTLIBDIR64)/fcdriver.so
67 67 FCPACKAGE64 = $(ROOTLIBDIR64)/fcpackage.so
68 68
69 69 .KEEP_STATE:
70 70
71 71 all: $(LIBS)
72 72
73 73 lint: lintcheck
74 74
75 75 $(ROOTSYMLINKS64): $(ROOTLIBDIR64)/$(DYNLIB)
76 76 -$(RM) $@; $(SYMLINK) $(DYNLIB) $@
77 77
78 78 include $(SRC)/lib/Makefile.targ
↓ open down ↓ |
15 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX