Print this page
11528 Makefile.noget can get gone
11529 Use -Wno-maybe-initialized
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/lib/pkcs11/pkcs11_tpm/Makefile.com
+++ new/usr/src/lib/pkcs11/pkcs11_tpm/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 # Copyright 2009 Sun Microsystems, Inc. All rights reserved.
22 22 # Use is subject to license terms.
23 23 #
24 24 # Copyright 2018 Jason King
25 25 #
26 26 # Copyright (c) 2018, Joyent, Inc.
27 27
28 28 LIBRARY = pkcs11_tpm.a
29 29 VERS = .1
30 30
31 31 RSA_DIR = $(SRC)/common/crypto/rsa
32 32 RSA_FLAGS = -I$(RSA_DIR)
33 33
34 34 BIGNUM_DIR = $(SRC)/common/bignum
35 35 BIGNUM_FLAGS = -I$(BIGNUM_DIR)
36 36
37 37 PADDING_DIR = $(SRC)/common/crypto/padding
38 38 PADDING_FLAGS = -I$(PADDING_DIR)
39 39
40 40 SOFTCRYPTOFLAGS = $(RSA_FLAGS) $(PADDING_FLAGS) $(BIGNUM_FLAGS)
41 41
42 42 OBJECTS= api_interface.o \
43 43 apiutil.o \
44 44 asn1.o \
45 45 cert.o \
46 46 data_obj.o \
47 47 decr_mgr.o \
48 48 dig_mgr.o \
49 49 encr_mgr.o \
50 50 globals.o \
51 51 hwf_obj.o \
52 52 key.o \
53 53 key_mgr.o \
54 54 loadsave.o \
55 55 log.o \
56 56 mech_md5.o \
57 57 mech_rsa.o \
58 58 mech_sha.o \
59 59 new_host.o \
60 60 obj_mgr.o \
61 61 object.o \
62 62 sess_mgr.o \
63 63 sign_mgr.o \
64 64 template.o \
65 65 tpm_specific.o \
66 66 utility.o \
67 67 verify_mgr.o
68 68
69 69
70 70 include $(SRC)/lib/Makefile.lib
71 71
72 72 SRCDIR= ../common
73 73
74 74 SRCS= $(OBJECTS:%.o=$(SRCDIR)/%.c)
75 75
76 76 # set signing mode
77 77 POST_PROCESS_SO += ; $(ELFSIGN_CRYPTO)
78 78
79 79 ROOTLIBDIR=$(ROOT)/usr/lib/security
80 80 ROOTLIBDIR64=$(ROOT)/usr/lib/security/$(MACH64)
81 81
82 82 LIBS=$(DYNLIB) $(DYNLIB64)
83 83
84 84 TSSROOT=$(ADJUNCT_PROTO)
85 85 TSPILIBDIR=$(TSSROOT)/usr/lib
86 86 TSPIINCDIR=$(TSSROOT)/usr/include
87 87 TSSLIB=-L$(TSPILIBDIR)
↓ open down ↓ |
87 lines elided |
↑ open up ↑ |
88 88 TSSLIB64=-L$(TSPILIBDIR)/$(MACH64)
89 89 TSSINC=-I$(TSPIINCDIR)
90 90
91 91 LDLIBS += $(TSSLIB) -L$(ADJUNCT_PROTO)/lib -lc -luuid -lmd -ltspi -lsoftcrypto
92 92 CPPFLAGS += -xCC -D_POSIX_PTHREAD_SEMANTICS $(TSSINC) $(SOFTCRYPTOFLAGS)
93 93 CPPFLAGS64 += $(CPPFLAGS)
94 94 CSTD= $(CSTD_GNU99)
95 95
96 96 CERRWARN += -_gcc=-Wno-parentheses
97 97 CERRWARN += -_gcc=-Wno-unused-label
98 -CERRWARN += -_gcc=-Wno-uninitialized
98 +CERRWARN += $(CNOWARN_UNINIT)
99 99
100 100 # not linted
101 101 SMATCH=off
102 102
103 103 LINTSRC= $(OBJECTS:%.o=$(SRCDIR)/%.c)
104 104
105 105 $(LINTLIB):= SRCS = $(SRCDIR)/$(LINTSRC)
106 106 LINTSRC= $(SRCS)
107 107
108 108 CLOBBERFILES += C.ln
109 109
110 110 .KEEP_STATE:
111 111
112 112 all: $(LIBS)
113 113
114 114 lint: $$(LINTSRC)
115 115 $(LINT.c) $(LINTCHECKFLAGS) $(LINTSRC) $(LDLIBS)
116 116
117 117 pics/%.o: $(SRCDIR)/%.c
118 118 $(COMPILE.c) -o $@ $<
119 119 $(POST_PROCESS_O)
120 120
121 121 include $(SRC)/lib/Makefile.targ
↓ open down ↓ |
13 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX