Print this page
10079 smatch Makefile changes for usr/src/lib
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/lib/iconv_modules/vi/Makefile.com
+++ new/usr/src/lib/iconv_modules/vi/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 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 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 SRCS = tcvn%UCS-2.c \
27 28 tcvn%UTF-8.c \
28 29 tcvn%viscii.c \
29 30 UCS-2%tcvn.c \
30 31 UCS-2%viscii.c \
31 32 UTF-8%tcvn.c \
32 33 UTF-8%viscii.c \
33 34 viscii%tcvn.c \
34 35 viscii%UCS-2.c \
35 36 viscii%UTF-8.c
36 37 COMMON = ../common/
37 38
38 39 LINK_TARGETS = UCS-2BE%tcvn.so tcvn%UCS-2BE.so
39 40 LINK_TARGETS += UCS-2BE%viscii.so viscii%UCS-2BE.so
40 41
42 +# needs work
43 +SMOFF += all_func_returns,deref_check
44 +
41 45 dummy: all
42 46
43 47 tcvn%UCS-2LE.o: $(COMMON)tcvn%UCS-2.c
44 48 $(CC) $(CFLAGS) -DUCS_2LE -c -o $@ $^
45 49
46 50 tcvn%UCS-2BE.o: $(COMMON)tcvn%UCS-2.c
47 51 $(CC) $(CFLAGS) -c -o $@ $^
48 52
49 53 viscii%UCS-2LE.o: $(COMMON)viscii%UCS-2.c
50 54 $(CC) $(CFLAGS) -DUCS_2LE -c -o $@ $^
51 55
52 56 viscii%UCS-2BE.o: $(COMMON)viscii%UCS-2.c
53 57 $(CC) $(CFLAGS) -c -o $@ $^
54 58
55 59 UCS-2LE%tcvn.o: $(COMMON)UCS-2%tcvn.c
56 60 $(CC) $(CFLAGS) -DUCS_2LE -c -o $@ $^
57 61
58 62 UCS-2BE%tcvn.o: $(COMMON)UCS-2%tcvn.c
59 63 $(CC) $(CFLAGS) -c -o $@ $^
60 64
61 65 UCS-2LE%viscii.o: $(COMMON)UCS-2%viscii.c
62 66 $(CC) $(CFLAGS) -DUCS_2LE -c -o $@ $^
63 67
64 68 UCS-2BE%viscii.o: $(COMMON)UCS-2%viscii.c
65 69 $(CC) $(CFLAGS) -c -o $@ $^
66 70
67 71 include $(SRC)/lib/iconv_modules/Makefile.iconv
68 72
69 73 $(CREATE_LINKS): $(ICONV_LINK_TARGETS)
70 74 $(SYMLINK) -f tcvn%UCS-2BE.so $(ICONV_DIR)/tcvn%UCS-2.so
71 75 $(SYMLINK) -f UCS-2BE%tcvn.so $(ICONV_DIR)/UCS-2%tcvn.so
72 76 $(SYMLINK) -f UCS-2BE%viscii.so $(ICONV_DIR)/UCS-2%viscii.so
73 77 $(SYMLINK) -f viscii%UCS-2BE.so $(ICONV_DIR)/viscii%UCS-2.so
74 78 $(TOUCH) $@
75 79
76 80 ALL_SOS = tcvn%UCS-2LE.so tcvn%UCS-2BE.so
77 81 ALL_SOS += viscii%UCS-2LE.so viscii%UCS-2BE.so
78 82 ALL_SOS += UCS-2LE%tcvn.so UCS-2BE%tcvn.so
79 83 ALL_SOS += UCS-2LE%viscii.so UCS-2BE%viscii.so
80 84 ALL_SOS += UTF-8%tcvn.so tcvn%UTF-8.so
81 85 ALL_SOS += UTF-8%viscii.so viscii%UTF-8.so
82 86 ALL_SOS += tcvn%viscii.so viscii%tcvn.so
83 87
84 88 all: $(ALL_SOS)
↓ open down ↓ |
34 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX