#
# Makefile for the x264 H.264 Video Codec
#
# 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): ______________________________________.
#
# $Revision: 25962 $
# $Author: rjongbloed $
# $Date: 2011-06-02 20:10:44 -0500 (Thu, 02 Jun 2011) $
#

BASENAME := h264_x264

SHAREDDIR := ./shared
COMMONDIR := ../common
SRCDIR    := .
SRCS    += h264-x264.cxx \
           $(SHAREDDIR)/h264frame.cxx \
           $(COMMONDIR)/dyna.cxx \

SUBDIRS := gpl

CFLAGS += @LIBAVCODEC_CFLAGS@ -I$(COMMONDIR) -DLIB_DIR='"$(libdir)"' -DVC_PLUGIN_DIR='"@VC_PLUGIN_DIR@"'
LIBS   += @DL_LIBS@

WIN32=@WIN32@
ifeq ($(WIN32),yes)
SRCS += h264pipe_win32.cxx
else
SRCS += h264pipe_unix.cxx
endif

vpath	%.cxx $(SHAREDDIR)
vpath	%.cxx $(COMMONDIR)

INSTALL_DIR := @VC_PLUGIN_DIR@
PLUGINDIR   := @PLUGINDIR@
include $(PLUGINDIR)/plugin-inc.mak

###########################################
