Makefile revision d8d4fa8f33f737d82c7dcd7ddd11b4342ce4fbca
73d62a89f1493865c33c689b3ee3de91c74ad58eDavid Lawrence#
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# CDDL HEADER START
40f53fa8d9c6a4fc38c0014495e7a42b08f52481David Lawrence#
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# The contents of this file are subject to the terms of the
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# Common Development and Distribution License (the "License").
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# You may not use this file except in compliance with the License.
73d62a89f1493865c33c689b3ee3de91c74ad58eDavid Lawrence#
73d62a89f1493865c33c689b3ee3de91c74ad58eDavid Lawrence# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
7829fad4093f2c1985b1efb7cea00287ff015d2bckb# or http://www.opensolaris.org/os/licensing.
9c3531d72aeaad6c5f01efe6a1c82023e1379e4dDavid Lawrence# See the License for the specific language governing permissions
4be63b1fd8c18dbeca1648d6cf22fa14f057a469David Lawrence# and limitations under the License.
4be63b1fd8c18dbeca1648d6cf22fa14f057a469David Lawrence#
904a5734375869ffb504ed8cde6b68cafadb6d64Bob Halley# When distributing Covered Code, include this CDDL HEADER in each
29747dfe5e073a299b3681e01f5c55540f8bfed7Mark Andrews# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
ab023a65562e62b85a824509d829b6fad87e00b1Rob Austein# If applicable, add the following below this CDDL HEADER, with the
e59937c7283216ca22ce6e7937b06eab6d97f4acEvan Hunt# fields enclosed by brackets "[]" replaced with your own identifying
904a5734375869ffb504ed8cde6b68cafadb6d64Bob Halley# information: Portions Copyright [yyyy] [name of copyright owner]
c0bf2b179a199c50d2b50d43b18302ee5c3af6baAndreas Gustafsson#
5597be9bb88de138dfec9fa9176708443813925eTatuya JINMEI 神明達哉# CDDL HEADER END
f389bc2c9e9e434380e10221778b7b548612a67fDavid Lawrence#
f389bc2c9e9e434380e10221778b7b548612a67fDavid Lawrence#
f389bc2c9e9e434380e10221778b7b548612a67fDavid Lawrence# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
904a5734375869ffb504ed8cde6b68cafadb6d64Bob Halley# Use is subject to license terms.
904a5734375869ffb504ed8cde6b68cafadb6d64Bob Halley#
eba5c23154cb4f42d3f49831e82c7cd6bc7d7b92Bob Halley#pragma ident "%Z%%M% %I% %E% SMI"
08e57545c2b1068080f5bf317224160426801406Brian Wellington#
ab023a65562e62b85a824509d829b6fad87e00b1Rob Austein# Makefile for C++ Audio Library (libAudio.a)
ab023a65562e62b85a824509d829b6fad87e00b1Rob Austein
0a09237aa0b12f9e478a9617d9d54c8b3512f94bBob Halleyinclude ../../Makefile.cmd
0a09237aa0b12f9e478a9617d9d54c8b3512f94bBob Halley
0a09237aa0b12f9e478a9617d9d54c8b3512f94bBob HalleyTARGETS = library
b239c8294a5653d21876d084e0c5b029f6b9fc5dMichael Graff
b239c8294a5653d21876d084e0c5b029f6b9fc5dMichael GraffINCLUDES += -I../include
b239c8294a5653d21876d084e0c5b029f6b9fc5dMichael Graff
b239c8294a5653d21876d084e0c5b029f6b9fc5dMichael GraffCPPFLAGS += $(INCLUDES)
ab023a65562e62b85a824509d829b6fad87e00b1Rob Austein
0a09237aa0b12f9e478a9617d9d54c8b3512f94bBob HalleyCFLAGS += $(CCVERBOSE)
5597be9bb88de138dfec9fa9176708443813925eTatuya JINMEI 神明達哉
5597be9bb88de138dfec9fa9176708443813925eTatuya JINMEI 神明達哉LINTFLAGS += -m -v -u
5597be9bb88de138dfec9fa9176708443813925eTatuya JINMEI 神明達哉
5597be9bb88de138dfec9fa9176708443813925eTatuya JINMEI 神明達哉AR= /usr/ccs/bin/ar cq
5597be9bb88de138dfec9fa9176708443813925eTatuya JINMEI 神明達哉RANLIB= /usr/ccs/bin/ranlib
5597be9bb88de138dfec9fa9176708443813925eTatuya JINMEI 神明達哉RM= /usr/bin/rm -f
7829fad4093f2c1985b1efb7cea00287ff015d2bckb
7829fad4093f2c1985b1efb7cea00287ff015d2bckbLIBCSRCS = device_ctl.c \
92712379fc48fbfdb699b19db5322d56b7caa3b0David Lawrence filehdr.c \
92712379fc48fbfdb699b19db5322d56b7caa3b0David Lawrence hdr_misc.c \
92712379fc48fbfdb699b19db5322d56b7caa3b0David Lawrence g711.c \
b239c8294a5653d21876d084e0c5b029f6b9fc5dMichael Graff g721.c \
b239c8294a5653d21876d084e0c5b029f6b9fc5dMichael Graff g723.c \
92712379fc48fbfdb699b19db5322d56b7caa3b0David Lawrence g72x_tables.c \
b239c8294a5653d21876d084e0c5b029f6b9fc5dMichael Graff zmalloc.c
c0bf2b179a199c50d2b50d43b18302ee5c3af6baAndreas Gustafsson
b239c8294a5653d21876d084e0c5b029f6b9fc5dMichael GraffLIBCCSRCS = Audio.cc \
c0bf2b179a199c50d2b50d43b18302ee5c3af6baAndreas Gustafsson AudioBuffer.cc \
b239c8294a5653d21876d084e0c5b029f6b9fc5dMichael Graff AudioCopy.cc \
c0bf2b179a199c50d2b50d43b18302ee5c3af6baAndreas Gustafsson AudioDebug.cc \
c0bf2b179a199c50d2b50d43b18302ee5c3af6baAndreas Gustafsson AudioError.cc \
ab023a65562e62b85a824509d829b6fad87e00b1Rob Austein AudioExtent.cc \
f389bc2c9e9e434380e10221778b7b548612a67fDavid Lawrence AudioFile.cc \
f389bc2c9e9e434380e10221778b7b548612a67fDavid Lawrence AudioGain.cc \
1ccdb915151b4ab7c4dc9a1343601947ec5fa7c7Andreas Gustafsson AudioHdr.cc \
1630fce031f7a3e33f0579e477a3e17d1993e1f9Bob Halley AudioHdrParse.cc \
f036af2c718147408d738081cdb0a564b981b4cdDavid Lawrence AudioLib.cc \
f389bc2c9e9e434380e10221778b7b548612a67fDavid Lawrence AudioList.cc \
b239c8294a5653d21876d084e0c5b029f6b9fc5dMichael Graff AudioPipe.cc \
a3285e811de7204f1d4d296c7f16082fc58e1b7aMark Andrews AudioRawPipe.cc \
a3285e811de7204f1d4d296c7f16082fc58e1b7aMark Andrews AudioStream.cc \
a3285e811de7204f1d4d296c7f16082fc58e1b7aMark Andrews AudioTypeChannel.cc \
a3285e811de7204f1d4d296c7f16082fc58e1b7aMark Andrews AudioTypeG72X.cc \
a3285e811de7204f1d4d296c7f16082fc58e1b7aMark Andrews AudioTypeMux.cc \
a3285e811de7204f1d4d296c7f16082fc58e1b7aMark Andrews AudioTypePcm.cc \
b239c8294a5653d21876d084e0c5b029f6b9fc5dMichael Graff AudioTypeSampleRate.cc \
c0bf2b179a199c50d2b50d43b18302ee5c3af6baAndreas Gustafsson AudioUnixfile.cc \
6098d364b690cb9dabf96e9664c4689c8559bd2eMark Andrews Fir.cc \
c0bf2b179a199c50d2b50d43b18302ee5c3af6baAndreas Gustafsson Resample.cc
6098d364b690cb9dabf96e9664c4689c8559bd2eMark Andrews
6098d364b690cb9dabf96e9664c4689c8559bd2eMark AndrewsCOBJS= $(LIBCSRCS:%.c=%.o)
6098d364b690cb9dabf96e9664c4689c8559bd2eMark AndrewsCCOBJS= $(LIBCCSRCS:%.cc=%.o)
6098d364b690cb9dabf96e9664c4689c8559bd2eMark Andrews
7d6d9c22404af9e81614e0a143f8bab65a97e8d4Francis Dupont.PARALLEL: $(COBJS) $(CCOBJS)
63d5a6f680864b58b8eddc58dfa9957e19abf084Mark Andrews
6098d364b690cb9dabf96e9664c4689c8559bd2eMark Andrewslibaudio= libaudio.a
6098d364b690cb9dabf96e9664c4689c8559bd2eMark Andrews
6098d364b690cb9dabf96e9664c4689c8559bd2eMark Andrews.KEEP_STATE:
e2047969decfc0c3fc1a946ccade993cab9c9315Mark Andrews
e2047969decfc0c3fc1a946ccade993cab9c9315Mark Andrewsinstall all: $(libaudio)
e2047969decfc0c3fc1a946ccade993cab9c9315Mark Andrews
e2047969decfc0c3fc1a946ccade993cab9c9315Mark Andrews$(libaudio): $(COBJS) $(CCOBJS)
e2047969decfc0c3fc1a946ccade993cab9c9315Mark Andrews $(RM) -f $@
e2047969decfc0c3fc1a946ccade993cab9c9315Mark Andrews $(AR) $@ $(COBJS) $(CCOBJS)
e2047969decfc0c3fc1a946ccade993cab9c9315Mark Andrews test ! -f $(RANLIB) || $(RANLIB) $@
e2047969decfc0c3fc1a946ccade993cab9c9315Mark Andrews
e2047969decfc0c3fc1a946ccade993cab9c9315Mark Andrewsclean:
e2047969decfc0c3fc1a946ccade993cab9c9315Mark Andrews $(RM) $(COBJS) $(CCOBJS)
6098d364b690cb9dabf96e9664c4689c8559bd2eMark Andrews
e2047969decfc0c3fc1a946ccade993cab9c9315Mark Andrewsclobber: clean
6098d364b690cb9dabf96e9664c4689c8559bd2eMark Andrews
6098d364b690cb9dabf96e9664c4689c8559bd2eMark Andrewslint:
6098d364b690cb9dabf96e9664c4689c8559bd2eMark Andrews $(LINT.c) $(LIBCSRCS) $(LDLIBS)
63d5a6f680864b58b8eddc58dfa9957e19abf084Mark Andrews
a3285e811de7204f1d4d296c7f16082fc58e1b7aMark Andrews_msg:
6098d364b690cb9dabf96e9664c4689c8559bd2eMark Andrews