xref: /illumos-gate/usr/src/cmd/audio/utilities/Makefile (revision d8048045f75b60d97deaf376b39d437b027becd1)
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# Copyright (c) 2018, Joyent, Inc.
26# Copyright 2019 RackTop Systems.
27
28include ../../Makefile.cmd
29
30TARGETS		= library
31
32CPPFLAGS += -I../include
33
34CERRWARN += $(CNOWARN_UNINIT)
35CCERRWARN += -_gcc=-Wno-switch
36
37# not linted
38SMATCH=off
39
40COBJS =		\
41	device_ctl.o	\
42	filehdr.o	\
43	hdr_misc.o	\
44	g711.o		\
45	g721.o		\
46	g723.o		\
47	g72x_tables.o	\
48	zmalloc.o
49
50CCOBJS =			\
51	Audio.o			\
52	AudioBuffer.o		\
53	AudioCopy.o		\
54	AudioDebug.o		\
55	AudioError.o		\
56	AudioExtent.o		\
57	AudioFile.o		\
58	AudioGain.o		\
59	AudioHdr.o		\
60	AudioHdrParse.o		\
61	AudioLib.o		\
62	AudioList.o		\
63	AudioPipe.o		\
64	AudioRawPipe.o		\
65	AudioStream.o		\
66	AudioTypeChannel.o	\
67	AudioTypeG72X.o		\
68	AudioTypeMux.o		\
69	AudioTypePcm.o		\
70	AudioTypeSampleRate.o	\
71	AudioUnixfile.o		\
72	Fir.o			\
73	Resample.o
74
75.PARALLEL:      $(COBJS) $(CCOBJS)
76
77libaudio=	libaudio.a
78
79.KEEP_STATE:
80
81install all: $(libaudio)
82
83$(libaudio): $(COBJS) $(CCOBJS)
84	$(RM) $@
85	$(AR) cq $@ $(COBJS) $(CCOBJS)
86
87clean:
88	$(RM) $(COBJS) $(CCOBJS)
89
90clobber: clean
91	$(RM) $(libaudio)
92
93_msg:
94