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