17c478bd9Sstevel@tonic-gate# 27c478bd9Sstevel@tonic-gate# CDDL HEADER START 37c478bd9Sstevel@tonic-gate# 47c478bd9Sstevel@tonic-gate# The contents of this file are subject to the terms of the 5d8d4fa8fSgd78059# Common Development and Distribution License (the "License"). 6d8d4fa8fSgd78059# You may not use this file except in compliance with the License. 77c478bd9Sstevel@tonic-gate# 87c478bd9Sstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 97c478bd9Sstevel@tonic-gate# or http://www.opensolaris.org/os/licensing. 107c478bd9Sstevel@tonic-gate# See the License for the specific language governing permissions 117c478bd9Sstevel@tonic-gate# and limitations under the License. 127c478bd9Sstevel@tonic-gate# 137c478bd9Sstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each 147c478bd9Sstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 157c478bd9Sstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the 167c478bd9Sstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying 177c478bd9Sstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner] 187c478bd9Sstevel@tonic-gate# 197c478bd9Sstevel@tonic-gate# CDDL HEADER END 207c478bd9Sstevel@tonic-gate# 217c478bd9Sstevel@tonic-gate# 22d67944fbSScott Rotondo# Copyright 2009 Sun Microsystems, Inc. All rights reserved. 237c478bd9Sstevel@tonic-gate# Use is subject to license terms. 247c478bd9Sstevel@tonic-gate# 257c478bd9Sstevel@tonic-gate# Makefile for C++ Audio Library (libAudio.a) 267c478bd9Sstevel@tonic-gate 277c478bd9Sstevel@tonic-gateinclude ../../Makefile.cmd 287c478bd9Sstevel@tonic-gate 297c478bd9Sstevel@tonic-gateTARGETS = library 307c478bd9Sstevel@tonic-gate 317c478bd9Sstevel@tonic-gateINCLUDES += -I../include 327c478bd9Sstevel@tonic-gate 337c478bd9Sstevel@tonic-gateCPPFLAGS += $(INCLUDES) 347c478bd9Sstevel@tonic-gate 357c478bd9Sstevel@tonic-gateCFLAGS += $(CCVERBOSE) 367014882cSRichard LoweCERRWARN += -_gcc=-Wno-uninitialized 377014882cSRichard LoweCERRWARN += -_gcc=-Wno-unused-variable 387014882cSRichard LoweCERRWARN += -_gcc=-Wno-parentheses 397c478bd9Sstevel@tonic-gate 407c478bd9Sstevel@tonic-gateLINTFLAGS += -m -v -u 417c478bd9Sstevel@tonic-gate 42d67944fbSScott RotondoAR= /usr/ccs/bin/ar 437c478bd9Sstevel@tonic-gateRANLIB= /usr/ccs/bin/ranlib 447c478bd9Sstevel@tonic-gateRM= /usr/bin/rm -f 457c478bd9Sstevel@tonic-gate 467c478bd9Sstevel@tonic-gateLIBCSRCS = device_ctl.c \ 477c478bd9Sstevel@tonic-gate filehdr.c \ 487c478bd9Sstevel@tonic-gate hdr_misc.c \ 497c478bd9Sstevel@tonic-gate g711.c \ 507c478bd9Sstevel@tonic-gate g721.c \ 517c478bd9Sstevel@tonic-gate g723.c \ 527c478bd9Sstevel@tonic-gate g72x_tables.c \ 537c478bd9Sstevel@tonic-gate zmalloc.c 547c478bd9Sstevel@tonic-gate 557c478bd9Sstevel@tonic-gateLIBCCSRCS = Audio.cc \ 567c478bd9Sstevel@tonic-gate AudioBuffer.cc \ 577c478bd9Sstevel@tonic-gate AudioCopy.cc \ 587c478bd9Sstevel@tonic-gate AudioDebug.cc \ 597c478bd9Sstevel@tonic-gate AudioError.cc \ 607c478bd9Sstevel@tonic-gate AudioExtent.cc \ 617c478bd9Sstevel@tonic-gate AudioFile.cc \ 627c478bd9Sstevel@tonic-gate AudioGain.cc \ 637c478bd9Sstevel@tonic-gate AudioHdr.cc \ 647c478bd9Sstevel@tonic-gate AudioHdrParse.cc \ 657c478bd9Sstevel@tonic-gate AudioLib.cc \ 667c478bd9Sstevel@tonic-gate AudioList.cc \ 677c478bd9Sstevel@tonic-gate AudioPipe.cc \ 687c478bd9Sstevel@tonic-gate AudioRawPipe.cc \ 697c478bd9Sstevel@tonic-gate AudioStream.cc \ 707c478bd9Sstevel@tonic-gate AudioTypeChannel.cc \ 717c478bd9Sstevel@tonic-gate AudioTypeG72X.cc \ 727c478bd9Sstevel@tonic-gate AudioTypeMux.cc \ 737c478bd9Sstevel@tonic-gate AudioTypePcm.cc \ 747c478bd9Sstevel@tonic-gate AudioTypeSampleRate.cc \ 757c478bd9Sstevel@tonic-gate AudioUnixfile.cc \ 767c478bd9Sstevel@tonic-gate Fir.cc \ 777c478bd9Sstevel@tonic-gate Resample.cc 787c478bd9Sstevel@tonic-gate 797c478bd9Sstevel@tonic-gateCOBJS= $(LIBCSRCS:%.c=%.o) 807c478bd9Sstevel@tonic-gateCCOBJS= $(LIBCCSRCS:%.cc=%.o) 817c478bd9Sstevel@tonic-gate 827c478bd9Sstevel@tonic-gate.PARALLEL: $(COBJS) $(CCOBJS) 837c478bd9Sstevel@tonic-gate 847c478bd9Sstevel@tonic-gatelibaudio= libaudio.a 857c478bd9Sstevel@tonic-gate 867c478bd9Sstevel@tonic-gate.KEEP_STATE: 877c478bd9Sstevel@tonic-gate 887c478bd9Sstevel@tonic-gateinstall all: $(libaudio) 897c478bd9Sstevel@tonic-gate 907c478bd9Sstevel@tonic-gate$(libaudio): $(COBJS) $(CCOBJS) 917c478bd9Sstevel@tonic-gate $(RM) -f $@ 92d67944fbSScott Rotondo $(AR) cq $@ $(COBJS) $(CCOBJS) 937c478bd9Sstevel@tonic-gate test ! -f $(RANLIB) || $(RANLIB) $@ 947c478bd9Sstevel@tonic-gate 957c478bd9Sstevel@tonic-gateclean: 967c478bd9Sstevel@tonic-gate $(RM) $(COBJS) $(CCOBJS) 977c478bd9Sstevel@tonic-gate 987c478bd9Sstevel@tonic-gateclobber: clean 99*b6805bf7SGordon Ross $(RM) $(libaudio) 1007c478bd9Sstevel@tonic-gate 1017c478bd9Sstevel@tonic-gatelint: 1027c478bd9Sstevel@tonic-gate $(LINT.c) $(LIBCSRCS) $(LDLIBS) 1037c478bd9Sstevel@tonic-gate 1047c478bd9Sstevel@tonic-gate_msg: 105