1# 2# Makefile for GSM 06.10 3# 4# Copyright (C) 2004 Post Increment, All Rights Reserved 5# 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/ 10# 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. 15# 16# The Original Code is Open H323 library. 17# 18# The Initial Developer of the Original Code is Post Increment 19# 20# Contributor(s): ______________________________________. 21# 22# $Log$ 23# Revision 1.2 2010/10/01 13:38:52 willamowius 24# enable warnings, diable strict-alias optimizations because of DynLib issues 25# 26# Revision 1.1 2010/02/24 02:19:43 shorne 27# First commit of h323plus mirror 28# 29# Revision 1.4 2007/04/19 06:09:04 csoutheren 30# Fixed plugin build system to use better detection for OSX 31# Resolved 1636262 - Fix for audio plugins for OSX 32# 33# Revision 1.3 2006/09/06 23:09:21 csoutheren 34# Add Makefile and more implementation for Linux H.263 35# 36# Revision 1.3 2006/08/20 00:32:25 csoutheren 37# Added missing files to Makefile 38# 39# Revision 1.2 2006/08/12 10:59:14 rjongbloed 40# Added Linux build for H.261 plug-in. 41# 42 43VC_PLUGIN_DIR=@VC_PLUGIN_DIR@ 44prefix=@prefix@ 45exec_prefix=@exec_prefix@ 46libdir=@libdir@ 47target_os=@target_os@ 48 49BASENAME= h263-ffmpeg 50SONAME =$(BASENAME) 51PLUGINDIR=../.. 52 53COMMONDIR = ../common 54 55CC =@CC@ 56CFLAGS =@CFLAGS@ 57CXX =@CXX@ 58LDSO =@LDSO@ 59PLUGINEXT =@PLUGINEXT@ 60STDCCFLAGS =@STDCCFLAGS@ 61LDFLAGS =@LDFLAGS@ 62 63EXTRACCFLAGS += -I$(COMMONDIR) -I$(PLUGINDIR) 64 65STDCCFLAGS += -Wall -Wno-unused -Wformat -Wformat-security -Wreorder -fno-strict-aliasing -Wno-write-strings 66 67vpath %.cxx $(SHAREDDIR) 68vpath %.cxx $(COMMONDIR) 69vpath %.o $(OBJDIR) 70 71SRCS += h263ffmpeg.cxx \ 72 $(COMMONDIR)/trace.cxx 73 74OBJDIR = ./obj 75 76$(OBJDIR)/%.o : %.cxx 77 @mkdir -p $(OBJDIR) >/dev/null 2>&1 78 $(CXX) -I../../../include $(EXTRACCFLAGS) $(STDCCFLAGS) $(OPTCCFLAGS) $(CFLAGS) -c $< -o $@ 79 80PLUGIN = ./$(BASENAME)_video_pwplugin.$(PLUGINEXT) 81STATIC = ./lib$(BASENAME)_video_s.a 82 83OBJECTS = $(addprefix $(OBJDIR)/,$(patsubst %.c,%.o,$(patsubst %.cxx,%.o,$(notdir $(SRCS))))) 84 85$(PLUGIN): $(OBJECTS) 86ifeq (,$(findstring solaris,$(target_os))) 87 $(CXX) $(LDSO) -o $@ $^ 88else 89 $(CXX) $(LDSO) $@ -o $@ $^ 90endif 91 92install: 93 mkdir -p $(DESTDIR)$(libdir)/$(VC_PLUGIN_DIR) 94 install $(PLUGIN) $(DESTDIR)$(libdir)/$(VC_PLUGIN_DIR) 95 96uninstall: 97 rm -f $(DESTDIR)$(libdir)/$(VC_PLUGIN_DIR)/$(PLUGIN) 98 99clean: 100 rm -f $(OBJECTS) $(PLUGIN) 101 102########################################### 103