1
# $Id: Makefile,v 1.2 2003/02/08 00:51:45 dairiki Exp $
3
# Copyright (C) 2003 Geoffrey T. Dairiki <dairiki@dairiki.org>
5
# This file is part of Pyxine, Python bindings for xine.
7
# Pyxine is free software; you can redistribute it and/or
8
# modify it under the terms of the GNU General Public License
9
# as published by the Free Software Foundation; either version 2
10
# of the License, or (at your option) any later version.
12
# Pyxine 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
15
# GNU General Public License for more details.
17
# You should have received a copy of the GNU General Public License
18
# along with this program; if not, write to the Free Software
19
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
25
PYSOURCE = config.py constants.py constwrap.py cstruct.py
26
PYSOURCE += event.py __init__.py osd.py post.py
27
PYSOURCE += weakmethod.py x11.py xine.py
29
GEN_FILES = libxine_wrap.c pxlib.py
30
DIST_FILES= Makefile libxine.i fixed_xine.h orig_xine.h
31
DIST_FILES+= $(GEN_FILES) $(PYSOURCE)
33
OFILES = libxine_wrap.o
34
SOFILES = libxine$(SO)
35
PYFILES = $(PYSOURCE) pxlib.py
36
BLIB_FILES= $(SOFILES) $(PYFILES)
38
include $(TOP)/common.mak
40
libxine$(SO): $(OFILES)
41
$(LDSHARED) $^ $(LIBS) -o $@
43
libxine_wrap.c: libxine.i fixed_xine.h
44
$(SWIG) -python -dnone libxine.i
46
pxlib.py: $(TOP)/pxlib/pxlib.py
49
$(TOP)/pxlib/pxlib.py: force
50
make -C $(TOP)/pxlib pxlib.py