diff options
author | laforge <laforge@e0336214-984f-0b4b-a45f-81c69e1f0ede> | 2008-05-07 10:33:49 +0000 |
---|---|---|
committer | laforge <laforge@e0336214-984f-0b4b-a45f-81c69e1f0ede> | 2008-05-07 10:33:49 +0000 |
commit | 8a9866cada64f6b5b051d7494bb3ccc28a8e2efd (patch) | |
tree | a232a03363a4c38a57aa9a6277c63089b171e5e5 /python/Makefile | |
parent | ec2cf3b617a462bda42405acd5c92dff408911b7 (diff) |
python update
git-svn-id: https://svn.gnumonks.org/trunk/librfid@2098 e0336214-984f-0b4b-a45f-81c69e1f0ede
Diffstat (limited to 'python/Makefile')
-rw-r--r-- | python/Makefile | 23 |
1 files changed, 20 insertions, 3 deletions
diff --git a/python/Makefile b/python/Makefile index 5a77b15..93a4fe9 100644 --- a/python/Makefile +++ b/python/Makefile @@ -1,17 +1,34 @@ +# Makefile for Python bindings +# (C) 2007-2008 by Kushal Das <kushal@openpcd.org> + +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License version 2 +# as published by the Free Software Foundation + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. + +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + + + CC=gcc PYTHON=python PREFIX=/usr PYTHON_VER=2.5 PYTHON_INC=$(PREFIX)/include/python$(PYTHON_VER) PYTHON_LIB=$(PREFIX)/lib/python$(PYTHON_VER)/site-packages/ -LIBRFID_DIR=../src/.libs/librfid.la -LIBOPENPCD_DIR=/usr/local/openpcd/lib +LIBRFID_DIR=../src/.libs SOURCE_MAIN=pyrfid.c SOURCES=$(SOURCE_MAIN) openpcd.c INCLUDES=-I$(PYTHON_INC) -I../include/ -I../utils/ CFLAGS=-O3 -Wall $(INCLUDES) -LDFLAGS=-shared -L$(LIBRFID_DIR) -lrfid -L$(LIBOPENPCD_DIR) -lusb -Wl,--rpath -Wl,/usr/local/lib $(LIBS) +LDFLAGS=-shared -L$(LIBRFID_DIR) -lrfid -lusb -Wl,--rpath -Wl,/usr/local/lib $(LIBS) TARGET=$(SOURCE_MAIN:.c=.so) OBJECTS=$(SOURCES:.c=.o) |