xref: /illumos-gate/usr/src/cmd/audio/utilities/Makefile (revision d8d4fa8f33f737d82c7dcd7ddd11b4342ce4fbca)
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
5*d8d4fa8fSgd78059# Common Development and Distribution License (the "License").
6*d8d4fa8fSgd78059# 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#
22*d8d4fa8fSgd78059# Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
237c478bd9Sstevel@tonic-gate# Use is subject to license terms.
247c478bd9Sstevel@tonic-gate#
257c478bd9Sstevel@tonic-gate#pragma ident	"%Z%%M%	%I%	%E% SMI"
267c478bd9Sstevel@tonic-gate#
277c478bd9Sstevel@tonic-gate# Makefile for C++ Audio Library (libAudio.a)
287c478bd9Sstevel@tonic-gate
297c478bd9Sstevel@tonic-gateinclude ../../Makefile.cmd
307c478bd9Sstevel@tonic-gate
317c478bd9Sstevel@tonic-gateTARGETS		= library
327c478bd9Sstevel@tonic-gate
337c478bd9Sstevel@tonic-gateINCLUDES += -I../include
347c478bd9Sstevel@tonic-gate
357c478bd9Sstevel@tonic-gateCPPFLAGS += $(INCLUDES)
367c478bd9Sstevel@tonic-gate
377c478bd9Sstevel@tonic-gateCFLAGS += $(CCVERBOSE)
387c478bd9Sstevel@tonic-gate
397c478bd9Sstevel@tonic-gateLINTFLAGS += -m -v -u
407c478bd9Sstevel@tonic-gate
417c478bd9Sstevel@tonic-gateAR=     /usr/ccs/bin/ar cq
427c478bd9Sstevel@tonic-gateRANLIB= /usr/ccs/bin/ranlib
437c478bd9Sstevel@tonic-gateRM=     /usr/bin/rm -f
447c478bd9Sstevel@tonic-gate
457c478bd9Sstevel@tonic-gateLIBCSRCS        = device_ctl.c \
467c478bd9Sstevel@tonic-gate		  filehdr.c \
477c478bd9Sstevel@tonic-gate		  hdr_misc.c \
487c478bd9Sstevel@tonic-gate		  g711.c \
497c478bd9Sstevel@tonic-gate		  g721.c \
507c478bd9Sstevel@tonic-gate		  g723.c \
517c478bd9Sstevel@tonic-gate		  g72x_tables.c \
527c478bd9Sstevel@tonic-gate		  zmalloc.c
537c478bd9Sstevel@tonic-gate
547c478bd9Sstevel@tonic-gateLIBCCSRCS	= Audio.cc \
557c478bd9Sstevel@tonic-gate		  AudioBuffer.cc \
567c478bd9Sstevel@tonic-gate		  AudioCopy.cc \
577c478bd9Sstevel@tonic-gate		  AudioDebug.cc \
587c478bd9Sstevel@tonic-gate		  AudioError.cc \
597c478bd9Sstevel@tonic-gate		  AudioExtent.cc \
607c478bd9Sstevel@tonic-gate		  AudioFile.cc \
617c478bd9Sstevel@tonic-gate		  AudioGain.cc \
627c478bd9Sstevel@tonic-gate		  AudioHdr.cc \
637c478bd9Sstevel@tonic-gate		  AudioHdrParse.cc \
647c478bd9Sstevel@tonic-gate		  AudioLib.cc \
657c478bd9Sstevel@tonic-gate		  AudioList.cc \
667c478bd9Sstevel@tonic-gate		  AudioPipe.cc \
677c478bd9Sstevel@tonic-gate		  AudioRawPipe.cc \
687c478bd9Sstevel@tonic-gate		  AudioStream.cc \
697c478bd9Sstevel@tonic-gate		  AudioTypeChannel.cc \
707c478bd9Sstevel@tonic-gate		  AudioTypeG72X.cc \
717c478bd9Sstevel@tonic-gate		  AudioTypeMux.cc \
727c478bd9Sstevel@tonic-gate		  AudioTypePcm.cc \
737c478bd9Sstevel@tonic-gate		  AudioTypeSampleRate.cc \
747c478bd9Sstevel@tonic-gate		  AudioUnixfile.cc \
757c478bd9Sstevel@tonic-gate		  Fir.cc \
767c478bd9Sstevel@tonic-gate		  Resample.cc
777c478bd9Sstevel@tonic-gate
787c478bd9Sstevel@tonic-gateCOBJS= $(LIBCSRCS:%.c=%.o)
797c478bd9Sstevel@tonic-gateCCOBJS= $(LIBCCSRCS:%.cc=%.o)
807c478bd9Sstevel@tonic-gate
817c478bd9Sstevel@tonic-gate.PARALLEL:      $(COBJS) $(CCOBJS)
827c478bd9Sstevel@tonic-gate
837c478bd9Sstevel@tonic-gatelibaudio=	libaudio.a
847c478bd9Sstevel@tonic-gate
857c478bd9Sstevel@tonic-gate.KEEP_STATE:
867c478bd9Sstevel@tonic-gate
877c478bd9Sstevel@tonic-gateinstall all: $(libaudio)
887c478bd9Sstevel@tonic-gate
897c478bd9Sstevel@tonic-gate$(libaudio): $(COBJS) $(CCOBJS)
907c478bd9Sstevel@tonic-gate	$(RM) -f $@
917c478bd9Sstevel@tonic-gate	$(AR) $@ $(COBJS) $(CCOBJS)
927c478bd9Sstevel@tonic-gate	test ! -f $(RANLIB) || $(RANLIB) $@
937c478bd9Sstevel@tonic-gate
947c478bd9Sstevel@tonic-gateclean:
957c478bd9Sstevel@tonic-gate	$(RM) $(COBJS) $(CCOBJS)
967c478bd9Sstevel@tonic-gate
977c478bd9Sstevel@tonic-gateclobber: clean
987c478bd9Sstevel@tonic-gate
997c478bd9Sstevel@tonic-gatelint:
1007c478bd9Sstevel@tonic-gate	$(LINT.c) $(LIBCSRCS) $(LDLIBS)
1017c478bd9Sstevel@tonic-gate
1027c478bd9Sstevel@tonic-gate_msg:
103