Checkin of validated codec used during development
[opal.git] / plugins / audio / Speex / Makefile.in
blob1cf051f78d5c8c0f3e1153bacd9b60557f843cee
2 # Makefile for Speex Codec Plugin
4 # Copyright (C) 2004 Post Increment, All Rights Reserved
6 # The contents of this file are subject to the Mozilla Public License
7 # Version 1.0 (the "License"); you may not use this file except in
8 # compliance with the License. You may obtain a copy of the License at
9 # http://www.mozilla.org/MPL/
11 # Software distributed under the License is distributed on an "AS IS"
12 # basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
13 # the License for the specific language governing rights and limitations
14 # under the License.
16 # The Original Code is Open H323 library.
18 # The Initial Developer of the Original Code is Post Increment
20 # Contributor(s): ______________________________________.
22 # $Log$
23 # Revision 1.2 2006/07/31 09:09:17 csoutheren
24 # Checkin of validated codec used during development
26 # Revision 1.1.2.1 2006/04/06 01:20:05 csoutheren
27 # Ported audio codec plugins from OpenH323 to OPAL
29 # Revision 1.5 2004/09/09 00:25:34 csoutheren
30 # Fixed Speex plugin on x64 systems thanks to Andrew Walrond. I know other
31 # have submitted this fix too - my apolgies for not including your names
33 # Revision 1.4 2004/08/22 04:20:19 csoutheren
34 # Added -fPIC to build commands to fix problems on 64 bit platforms
35 # Thanks to Klaus Kaempf
37 # Revision 1.3 2004/06/24 23:33:17 csoutheren
38 # Changed Makefiles to ensure all plugins have correct suffix
40 # Revision 1.2 2004/05/03 11:08:30 csoutheren
41 # Modified to allow plugins to be created on various platforms
43 # Revision 1.1 2004/04/29 14:48:00 csoutheren
44 # Reconfigured plugin makefiles per suggestions from Damien Sandras
45 # Changed install targets to use $(INSTALL)
47 # Revision 1.4 2004/04/27 09:59:27 csoutheren
48 # Updated codec specific Makefiles
50 # Revision 1.3 2004/04/09 12:24:18 csoutheren
51 # Renamed h323plugin.h to opalplugin.h, and modified everything else
52 # as required
54 # Revision 1.2 2004/04/04 12:57:49 csoutheren
55 # Updated Makefiles and fixed Linux problems
58 STDCCFLAGS += -fPIC
60 PREFIX=@INSTALLPREFIX@
61 exec_prefix = ${PREFIX}
62 LIBDIR=@LIBDIR@
63 H323_SYSTEM_SPEEX=@H323_SYSTEM_SPEEX@
65 CC=@CC@
66 CXX=@CXX@
67 LDSO=@LDSO@
69 ifndef PREFIX
70 PREFIX=/usr/local
71 endif
73 SONAME = speexccodec
75 SRCDIR = ./libspeex
76 SRCS = speexcodec.cxx
78 ifndef H323_SYSTEM_SPEEX
79 SRCS += $(SRCDIR)/nb_celp.c $(SRCDIR)/sb_celp.c $(SRCDIR)/lpc.c $(SRCDIR)/ltp.c $(SRCDIR)/lsp.c \
80 $(SRCDIR)/quant_lsp.c $(SRCDIR)/lsp_tables_nb.c $(SRCDIR)/gain_table.c $(SRCDIR)/gain_table_lbr.c \
81 $(SRCDIR)/cb_search.c $(SRCDIR)/filters.c $(SRCDIR)/bits.c $(SRCDIR)/modes.c $(SRCDIR)/vq.c \
82 $(SRCDIR)/high_lsp_tables.c $(SRCDIR)/vbr.c $(SRCDIR)/hexc_table.c $(SRCDIR)/exc_5_256_table.c \
83 $(SRCDIR)/exc_5_64_table.c $(SRCDIR)/exc_8_128_table.c $(SRCDIR)/exc_20_32_table.c \
84 $(SRCDIR)/exc_10_32_table.c $(SRCDIR)/exc_10_16_table.c $(SRCDIR)/hexc_10_32_table.c $(SRCDIR)/misc.c \
85 $(SRCDIR)/speex_header.c $(SRCDIR)/speex_callbacks.c
86 EXTRALIBS =
87 else
88 EXTRALIBS = -lspeex
89 endif
91 OBJDIR = ./obj
93 vpath %.o $(OBJDIR)
94 vpath %.c $(SRCDIR)
95 vpath %.cxx $(SRCDIR)
97 $(OBJDIR)/%.o : %.c
98 @mkdir -p $(OBJDIR) >/dev/null 2>&1
99 $(CC) -g -c $(STDCCFLAGS) $(CCFLAGS) -o $@ $<
101 $(OBJDIR)/%.o : %.cxx
102 @mkdir -p $(OBJDIR) >/dev/null 2>&1
103 $(CXX) -g -c -I../../../include $(STDCCFLAGS) $(CCFLAGS) -o $@ $<
105 PLUGIN = ./speex_audio_pwplugin.so
107 OBJECTS = $(addprefix $(OBJDIR)/,$(patsubst %.cxx,%.o,$(patsubst %.c,%.o,$(notdir $(SRCS)))))
109 $(PLUGIN): $(OBJECTS)
110 $(CC) $(LDSO)$(SONAME) -o $@ $^ $(EXTRALIBS)
112 install:
113 mkdir -p $(DESTDIR)$(LIBDIR)/pwlib/codecs/audio/
114 cp $(PLUGIN) $(DESTDIR)$(LIBDIR)/pwlib/codecs/audio/
116 uninstall:
117 rm -f $(DESTDIR)$(LIBDIR)/pwlib/codecs/audio/$(PLUGIN)
119 clean:
120 rm -f $(OBJECTS) $(PLUGIN)
122 ###########################################