Print this page
10080 smatch Makefile changes for usr/src/cmd
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/cmd/audio/utilities/Makefile
+++ new/usr/src/cmd/audio/utilities/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.
↓ 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 2009 Sun Microsystems, Inc. All rights reserved.
23 23 # Use is subject to license terms.
24 24 #
25 -# Makefile for C++ Audio Library (libAudio.a)
25 +# Copyright (c) 2018, Joyent, Inc.
26 26
27 27 include ../../Makefile.cmd
28 28
29 29 TARGETS = library
30 30
31 31 INCLUDES += -I../include
32 32
33 33 CPPFLAGS += $(INCLUDES)
34 34
35 35 CFLAGS += $(CCVERBOSE)
36 36 CERRWARN += -_gcc=-Wno-uninitialized
37 37 CERRWARN += -_gcc=-Wno-unused-variable
38 38 CERRWARN += -_gcc=-Wno-parentheses
39 39
40 +# not linted
41 +SMATCH=off
42 +
40 43 LINTFLAGS += -m -v -u
41 44
42 45 AR= /usr/ccs/bin/ar
43 46 RANLIB= /usr/ccs/bin/ranlib
44 47 RM= /usr/bin/rm -f
45 48
46 49 LIBCSRCS = device_ctl.c \
47 50 filehdr.c \
48 51 hdr_misc.c \
49 52 g711.c \
50 53 g721.c \
51 54 g723.c \
52 55 g72x_tables.c \
53 56 zmalloc.c
54 57
55 58 LIBCCSRCS = Audio.cc \
56 59 AudioBuffer.cc \
57 60 AudioCopy.cc \
58 61 AudioDebug.cc \
59 62 AudioError.cc \
60 63 AudioExtent.cc \
61 64 AudioFile.cc \
62 65 AudioGain.cc \
63 66 AudioHdr.cc \
64 67 AudioHdrParse.cc \
65 68 AudioLib.cc \
66 69 AudioList.cc \
67 70 AudioPipe.cc \
68 71 AudioRawPipe.cc \
69 72 AudioStream.cc \
70 73 AudioTypeChannel.cc \
71 74 AudioTypeG72X.cc \
72 75 AudioTypeMux.cc \
73 76 AudioTypePcm.cc \
74 77 AudioTypeSampleRate.cc \
75 78 AudioUnixfile.cc \
76 79 Fir.cc \
77 80 Resample.cc
78 81
79 82 COBJS= $(LIBCSRCS:%.c=%.o)
80 83 CCOBJS= $(LIBCCSRCS:%.cc=%.o)
81 84
82 85 .PARALLEL: $(COBJS) $(CCOBJS)
83 86
84 87 libaudio= libaudio.a
85 88
86 89 .KEEP_STATE:
87 90
88 91 install all: $(libaudio)
89 92
90 93 $(libaudio): $(COBJS) $(CCOBJS)
91 94 $(RM) -f $@
92 95 $(AR) cq $@ $(COBJS) $(CCOBJS)
93 96 test ! -f $(RANLIB) || $(RANLIB) $@
94 97
95 98 clean:
96 99 $(RM) $(COBJS) $(CCOBJS)
97 100
98 101 clobber: clean
99 102 $(RM) $(libaudio)
100 103
101 104 lint:
102 105 $(LINT.c) $(LIBCSRCS) $(LDLIBS)
103 106
104 107 _msg:
↓ open down ↓ |
55 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX