Print this page
11528 Makefile.noget can get gone
11529 Use -Wno-maybe-initialized
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/lib/cfgadm_plugins/fp/Makefile.com
+++ new/usr/src/lib/cfgadm_plugins/fp/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 2010 Sun Microsystems, Inc. All rights reserved.
23 23 # Use is subject to license terms.
24 24 #
25 25 # Copyright (c) 2018, Joyent, Inc.
26 26
27 27 LIBRARY= fp.a
28 28 VERS= .1
29 29
30 30 OBJECTS = cfga_fp.o cfga_rcm.o cfga_cs.o cfga_utils.o
31 31 OBJECTS += cfga_cvt.o cfga_list.o cfga_rep.o
32 32
33 33 # include library definitions
34 34 include ../../../Makefile.lib
35 35
36 36 SRCDIR = ../common
37 37 ROOTLIBDIR= $(ROOT)/usr/lib/cfgadm
38 38 ROOTLIBDIR64= $(ROOTLIBDIR)/$(MACH64)
39 39
↓ open down ↓ |
39 lines elided |
↑ open up ↑ |
40 40 LIBS= $(DYNLIB)
41 41
42 42 LINTFLAGS += -DDEBUG
43 43 LINTFLAGS64 += -DDEBUG
44 44
45 45 CFLAGS += $(CCVERBOSE)
46 46 CFLAGS64 += $(CCVERBOSE)
47 47
48 48 CERRWARN += -_gcc=-Wno-parentheses
49 49 CERRWARN += -_gcc=-Wno-char-subscripts
50 -CERRWARN += -_gcc=-Wno-uninitialized
50 +CERRWARN += $(CNOWARN_UNINIT)
51 51 CERRWARN += -_gcc=-Wno-switch
52 52 CERRWARN += -_gcc=-Wno-address
53 53
54 54 # not linted
55 55 SMATCH=off
56 56
57 57 CPPFLAGS += -D_POSIX_PTHREAD_SEMANTICS
58 58
59 59 LINTFLAGS += -erroff=E_SEC_SPRINTF_UNBOUNDED_COPY
60 60 LINTFLAGS += -erroff=E_FUNC_RET_MAYBE_IGNORED2
61 61 LINTFLAGS += -erroff=E_FUNC_RET_ALWAYS_IGNOR2
62 62 LINTFLAGS += -erroff=E_BAD_FORMAT_ARG_TYPE2
63 63 LINTFLAGS += -erroff=E_SEC_CREAT_WITHOUT_MODE
64 64 LINTFLAGS64 += $(LINTFLAGS)
65 65
66 66 LDLIBS += -lc -ldevice -ldevinfo -lrcm
67 67 LDLIBS += -lHBAAPI -lgen
68 68
69 69 MANIFEST= devices-fc-fabric.xml
70 70 ROOTMANIFESTDIR= $(ROOT)/lib/svc/manifest/system/device
71 71 ROOTMANIFEST= $(MANIFEST:%=$(ROOTMANIFESTDIR)/%)
72 72 $(ROOTMANIFEST) := FILEMODE= 444
73 73
74 74 SVCMETHOD= fc-fabric
75 75 ROOTSVCMETHODDIR= $(ROOT)/lib/svc/method
76 76 ROOTSVCMETHOD= $(SVCMETHOD:%=$(ROOTSVCMETHODDIR)/%)
77 77 $(ROOTSVCMETHOD):= FILEMODE= 555
78 78
79 79 .KEEP_STATE:
80 80
81 81 all: $(LIBS)
82 82
83 83 lint: lintcheck
84 84
85 85 # Install rules
86 86
87 87 $(ROOTLIBDIR)/%: % $(ROOTLIBDIR)
88 88 $(INS.file)
89 89
90 90 $(ROOTLIBDIR64)/%: % $(ROOTLIBDIR64)
91 91 $(INS.file)
92 92
93 93 $(ROOTLIBDIR) $(ROOTLIBDIR64):
94 94 $(INS.dir)
95 95
96 96 $(ROOTMANIFESTDIR)/%: ../common/% $(ROOTMANIFESTDIR)
97 97 $(INS.file)
98 98
99 99 $(ROOTSVCMETHODDIR)/%: ../common/% $(ROOTSVCMETHODDIR)
100 100 $(INS.file)
101 101
102 102 $(ROOTSVCMETHODDIR) $(ROOTMANIFESTDIR):
103 103 $(INS.dir)
104 104
105 105 # include library targets
106 106 include ../../../Makefile.targ
107 107
108 108 objs/%.o pics/%.o: ../common/%.c
109 109 $(COMPILE.c) -o $@ $<
110 110 $(POST_PROCESS_O)
↓ open down ↓ |
50 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX