Home | History | Annotate | Download | only in utilities
      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 
     27 include ../../Makefile.cmd
     28 
     29 TARGETS		= library
     30 
     31 INCLUDES += -I../include
     32 
     33 CPPFLAGS += $(INCLUDES)
     34 
     35 CFLAGS += $(CCVERBOSE)
     36 
     37 LINTFLAGS += -m -v -u
     38 
     39 AR=     /usr/ccs/bin/ar
     40 RANLIB= /usr/ccs/bin/ranlib
     41 RM=     /usr/bin/rm -f
     42 
     43 LIBCSRCS        = 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 
     52 LIBCCSRCS	= 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 
     76 COBJS= $(LIBCSRCS:%.c=%.o)
     77 CCOBJS= $(LIBCCSRCS:%.cc=%.o)
     78 
     79 .PARALLEL:      $(COBJS) $(CCOBJS)
     80 
     81 libaudio=	libaudio.a
     82 
     83 .KEEP_STATE:
     84 
     85 install all: $(libaudio)
     86 
     87 $(libaudio): $(COBJS) $(CCOBJS)
     88 	$(RM) -f $@
     89 	$(AR) cq $@ $(COBJS) $(CCOBJS)
     90 	test ! -f $(RANLIB) || $(RANLIB) $@
     91 
     92 clean:
     93 	$(RM) $(COBJS) $(CCOBJS)
     94 
     95 clobber: clean
     96 
     97 lint:
     98 	$(LINT.c) $(LIBCSRCS) $(LDLIBS)
     99 
    100 _msg:
    101