Print this page
10079 smatch Makefile changes for usr/src/lib
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/lib/gss_mechs/mech_dh/backend/Makefile.com
+++ new/usr/src/lib/gss_mechs/mech_dh/backend/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 #
27 28 # This make file will build mech_dh.so.1. This shared object
28 29 # contains all the functionality needed to support Diffie-Hellman GSS-API
29 30 # mechanism.
30 31 #
31 32
32 33 LIBRARY= mech_dh.a
33 34 VERS = .1
34 35
35 36 MECH = context.o context_establish.o cred.o crypto.o dhmech.o \
36 37 MICwrap.o name.o oid.o seq.o token.o support.o validate.o
37 38
38 39 DERIVED_OBJS = xdr_token.o
39 40
40 41 CRYPTO = md5.o
41 42
42 43 OBJECTS= $(MECH) $(CRYPTO) $(DERIVED_OBJS)
↓ open down ↓ |
8 lines elided |
↑ open up ↑ |
43 44
44 45 # include library definitions
45 46 include ../../../../Makefile.lib
46 47
47 48 CPPFLAGS += -I../mech -I../crypto -I$(SRC)/uts/common/gssapi/include
48 49
49 50 CERRWARN += -_gcc=-Wno-parentheses
50 51 CERRWARN += -_gcc=-Wno-unused-variable
51 52 CERRWARN += -_gcc=-Wno-uninitialized
52 53
54 +# needs work
55 +SMATCH=off
56 +
53 57 $(PICS) := CFLAGS += $(XFFLAG)
54 58 $(PICS) := CCFLAGS += $(XFFLAG)
55 59 $(PICS) := CFLAGS64 += $(XFFLAG)
56 60 $(PICS) := CCFLAGS64 += $(XFFLAG)
57 61
58 62 DYNFLAGS += $(ZIGNORE)
59 63
60 64 LIBS = $(DYNLIB)
61 65 LIBNAME = $(LIBRARY:%.a=%)
62 66
63 67 MAPFILES = ../mapfile-vers
64 68
65 69 LDLIBS += -lgss -lnsl -lc
66 70
67 71 RPCGEN += -C
68 72 SED = sed
69 73
70 74 .KEEP_STATE:
71 75
72 76 CSRCS= $(MECH:%.o=../mech/%.c) $(CRYPTO:%.o=../crypto/%.c)
73 77 SRCS= $(CSRCS)
74 78
75 79 ROOTLIBDIR = $(ROOT)/usr/lib/gss
76 80 ROOTLIBDIR64 = $(ROOT)/usr/lib/$(MACH64)/gss
77 81
78 82 #LINTFLAGS += -dirout=lint -errfmt=simple
79 83 #LINTFLAGS64 += -dirout=lint -errfmt=simple -errchk all
80 84 LINTOUT = lint.out
81 85 LINTSRC = $(LINTLIB:%.ln=%)
82 86 ROOTLINTDIR = $(ROOTLIBDIR)
83 87 #ROOTLINT = $(LINTSRC:%=$(ROOTLINTDIR)/%)
84 88
85 89 CLEANFILES += $(LINTOUT) $(LINTLIB)
86 90
87 91 lint: lintcheck
88 92
89 93 $(ROOTLIBDIR):
90 94 $(INS.dir)
91 95
92 96 $(ROOTLIBDIR64):
93 97 $(INS.dir)
94 98
95 99 $(OBJS): ../mech/dh_gssapi.h ../mech/token.h ../mech/oid.h
96 100
97 101
98 102 objs/%.o pics/%.o: ../crypto/%.c
99 103 $(COMPILE.c) -o $@ $<
100 104 $(POST_PROCESS_O)
101 105
102 106 objs/%.o pics/%.o: ../mech/%.c
103 107 $(COMPILE.c) -o $@ $<
104 108 $(POST_PROCESS_O)
105 109
106 110 objs/%.o pics/%.o: ../profile/%.c
107 111 $(COMPILE.c) -o $@ $<
108 112 $(POST_PROCESS_O)
109 113
110 114 # include library targets
111 115 include ../../../../Makefile.targ
↓ open down ↓ |
49 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX