1###################################################################### 2# 3# Ming, an SWF output library 4# 5# Copyright (C) 2010 Sandro Santilli <strk@keybit.net> 6# 7# This library is free software; you can redistribute it and/or 8# modify it under the terms of the GNU Lesser General Public 9# License as published by the Free Software Foundation; either 10# version 2.1 of the License, or (at your option) any later version. 11# 12# This library is distributed in the hope that it will be useful, 13# but WITHOUT ANY WARRANTY; without even the implied warranty of 14# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15# Lesser General Public License for more details. 16# 17# You should have received a copy of the GNU Lesser General Public 18# License along with this library; if not, write to the Free Software 19# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 20# 21###################################################################### 22 23EXTRA_DIST = ming.c php_ming.h README.PHP4 \ 24 README.PHP5 ming.dsp 25 26pkglib_LTLIBRARIES = ming.la 27ming_la_SOURCES = ming.c php_ming.h 28ming_la_LIBADD = $(top_builddir)/src/libming.la 29# TODO: check if -no-undefined should be added 30ming_la_LDFLAGS = -module -avoid-version 31# TODO: drop conditionals from ming.c and let it bound to current code 32ming_la_CFLAGS = `php-config --includes` \ 33 -DCOMPILE_DL_MING \ 34 -DHAVE_MING=1 \ 35 -DHAVE_NEW_MING=1 \ 36 -DHAVE_SWFVIDEOSTREAM_NEXTFRAME=1 \ 37 -DHAVE_SWFVIDEOSTREAM_SEEK=1 \ 38 -DHAVE_SWFVIDEOSTREAM_SETFRAMEMODE \ 39 -UHAVE_CONFIG_H 40 41install: all 42 $(INSTALL) -d "$(DESTDIR)"/`php-config --extension-dir` 43 $(INSTALL) -m 755 .libs/ming.so "$(DESTDIR)"/`php-config --extension-dir` 44