Print this page
10079 smatch Makefile changes for usr/src/lib
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/lib/pkcs11/libsoftcrypto/amd64/Makefile
+++ new/usr/src/lib/pkcs11/libsoftcrypto/amd64/Makefile
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
↓ open down ↓ |
16 lines elided |
↑ open up ↑ |
17 17 # information: Portions Copyright [yyyy] [name of copyright owner]
18 18 #
19 19 # CDDL HEADER END
20 20 #
21 21
22 22 #
23 23 # Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved.
24 24 # Copyright 2017 Jason King
25 25 # Copyright (c) 2018, Joyent, Inc.
26 26 #
27 +# Copyright (c) 2018, Joyent, Inc.
27 28
28 29 LIBRARY = libsoftcrypto.a
29 30 VERS = .1
30 31
31 32 include ../Makefile.com
32 33
33 34 AES_PSM_OBJS = aes_amd64.o aes_intel.o aeskey.o
34 35 ARCFOUR_PSM_OBJS = arcfour-x86_64.o
35 36 BIGNUM_PSM_OBJS = bignum_amd64.o bignum_amd64_asm.o
36 37 MODES_PSM_OBJS = gcm_intel.o
37 38
38 39 include $(SRC)/lib/Makefile.lib
39 40 include $(SRC)/lib/Makefile.lib.64
40 41
41 42 CERRWARN += -_gcc=-Wno-type-limits
42 43 CERRWARN += -_gcc=-Wno-parentheses
43 44 CERRWARN += -_gcc=-Wno-uninitialized
44 45
46 +# not linted
47 +SMATCH=off
48 +
45 49 AES_PSM_SRC = $(AES_DIR)/$(MACH64)/aes_amd64.s \
46 50 $(AES_DIR)/$(MACH64)/aes_intel.s \
47 51 $(AES_DIR)/$(MACH64)/aeskey.c
48 52 ARCFOUR_PSM_SRC = arcfour-x86_64.s
49 53 BIGNUM_PSM_SRC = $(BIGNUM_DIR)/$(MACH64)/bignum_amd64.c \
50 54 $(BIGNUM_DIR)/$(MACH64)/bignum_amd64_asm.s
51 55
52 56 MODES_PSM_SRC = $(MODES_DIR)/$(MACH64)/gcm_intel.s
53 57
54 58 # Sources need to be redefined after Makefile.lib inclusion.
55 59 SRCS = $(AES_SRC) $(ARCFOUR_SRC) $(BIGNUM_SRC) $(BLOWFISH_SRC) \
56 60 $(DES_SRC) $(MODES_SRC) $(DH_SRC) $(DSA_SRC) $(RSA_SRC) \
57 61 $(PAD_SRC)
58 62
59 63 SRCDIR = $(SRC)/lib/pkcs11/libsoftcrypto/common
60 64
61 65 LIBS = $(DYNLIB) $(LINTLIB)
62 66 MAPFILEDIR = ../common
63 67
64 68 CFLAGS += -xO4 -xcrossfile
65 69 CPPFLAGS += -I$(CRYPTODIR) -I$(UTSDIR) -D_POSIX_PTHREAD_SEMANTICS
66 70 ASFLAGS += $(AS_PICFLAGS) -P -D__STDC__ -D_ASM
67 71 BIGNUM_FLAGS += -DPSR_MUL
68 72 CLEANFILES += arcfour-x86_64.s
69 73 LDLIBS += -lcryptoutil -lc
70 74 LINTFLAGS64 += $(EXTRA_LINT_FLAGS)
71 75
72 76 .KEEP_STATE:
73 77
74 78 all: $(LIBS)
75 79
76 80 lint: $(SRCS)
77 81
78 82 install: all $(ROOTLIBS64) $(ROOTLINKS64) $(ROOTLINT64)
79 83
80 84 pics/%.o: $(AES_DIR)/$(MACH64)/%.c
81 85 $(COMPILE.c) $(AES_FLAGS) -o $@ $<
82 86 $(POST_PROCESS_O)
83 87
84 88 pics/%.o: $(AES_DIR)/$(MACH64)/%.s
85 89 $(COMPILE.s) $(AES_FLAGS) -o $@ $<
86 90 $(POST_PROCESS_O)
87 91
88 92 pics/%.o: $(BIGNUM_DIR)/$(MACH64)/%.c
89 93 $(COMPILE.c) $(BIGNUM_FLAGS) -o $@ $<
90 94 $(POST_PROCESS_O)
91 95
92 96 pics/%.o: $(BIGNUM_DIR)/$(MACH64)/%.s
93 97 $(COMPILE64.s) $(BIGNUM_FLAGS) -o $@ $<
94 98 $(POST_PROCESS_O)
95 99
96 100 pics/%.o: $(MODES_DIR)/$(MACH64)/%.s
97 101 $(COMPILE64.s) $(MODES_FLAGS) -o $@ $<
98 102 $(POST_PROCESS_O)
99 103
100 104 include ../Makefile.targ
101 105
102 106 arcfour-x86_64.s: $(ARCFOUR_DIR)/amd64/arcfour-x86_64.pl
103 107 $(PERL) $? $@
104 108
105 109 pics/%.o: arcfour-x86_64.s
106 110 $(COMPILE64.s) $(ARCFOUR_FLAGS) -o $@ $<
107 111 $(POST_PROCESS_O)
↓ open down ↓ |
53 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX