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