📄 makefile.in
字号:
#
# Makefile for GSM 06.10
#
# Copyright (C) 2004 Post Increment, All Rights Reserved
#
# The contents of this file are subject to the Mozilla Public License
# Version 1.0 (the "License"); you may not use this file except in
# compliance with the License. You may obtain a copy of the License at
# http://www.mozilla.org/MPL/
#
# Software distributed under the License is distributed on an "AS IS"
# basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
# the License for the specific language governing rights and limitations
# under the License.
#
# The Original Code is Open H323 library.
#
# The Initial Developer of the Original Code is Post Increment
#
# Contributor(s): ______________________________________.
#
# $Log: Makefile.in,v $
# Revision 1.9.4.1 2006/02/20 08:55:03 csoutheren
# Backport from HEAD
#
# Revision 1.9 2004/08/24 14:15:12 csoutheren
# Fixed potential problems with MS-GSM
#
# Revision 1.8 2004/08/22 04:20:18 csoutheren
# Added -fPIC to build commands to fix problems on 64 bit platforms
# Thanks to Klaus Kaempf
#
# Revision 1.7 2004/06/24 23:33:17 csoutheren
# Changed Makefiles to ensure all plugins have correct suffix
#
# Revision 1.6 2004/06/17 23:14:59 csoutheren
# Fixed error when using "make install" with embedded GSM
# Thanks to Matthias Weber
#
# Revision 1.5 2004/05/18 22:24:24 csoutheren
# Initiali support for embedded codecs
#
# Revision 1.4 2004/05/03 11:08:30 csoutheren
# Modified to allow plugins to be created on various platforms
#
# Revision 1.3 2004/05/02 13:57:05 rjongbloed
# Fixed building local GSM if no system library
#
# Revision 1.2 2004/04/29 14:47:59 csoutheren
# Reconfigured plugin makefiles per suggestions from Damien Sandras
# Changed install targets to use $(INSTALL)
#
# Revision 1.1 2004/04/29 10:48:55 csoutheren
# Initial version
#
# Revision 1.1 2004/04/27 09:59:27 csoutheren
# Updated codec specific Makefiles
#
#
#
STDCCFLAGS += -fPIC
PREFIX=@INSTALLPREFIX@
exec_prefix = ${PREFIX}
LIBDIR=@LIBDIR@
H323_SYSTEM_GSM=@H323_SYSTEM_GSM@
H323_EMBEDDED_GSM=@H323_EMBEDDED_GSM@
CC=@CC@
CFLAGS=@CFLAGS@
CXX=@CXX@
LDSO=@LDSO@
ifndef PREFIX
PREFIX=/usr/local
endif
SONAME = gsm0610
SRCDIR = ./src
OBJDIR = ./obj
SRCS += gsm06_10_codec.c
#ifeq ($(H323_SYSTEM_GSM),0)
SRCS += $(SRCDIR)/gsm_create.c \
$(SRCDIR)/gsm_destroy.c \
$(SRCDIR)/gsm_decode.c \
$(SRCDIR)/gsm_encode.c \
$(SRCDIR)/gsm_option.c \
$(SRCDIR)/code.c \
$(SRCDIR)/decode.c \
$(SRCDIR)/add.c \
$(SRCDIR)/gsm_lpc.c \
$(SRCDIR)/rpe.c \
$(SRCDIR)/preprocess.c \
$(SRCDIR)/long_term.c \
$(SRCDIR)/short_term.c \
$(SRCDIR)/table.c
EXTRALIBS =
#else
#
#EXTRALIBS = -lgsm
#
#endif
vpath %.o $(OBJDIR)
vpath %.c $(SRCDIR)
ifeq ($(H323_EMBEDDED_GSM),1)
EXTRACCFLAGS=-DOPAL_STATIC_CODEC
endif
$(OBJDIR)/%.o : %.c
@mkdir -p $(OBJDIR) >/dev/null 2>&1
$(CC) -I../../../include -I./inc -DWAV49 -DNeedFunctionPrototypes=1 $(EXTRACCFLAGS) $(STDCCFLAGS) $(OPTCCFLAGS) $(CFLAGS) -c $< -o $@
PLUGIN = ./$(SONAME)_audio_pwplugin.so
STATIC = ./lib$(SONAME)_audio_s.a
OBJECTS = $(addprefix $(OBJDIR)/,$(patsubst %.c,%.o,$(notdir $(SRCS))))
ifeq ($(H323_EMBEDDED_GSM),1)
$(STATIC): $(OBJECTS)
$(AR) rcs $@ $^
install:
uninstall:
else
$(PLUGIN): $(OBJECTS)
$(CC) $(LDSO)$(SONAME) -o $@ $^ $(EXTRALIBS)
endif
install:
mkdir -p $(DESTDIR)$(LIBDIR)/pwlib/codecs/audio/
cp $(PLUGIN) $(DESTDIR)$(LIBDIR)/pwlib/codecs/audio/
uninstall:
rm -f $(DESTDIR)$(LIBDIR)/pwlib/codecs/audio/$(PLUGIN)
clean:
rm -f $(OBJECTS) $(PLUGIN)
###########################################
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -