Print this page
10079 smatch Makefile changes for usr/src/lib
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/lib/libldap5/Makefile.com
+++ new/usr/src/lib/libldap5/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.
↓ open down ↓ |
14 lines elided |
↑ open up ↑ |
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 2008 Sun Microsystems, Inc. All rights reserved.
23 23 # Use is subject to license terms.
24 24 #
25 +# Copyright (c) 2018, Joyent, Inc.
25 26
26 27 LIBRARY= libldap.a
27 28 VERS= .5
28 29
29 30 # Definition of all the objects macros
30 31 # The LDAP specific objects
31 32
32 33 BEROBJS= bprint.o decode.o encode.o io.o
33 34
34 35 LDAPOBJS= abandon.o add.o bind.o cache.o charray.o \
35 36 charset.o compare.o compat.o control.o countvalues.o \
36 37 delete.o disptmpl.o dsparse.o error.o extendop.o free.o freevalues.o \
37 38 friendly.o getattr.o getdn.o getdxbyname.o getentry.o \
38 39 getfilter.o getoption.o getvalues.o memcache.o message.o \
39 40 modify.o open.o os-ip.o proxyauthctrl.o psearch.o referral.o \
40 41 rename.o request.o reslist.o result.o saslbind.o sasl.o \
41 42 sbind.o search.o setoption.o sort.o sortctrl.o srchpref.o \
42 43 tmplout.o ufn.o unbind.o unescape.o url.o ldaputf8.o vlistctrl.o \
43 44 cram_md5.o secutil.o spagectrl.o digest_md5.o
44 45
45 46 SSLDAPOBJS= clientinit.o ldapsinit.o errormap.o
46 47
47 48 PRLDAPOBJS= ldappr-dns.o ldappr-error.o ldappr-public.o \
48 49 ldappr-io.o ldappr-threads.o
49 50
50 51 UTILOBJS= log.o line64.o
51 52
52 53 # Grouping it all together
53 54 OBJECTS= $(BEROBJS) $(LDAPOBJS) $(SSLDAPOBJS) $(PRLDAPOBJS) \
54 55 $(UTILOBJS)
55 56
56 57 # include library definitions
57 58 include ../../Makefile.lib
58 59
59 60 NSS_LIBS= -lnspr4 -lplc4 -lnss3 -lssl3
60 61 NSS_HDRS= $(ADJUNCT_PROTO)/usr/include/mps
61 62 NSS_LDPATH= /usr/lib/mps
62 63 NSS_LDPATH64= $(NSS_LDPATH)/64
63 64
64 65
65 66 LDAP_FLAGS= -DSVR4 -DSYSV -D__svr4 -D__svr4__ -DSOLARIS \
66 67 -D_SOLARIS_SDK \
67 68 -DUSE_WAITPID -DNEEDPROTOS \
68 69 -DNET_SSL -DNO_LIBLCACHE -DLDAP_REFERRALS \
69 70 -DNS_DOMESTIC -DLDAP_SSLIO_HOOKS -DSTR_TRANSLATION \
70 71 -DLDAP_SASLIO_HOOKS
71 72
72 73
73 74 # Include directories for all files
74 75 COM_INC= -I$(SRC)/lib/libldap5/include/ldap \
75 76 -I$(NSS_HDRS)
76 77
77 78 SRCS= $(BEROBJS:%.o=../sources/ldap/ber/%.c) \
78 79 $(LDAPOBJS:%.o=../sources/ldap/common/%.c) \
79 80 $(SSLDAPOBJS:%.o=../sources/ldap/ssldap/%.c) \
80 81 $(PRLDAPOBJS:%.o=../sources/ldap/prldap/%.c) \
81 82 $(UTILOBJS:%.o=../sources/ldap/util/%.c)
82 83
83 84 LIBS = $(DYNLIB) $(LINTLIB)
84 85 DYNFLAGS += $(ZNODELETE)
85 86
86 87 CPPFLAGS= $(COM_INC) $(CPPFLAGS.master)
87 88
88 89 # definitions for lint
89 90
90 91 $(LINTLIB):= SRCS=../sources/ldap/common/llib-lldap
91 92 $(LINTLIB):= LINTFLAGS=-nvx
92 93 $(LINTLIB):= TARGET_ARCH=
93 94
94 95 LINTOUT= lint.out
95 96
96 97 LINTSRC= $(LINTLIB:%.ln=%)
97 98 ROOTLINTDIR= $(ROOTLIBDIR)
98 99 ROOTLINT= $(LINTSRC:%=$(ROOTLINTDIR)/%)
99 100
100 101
101 102 CLEANFILES += $(LINTOUT) $(LINTLIB)
102 103
103 104 # Local Libldap definitions
104 105 LOCFLAGS += $(XSTRCONST) -D_REENTRANT
105 106
106 107 # Following values defined in Makefile.master are overwritten here.
107 108 #sparc_C_PICFLAGS = $(sparc_C_BIGPICFLAGS)
108 109 sparcv9_C_PICFLAGS = $(sparcv9_C_BIGPICFLAGS)
109 110 #i386_C_PICFLAGS = $(i386_C_BIGPICFLAGS)
110 111 #amd64_C_PICFLAGS = $(amd64_C_BIGPICFLAGS)
111 112
112 113 CFLAGS += $(CCVERBOSE) $(LOCFLAGS)
↓ open down ↓ |
78 lines elided |
↑ open up ↑ |
113 114 CFLAGS64 += $(LOCFLAGS)
114 115
115 116 CERRWARN += -_gcc=-Wno-parentheses
116 117 CERRWARN += -_gcc=-Wno-uninitialized
117 118 CERRWARN += -_gcc=-Wno-type-limits
118 119 CERRWARN += -_gcc=-Wno-unused-function
119 120 CERRWARN += -_gcc=-Wno-unused-variable
120 121 CERRWARN += -_gcc=-Wno-unused-value
121 122 CERRWARN += -_gcc=-Wno-address
122 123
124 +# not linted
125 +SMATCH=off
126 +
123 127 LDLIBS += -lsasl -lsocket -lnsl -lmd -lc
124 128
125 129 .KEEP_STATE:
126 130
127 131 # include library targets
128 132 include ../../Makefile.targ
129 133
130 134 pics/%.o: ../sources/ldap/ber/%.c
131 135 $(COMPILE.c) $(LDAP_FLAGS) $(COM_INC) -o $@ $<
132 136 $(POST_PROCESS_O)
133 137
134 138 pics/%.o: ../sources/ldap/common/%.c
135 139 $(COMPILE.c) $(LDAP_FLAGS) $(COM_INC) -o $@ $<
136 140 $(POST_PROCESS_O)
137 141
138 142 pics/%.o: ../sources/ldap/ssldap/%.c
139 143 $(COMPILE.c) $(LDAP_FLAGS) $(COM_INC) -w -o $@ $<
140 144 $(POST_PROCESS_O)
141 145
142 146 pics/%.o: ../sources/ldap/prldap/%.c
143 147 $(COMPILE.c) $(LDAP_FLAGS) $(COM_INC) -w -o $@ $<
144 148 $(POST_PROCESS_O)
145 149
146 150 pics/%.o: ../sources/ldap/util/%.c
147 151 $(COMPILE.c) $(LDAP_FLAGS) $(COM_INC) -w -o $@ $<
148 152 $(POST_PROCESS_O)
149 153
150 154 # install rule for lint library target
151 155 $(ROOTLINTDIR)/%: ../sources/ldap/common/%
152 156 $(INS.file)
↓ open down ↓ |
20 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX