Print this page
10079 smatch Makefile changes for usr/src/lib
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/lib/krb5/plugins/kdb/db2/libdb2/Makefile.com
+++ new/usr/src/lib/krb5/plugins/kdb/db2/libdb2/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 2007 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= libdb2.a
27 28 VERS= .1
28 29
29 30 # btree
30 31 BTREE_OBJS= \
31 32 bt_close.o \
32 33 bt_conv.o \
33 34 bt_debug.o \
34 35 bt_delete.o \
35 36 bt_get.o \
36 37 bt_open.o \
37 38 bt_overflow.o \
38 39 bt_page.o \
39 40 bt_put.o \
40 41 bt_search.o \
41 42 bt_seq.o \
42 43 bt_split.o \
43 44 bt_utils.o
44 45
45 46 # db
46 47 DB_OBJS= db.o
47 48
48 49 # hash
49 50 HASH_OBJS= \
50 51 hash.o \
51 52 hash_bigkey.o \
52 53 hash_func.o \
53 54 hash_log2.o \
54 55 hash_page.o \
55 56 hsearch.o \
56 57 dbm.o
57 58
58 59 # mpool
59 60 MPOOL_OBJS= mpool.o
60 61
61 62 # recno
62 63 RECNO_OBJS= \
63 64 rec_close.o \
64 65 rec_delete.o \
65 66 rec_get.o \
66 67 rec_open.o \
67 68 rec_put.o \
68 69 rec_search.o \
69 70 rec_seq.o \
70 71 rec_utils.o
71 72
72 73 OBJECTS= \
73 74 $(BTREE_OBJS) $(DB_OBJS) $(HASH_OBJS) $(MPOOL_OBJS) $(RECNO_OBJS)
74 75
75 76 # include library definitions
76 77 include $(SRC)/lib/krb5/Makefile.lib
77 78
78 79 SRCS= $(BTREE_OBJS:%.o=../btree/%.c) \
79 80 $(DB_OBJS:%.o=../db/%.c) \
80 81 $(HASH_OBJS:%.o=../hash/%.c) \
81 82 $(MPOOL_OBJS:%.o=../mpool/%.c) \
82 83 $(RECNO_OBJS:%.o=../recno/%.c)
83 84
84 85 LIBS= $(DYNLIB)
85 86
86 87 include $(SRC)/lib/gss_mechs/mech_krb5/Makefile.mech_krb5
87 88
88 89 POFILE = $(LIBRARY:%.a=%.po)
89 90 POFILES = generic.po
90 91
91 92 #override liblink
92 93 INS.liblink= -$(RM) $@; $(SYMLINK) $(LIBLINKS)$(VERS) $@
93 94
94 95 CPPFLAGS += -DHAVE_CONFIG_H \
↓ open down ↓ |
60 lines elided |
↑ open up ↑ |
95 96 -I$(SRC)/lib/krb5/plugins/kdb/db2/libdb2/mpool \
96 97 -I$(SRC)/lib/krb5/plugins/kdb/db2/libdb2/db \
97 98 -I$(SRC)/lib/krb5/plugins/kdb/db2/libdb2/hash \
98 99 -I$(SRC)/lib/krb5/plugins/kdb/db2/libdb2/btree \
99 100 -I$(SRC)/lib/krb5/plugins/kdb/db2/libdb2/recno \
100 101 -I$(SRC)/lib/krb5/plugins/kdb/db2/libdb2/include \
101 102 -I$(SRC)/lib/gss_mechs/mech_krb5/include #for db-ndbm.h
102 103
103 104 CFLAGS += $(CCVERBOSE) -I..
104 105 CERRWARN += -_gcc=-Wno-uninitialized
106 +
107 +# not linted
108 +SMATCH=off
109 +
105 110 LDLIBS += -lc
106 111
107 112 # Identify that this library is an interposer (on dbm_ routines from libc.so.1).
108 113 # This identification insures runtime symbol lookup resolves to this library
109 114 # (before libc.so.1) regardless of dependency link order.
110 115 DYNFLAGS += $(ZINTERPOSE)
111 116
112 117 .KEEP_STATE:
113 118
114 119 all: $(LIBS)
115 120
116 121 lint: lintcheck
117 122
118 123 # include library targets
119 124 include $(SRC)/lib/krb5/Makefile.targ
120 125
121 126 pics/%.o: ../btree/%.c
122 127 $(COMPILE.c) -o $@ $<
123 128 $(POST_PROCESS_O)
124 129
125 130 pics/%.o: ../db/%.c
126 131 $(COMPILE.c) -o $@ $<
127 132 $(POST_PROCESS_O)
128 133
129 134 pics/%.o: ../hash/%.c
130 135 $(COMPILE.c) -o $@ $<
131 136 $(POST_PROCESS_O)
132 137
133 138 pics/%.o: ../mpool/%.c
134 139 $(COMPILE.c) -o $@ $<
135 140 $(POST_PROCESS_O)
136 141
137 142 pics/%.o: ../recno/%.c
138 143 $(COMPILE.c) -o $@ $<
139 144 $(POST_PROCESS_O)
140 145
141 146 FRC:
142 147
143 148 generic.po: FRC
144 149 $(RM) messages.po
145 150 $(XGETTEXT) $(XGETFLAGS) `$(GREP) -l gettext ../hash/*.[ch]`
146 151 $(SED) "/^domain/d" messages.po > $@
147 152 $(RM) messages.po
↓ open down ↓ |
33 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX