Print this page
11528 Makefile.noget can get gone
11529 Use -Wno-maybe-initialized
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.
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 25 # Copyright (c) 2018, Joyent, Inc.
↓ open down ↓ |
25 lines elided |
↑ open up ↑ |
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 -CERRWARN += -_gcc=-Wno-uninitialized
36 +CERRWARN += $(CNOWARN_UNINIT)
37 37 CERRWARN += -_gcc=-Wno-unused-variable
38 38 CERRWARN += -_gcc=-Wno-parentheses
39 39
40 40 # not linted
41 41 SMATCH=off
42 42
43 43 LINTFLAGS += -m -v -u
44 44
45 45 AR= /usr/ccs/bin/ar
46 46 RANLIB= /usr/ccs/bin/ranlib
47 47 RM= /usr/bin/rm -f
48 48
49 49 LIBCSRCS = device_ctl.c \
50 50 filehdr.c \
51 51 hdr_misc.c \
52 52 g711.c \
53 53 g721.c \
54 54 g723.c \
55 55 g72x_tables.c \
56 56 zmalloc.c
57 57
58 58 LIBCCSRCS = Audio.cc \
59 59 AudioBuffer.cc \
60 60 AudioCopy.cc \
61 61 AudioDebug.cc \
62 62 AudioError.cc \
63 63 AudioExtent.cc \
64 64 AudioFile.cc \
65 65 AudioGain.cc \
66 66 AudioHdr.cc \
67 67 AudioHdrParse.cc \
68 68 AudioLib.cc \
69 69 AudioList.cc \
70 70 AudioPipe.cc \
71 71 AudioRawPipe.cc \
72 72 AudioStream.cc \
73 73 AudioTypeChannel.cc \
74 74 AudioTypeG72X.cc \
75 75 AudioTypeMux.cc \
76 76 AudioTypePcm.cc \
77 77 AudioTypeSampleRate.cc \
78 78 AudioUnixfile.cc \
79 79 Fir.cc \
80 80 Resample.cc
81 81
82 82 COBJS= $(LIBCSRCS:%.c=%.o)
83 83 CCOBJS= $(LIBCCSRCS:%.cc=%.o)
84 84
85 85 .PARALLEL: $(COBJS) $(CCOBJS)
86 86
87 87 libaudio= libaudio.a
88 88
89 89 .KEEP_STATE:
90 90
91 91 install all: $(libaudio)
92 92
93 93 $(libaudio): $(COBJS) $(CCOBJS)
94 94 $(RM) -f $@
95 95 $(AR) cq $@ $(COBJS) $(CCOBJS)
96 96 test ! -f $(RANLIB) || $(RANLIB) $@
97 97
98 98 clean:
99 99 $(RM) $(COBJS) $(CCOBJS)
100 100
101 101 clobber: clean
102 102 $(RM) $(libaudio)
103 103
104 104 lint:
105 105 $(LINT.c) $(LIBCSRCS) $(LDLIBS)
106 106
107 107 _msg:
↓ open down ↓ |
61 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX