added python eslmod installation to esl Makefiles

This commit is contained in:
Michal Bielicki - cypromis 2011-02-16 20:35:11 +01:00
parent 0d8e945bd1
commit b83a30caf6
2 changed files with 7 additions and 0 deletions

View File

@ -95,4 +95,7 @@ managedmod: $(MYLIB)
phpmod-install: phpmod
$(MAKE) -C php install
pymod-install: pymod
$(MAKE) -C python install
everymod: perlmod phpmod luamod pymod rubymod javamod managedmod

View File

@ -1,5 +1,6 @@
LOCAL_CFLAGS=`python ./python-config --includes`
LOCAL_LDFLAGS=`python ./python-config --ldflags`
SITE_DIR=`python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()"`
all: _ESL.so
@ -12,6 +13,9 @@ esl_wrap.o: esl_wrap.cpp
_ESL.so: esl_wrap.o
$(CXX) $(SOLINK) esl_wrap.o $(MYLIB) $(LOCAL_LDFLAGS) -o _ESL.so -L. $(LIBS)
install: _ESL.so
install -o root -g root -m 644 _ESL.so $(SITE_DIR)
clean:
rm -f *.o *.so *~