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