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