1*7c478bd9Sstevel@tonic-gate# 2*7c478bd9Sstevel@tonic-gate# CDDL HEADER START 3*7c478bd9Sstevel@tonic-gate# 4*7c478bd9Sstevel@tonic-gate# The contents of this file are subject to the terms of the 5*7c478bd9Sstevel@tonic-gate# Common Development and Distribution License, Version 1.0 only 6*7c478bd9Sstevel@tonic-gate# (the "License"). You may not use this file except in compliance 7*7c478bd9Sstevel@tonic-gate# with the License. 8*7c478bd9Sstevel@tonic-gate# 9*7c478bd9Sstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 10*7c478bd9Sstevel@tonic-gate# or http://www.opensolaris.org/os/licensing. 11*7c478bd9Sstevel@tonic-gate# See the License for the specific language governing permissions 12*7c478bd9Sstevel@tonic-gate# and limitations under the License. 13*7c478bd9Sstevel@tonic-gate# 14*7c478bd9Sstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each 15*7c478bd9Sstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 16*7c478bd9Sstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the 17*7c478bd9Sstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying 18*7c478bd9Sstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner] 19*7c478bd9Sstevel@tonic-gate# 20*7c478bd9Sstevel@tonic-gate# CDDL HEADER END 21*7c478bd9Sstevel@tonic-gate# 22*7c478bd9Sstevel@tonic-gate# 23*7c478bd9Sstevel@tonic-gate# Copyright 2004 Sun Microsystems, Inc. All rights reserved. 24*7c478bd9Sstevel@tonic-gate# Use is subject to license terms. 25*7c478bd9Sstevel@tonic-gate# 26*7c478bd9Sstevel@tonic-gate#pragma ident "%Z%%M% %I% %E% SMI" 27*7c478bd9Sstevel@tonic-gate# 28*7c478bd9Sstevel@tonic-gate# Makefile for C++ Audio Library (libAudio.a) 29*7c478bd9Sstevel@tonic-gate 30*7c478bd9Sstevel@tonic-gateinclude ../../Makefile.cmd 31*7c478bd9Sstevel@tonic-gate 32*7c478bd9Sstevel@tonic-gateTARGETS = library 33*7c478bd9Sstevel@tonic-gate 34*7c478bd9Sstevel@tonic-gateINCLUDES += -I../include 35*7c478bd9Sstevel@tonic-gate 36*7c478bd9Sstevel@tonic-gateCPPFLAGS += $(INCLUDES) 37*7c478bd9Sstevel@tonic-gate 38*7c478bd9Sstevel@tonic-gateCFLAGS += $(CCVERBOSE) 39*7c478bd9Sstevel@tonic-gate 40*7c478bd9Sstevel@tonic-gateLINTFLAGS += -m -v -u 41*7c478bd9Sstevel@tonic-gate 42*7c478bd9Sstevel@tonic-gateAR= /usr/ccs/bin/ar cq 43*7c478bd9Sstevel@tonic-gateRANLIB= /usr/ccs/bin/ranlib 44*7c478bd9Sstevel@tonic-gateRM= /usr/bin/rm -f 45*7c478bd9Sstevel@tonic-gate 46*7c478bd9Sstevel@tonic-gateLIBCSRCS = device_ctl.c \ 47*7c478bd9Sstevel@tonic-gate filehdr.c \ 48*7c478bd9Sstevel@tonic-gate hdr_misc.c \ 49*7c478bd9Sstevel@tonic-gate g711.c \ 50*7c478bd9Sstevel@tonic-gate g721.c \ 51*7c478bd9Sstevel@tonic-gate g723.c \ 52*7c478bd9Sstevel@tonic-gate g72x_tables.c \ 53*7c478bd9Sstevel@tonic-gate zmalloc.c 54*7c478bd9Sstevel@tonic-gate 55*7c478bd9Sstevel@tonic-gateLIBCCSRCS = Audio.cc \ 56*7c478bd9Sstevel@tonic-gate AudioBuffer.cc \ 57*7c478bd9Sstevel@tonic-gate AudioCopy.cc \ 58*7c478bd9Sstevel@tonic-gate AudioDebug.cc \ 59*7c478bd9Sstevel@tonic-gate AudioDetect.cc \ 60*7c478bd9Sstevel@tonic-gate AudioDevice.cc \ 61*7c478bd9Sstevel@tonic-gate AudioDevicectl.cc \ 62*7c478bd9Sstevel@tonic-gate AudioError.cc \ 63*7c478bd9Sstevel@tonic-gate AudioExtent.cc \ 64*7c478bd9Sstevel@tonic-gate AudioFile.cc \ 65*7c478bd9Sstevel@tonic-gate AudioGain.cc \ 66*7c478bd9Sstevel@tonic-gate AudioHdr.cc \ 67*7c478bd9Sstevel@tonic-gate AudioHdrParse.cc \ 68*7c478bd9Sstevel@tonic-gate AudioLib.cc \ 69*7c478bd9Sstevel@tonic-gate AudioList.cc \ 70*7c478bd9Sstevel@tonic-gate AudioPipe.cc \ 71*7c478bd9Sstevel@tonic-gate AudioRawPipe.cc \ 72*7c478bd9Sstevel@tonic-gate AudioStream.cc \ 73*7c478bd9Sstevel@tonic-gate AudioTypeChannel.cc \ 74*7c478bd9Sstevel@tonic-gate AudioTypeG72X.cc \ 75*7c478bd9Sstevel@tonic-gate AudioTypeMux.cc \ 76*7c478bd9Sstevel@tonic-gate AudioTypePcm.cc \ 77*7c478bd9Sstevel@tonic-gate AudioTypeSampleRate.cc \ 78*7c478bd9Sstevel@tonic-gate AudioUnixfile.cc \ 79*7c478bd9Sstevel@tonic-gate Fir.cc \ 80*7c478bd9Sstevel@tonic-gate Resample.cc 81*7c478bd9Sstevel@tonic-gate 82*7c478bd9Sstevel@tonic-gateCOBJS= $(LIBCSRCS:%.c=%.o) 83*7c478bd9Sstevel@tonic-gateCCOBJS= $(LIBCCSRCS:%.cc=%.o) 84*7c478bd9Sstevel@tonic-gate 85*7c478bd9Sstevel@tonic-gate.PARALLEL: $(COBJS) $(CCOBJS) 86*7c478bd9Sstevel@tonic-gate 87*7c478bd9Sstevel@tonic-gatelibaudio= libaudio.a 88*7c478bd9Sstevel@tonic-gate 89*7c478bd9Sstevel@tonic-gate.KEEP_STATE: 90*7c478bd9Sstevel@tonic-gate 91*7c478bd9Sstevel@tonic-gateinstall all: $(libaudio) 92*7c478bd9Sstevel@tonic-gate 93*7c478bd9Sstevel@tonic-gate$(libaudio): $(COBJS) $(CCOBJS) 94*7c478bd9Sstevel@tonic-gate $(RM) -f $@ 95*7c478bd9Sstevel@tonic-gate $(AR) $@ $(COBJS) $(CCOBJS) 96*7c478bd9Sstevel@tonic-gate test ! -f $(RANLIB) || $(RANLIB) $@ 97*7c478bd9Sstevel@tonic-gate 98*7c478bd9Sstevel@tonic-gateclean: 99*7c478bd9Sstevel@tonic-gate $(RM) $(COBJS) $(CCOBJS) 100*7c478bd9Sstevel@tonic-gate 101*7c478bd9Sstevel@tonic-gateclobber: clean 102*7c478bd9Sstevel@tonic-gate 103*7c478bd9Sstevel@tonic-gatelint: 104*7c478bd9Sstevel@tonic-gate $(LINT.c) $(LIBCSRCS) $(LDLIBS) 105*7c478bd9Sstevel@tonic-gate 106*7c478bd9Sstevel@tonic-gate_msg: 107