dmake: do not set MAKEFLAGS=k
[unleashed/tickless.git] / usr / src / cmd / audio / utilities / Makefile
blob28bf077dfe2b03c3c973884941feea48bf19985b
2 # CDDL HEADER START
4 # The contents of this file are subject to the terms of the
5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 # or http://www.opensolaris.org/os/licensing.
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
13 # When distributing Covered Code, include this CDDL HEADER in each
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 # If applicable, add the following below this CDDL HEADER, with the
16 # fields enclosed by brackets "[]" replaced with your own identifying
17 # information: Portions Copyright [yyyy] [name of copyright owner]
19 # CDDL HEADER END
22 # Copyright 2009 Sun Microsystems, Inc. All rights reserved.
23 # Use is subject to license terms.
25 # Makefile for C++ Audio Library (libAudio.a)
27 include ../../Makefile.cmd
29 TARGETS = library
31 INCLUDES += -I../include
33 CPPFLAGS += $(INCLUDES)
35 CERRWARN += -Wno-uninitialized
36 CERRWARN += -Wno-unused-variable
37 CERRWARN += -Wno-parentheses
40 AR= /usr/ccs/bin/ar
41 RANLIB= /usr/ccs/bin/ranlib
42 RM= /usr/bin/rm -f
44 LIBCSRCS = device_ctl.c \
45 filehdr.c \
46 hdr_misc.c \
47 g711.c \
48 g721.c \
49 g723.c \
50 g72x_tables.c \
51 zmalloc.c
53 LIBCCSRCS = Audio.cc \
54 AudioBuffer.cc \
55 AudioCopy.cc \
56 AudioDebug.cc \
57 AudioError.cc \
58 AudioExtent.cc \
59 AudioFile.cc \
60 AudioGain.cc \
61 AudioHdr.cc \
62 AudioHdrParse.cc \
63 AudioLib.cc \
64 AudioList.cc \
65 AudioPipe.cc \
66 AudioRawPipe.cc \
67 AudioStream.cc \
68 AudioTypeChannel.cc \
69 AudioTypeG72X.cc \
70 AudioTypeMux.cc \
71 AudioTypePcm.cc \
72 AudioTypeSampleRate.cc \
73 AudioUnixfile.cc \
74 Fir.cc \
75 Resample.cc
77 COBJS= $(LIBCSRCS:%.c=%.o)
78 CCOBJS= $(LIBCCSRCS:%.cc=%.o)
80 .PARALLEL: $(COBJS) $(CCOBJS)
82 libaudio= libaudio.a
84 .KEEP_STATE:
86 install all: $(libaudio)
88 $(libaudio): $(COBJS) $(CCOBJS)
89 $(RM) -f $@
90 $(AR) cq $@ $(COBJS) $(CCOBJS)
91 test ! -f $(RANLIB) || $(RANLIB) $@
93 clean:
94 $(RM) $(COBJS) $(CCOBJS)
96 clobber: clean
97 $(RM) $(libaudio)
99 _msg: