xref: /illumos-gate/usr/src/cmd/audio/utilities/Makefile (revision 3f318a288186db82aae78875c429f248622cf19f)
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 2008 Sun Microsystems, Inc.  All rights reserved.
23# Use is subject to license terms.
24#
25#pragma ident	"%Z%%M%	%I%	%E% SMI"
26#
27# Makefile for C++ Audio Library (libAudio.a)
28
29include ../../Makefile.cmd
30
31TARGETS		= library
32
33INCLUDES += -I../include
34
35CPPFLAGS += $(INCLUDES)
36
37CFLAGS += $(CCVERBOSE)
38
39LINTFLAGS += -m -v -u
40
41AR=     /usr/ccs/bin/ar cq
42RANLIB= /usr/ccs/bin/ranlib
43RM=     /usr/bin/rm -f
44
45LIBCSRCS        = device_ctl.c \
46		  filehdr.c \
47		  hdr_misc.c \
48		  g711.c \
49		  g721.c \
50		  g723.c \
51		  g72x_tables.c \
52		  zmalloc.c
53
54LIBCCSRCS	= Audio.cc \
55		  AudioBuffer.cc \
56		  AudioCopy.cc \
57		  AudioDebug.cc \
58		  AudioError.cc \
59		  AudioExtent.cc \
60		  AudioFile.cc \
61		  AudioGain.cc \
62		  AudioHdr.cc \
63		  AudioHdrParse.cc \
64		  AudioLib.cc \
65		  AudioList.cc \
66		  AudioPipe.cc \
67		  AudioRawPipe.cc \
68		  AudioStream.cc \
69		  AudioTypeChannel.cc \
70		  AudioTypeG72X.cc \
71		  AudioTypeMux.cc \
72		  AudioTypePcm.cc \
73		  AudioTypeSampleRate.cc \
74		  AudioUnixfile.cc \
75		  Fir.cc \
76		  Resample.cc
77
78COBJS= $(LIBCSRCS:%.c=%.o)
79CCOBJS= $(LIBCCSRCS:%.cc=%.o)
80
81.PARALLEL:      $(COBJS) $(CCOBJS)
82
83libaudio=	libaudio.a
84
85.KEEP_STATE:
86
87install all: $(libaudio)
88
89$(libaudio): $(COBJS) $(CCOBJS)
90	$(RM) -f $@
91	$(AR) $@ $(COBJS) $(CCOBJS)
92	test ! -f $(RANLIB) || $(RANLIB) $@
93
94clean:
95	$(RM) $(COBJS) $(CCOBJS)
96
97clobber: clean
98
99lint:
100	$(LINT.c) $(LIBCSRCS) $(LDLIBS)
101
102_msg:
103