Print this page
11528 Makefile.noget can get gone
11529 Use -Wno-maybe-initialized
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/lib/libbsm/Makefile.com
+++ new/usr/src/lib/libbsm/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 (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved.
23 23 #
24 24 # Copyright (c) 2018, Joyent, Inc.
25 25
26 26 LIBRARY = libbsm.a
27 27 VERS = .1
28 28 OBJECTS= adr.o \
29 29 adrf.o \
30 30 adrm.o \
31 31 adt.o \
32 32 adt_token.o \
33 33 adt_xlate.o \
34 34 au_open.o \
35 35 au_preselect.o \
36 36 au_to.o \
37 37 au_usermask.o \
38 38 audit_allocate.o \
39 39 audit_class.o \
40 40 audit_cron.o \
41 41 audit_crontab.o \
42 42 audit_at.o \
43 43 audit_event.o \
44 44 audit_ftpd.o \
45 45 audit_halt.o \
46 46 audit_kadmind.o \
47 47 audit_krb5kdc.o \
48 48 audit_mountd.o \
49 49 audit_plugin.o \
50 50 audit_reboot.o \
51 51 audit_rexd.o \
52 52 audit_rexecd.o \
53 53 audit_rshd.o \
54 54 audit_scf.o \
55 55 audit_settid.o \
56 56 audit_shutdown.o \
57 57 bsm.o \
58 58 generic.o \
59 59 getauditflags.o \
60 60 getdaent.o \
61 61 getdevicerange.o \
62 62 getdment.o \
63 63 getdadefs.o \
64 64 devalloc.o \
65 65 getfaudflgs.o
66 66
67 67 #
68 68 # Include common library definitions.
69 69 #
70 70 include ../../Makefile.lib
71 71
72 72 # install this library in the root filesystem
73 73 include ../../Makefile.rootfs
74 74
75 75 SRCDIR = ../common
76 76
77 77 LIBS = $(DYNLIB) $(LINTLIB)
78 78
79 79 LINTSRC= $(LINTLIB:%.ln=%)
↓ open down ↓ |
79 lines elided |
↑ open up ↑ |
80 80 $(LINTLIB) := SRCS = ../common/$(LINTSRC)
81 81 ROOTLINTDIR= $(ROOTLIBDIR)
82 82 ROOTLINT= $(LINTSRC:%=$(ROOTLINTDIR)/%)
83 83
84 84 CLEANFILES += $(LINTOUT) $(LINTLIB)
85 85
86 86 CFLAGS += $(CCVERBOSE)
87 87 LDLIBS += -lsocket -lnsl -lmd -lc -lsecdb -ltsol -linetutil -lscf
88 88
89 89 CERRWARN += -_gcc=-Wno-parentheses
90 -CERRWARN += -_gcc=-Wno-uninitialized
90 +CERRWARN += $(CNOWARN_UNINIT)
91 91
92 92 # not linted
93 93 SMATCH=off
94 94
95 95 COMDIR= ../common
96 96 AUDITD= $(SRC)/cmd/auditd
97 97
98 98 CPPFLAGS += -I$(COMDIR) -I$(AUDITD)
99 99 CPPFLAGS += -D_REENTRANT
100 100
101 101 #
102 102 # message catalogue file
103 103 #
104 104 TEXT_DOMAIN= SUNW_OST_OSLIB
105 105
106 106 .KEEP_STATE:
107 107
108 108 all: $(LIBS)
109 109
110 110 lint: lintcheck
111 111
112 112 # Include library targets
113 113 #
114 114 include ../../Makefile.targ
115 115
116 116 pics/%.o: ../common/%.c
117 117 $(COMPILE.c) -o $@ $<
118 118 $(POST_PROCESS_O)
119 119
120 120 # install rule for lint library target
121 121 $(ROOTLINTDIR)/%: ../common/%
122 122 $(INS.file)
↓ open down ↓ |
22 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX