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 5d8d4fa8fSgd78059# Common Development and Distribution License (the "License"). 6d8d4fa8fSgd78059# 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# 22d67944fbSScott Rotondo# Copyright 2009 Sun Microsystems, Inc. All rights reserved. 237c478bd9Sstevel@tonic-gate# Use is subject to license terms. 247c478bd9Sstevel@tonic-gate# 255661bb76SJohn Levon# Copyright (c) 2018, Joyent, Inc. 268e0c8248SAndrew Stormont# Copyright 2019 RackTop Systems. 277c478bd9Sstevel@tonic-gate 287c478bd9Sstevel@tonic-gateinclude ../../Makefile.cmd 297c478bd9Sstevel@tonic-gate 307c478bd9Sstevel@tonic-gateTARGETS = library 317c478bd9Sstevel@tonic-gate 32*d8048045SRichard LoweCPPFLAGS += -I../include 337c478bd9Sstevel@tonic-gate 34d3b5f563SJohn LevonCERRWARN += $(CNOWARN_UNINIT) 358e0c8248SAndrew StormontCCERRWARN += -_gcc=-Wno-switch 368e0c8248SAndrew Stormont 375661bb76SJohn Levon# not linted 385661bb76SJohn LevonSMATCH=off 395661bb76SJohn Levon 40*d8048045SRichard LoweCOBJS = \ 41*d8048045SRichard Lowe device_ctl.o \ 42*d8048045SRichard Lowe filehdr.o \ 43*d8048045SRichard Lowe hdr_misc.o \ 44*d8048045SRichard Lowe g711.o \ 45*d8048045SRichard Lowe g721.o \ 46*d8048045SRichard Lowe g723.o \ 47*d8048045SRichard Lowe g72x_tables.o \ 48*d8048045SRichard Lowe zmalloc.o 497c478bd9Sstevel@tonic-gate 50*d8048045SRichard LoweCCOBJS = \ 51*d8048045SRichard Lowe Audio.o \ 52*d8048045SRichard Lowe AudioBuffer.o \ 53*d8048045SRichard Lowe AudioCopy.o \ 54*d8048045SRichard Lowe AudioDebug.o \ 55*d8048045SRichard Lowe AudioError.o \ 56*d8048045SRichard Lowe AudioExtent.o \ 57*d8048045SRichard Lowe AudioFile.o \ 58*d8048045SRichard Lowe AudioGain.o \ 59*d8048045SRichard Lowe AudioHdr.o \ 60*d8048045SRichard Lowe AudioHdrParse.o \ 61*d8048045SRichard Lowe AudioLib.o \ 62*d8048045SRichard Lowe AudioList.o \ 63*d8048045SRichard Lowe AudioPipe.o \ 64*d8048045SRichard Lowe AudioRawPipe.o \ 65*d8048045SRichard Lowe AudioStream.o \ 66*d8048045SRichard Lowe AudioTypeChannel.o \ 67*d8048045SRichard Lowe AudioTypeG72X.o \ 68*d8048045SRichard Lowe AudioTypeMux.o \ 69*d8048045SRichard Lowe AudioTypePcm.o \ 70*d8048045SRichard Lowe AudioTypeSampleRate.o \ 71*d8048045SRichard Lowe AudioUnixfile.o \ 72*d8048045SRichard Lowe Fir.o \ 73*d8048045SRichard Lowe Resample.o 747c478bd9Sstevel@tonic-gate 757c478bd9Sstevel@tonic-gate.PARALLEL: $(COBJS) $(CCOBJS) 767c478bd9Sstevel@tonic-gate 777c478bd9Sstevel@tonic-gatelibaudio= libaudio.a 787c478bd9Sstevel@tonic-gate 797c478bd9Sstevel@tonic-gate.KEEP_STATE: 807c478bd9Sstevel@tonic-gate 817c478bd9Sstevel@tonic-gateinstall all: $(libaudio) 827c478bd9Sstevel@tonic-gate 837c478bd9Sstevel@tonic-gate$(libaudio): $(COBJS) $(CCOBJS) 8402b17e23SRichard Lowe $(RM) $@ 85d67944fbSScott Rotondo $(AR) cq $@ $(COBJS) $(CCOBJS) 867c478bd9Sstevel@tonic-gate 877c478bd9Sstevel@tonic-gateclean: 887c478bd9Sstevel@tonic-gate $(RM) $(COBJS) $(CCOBJS) 897c478bd9Sstevel@tonic-gate 907c478bd9Sstevel@tonic-gateclobber: clean 91b6805bf7SGordon Ross $(RM) $(libaudio) 927c478bd9Sstevel@tonic-gate 937c478bd9Sstevel@tonic-gate_msg: 94