Merged from branches/szager-python-builtin
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12596 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
commit
bc9a32a658
53 changed files with 3413 additions and 563 deletions
35
Examples/python/performance/Makefile
Normal file
35
Examples/python/performance/Makefile
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
ifeq (,$(PY3))
|
||||
PYSCRIPT = runme.py
|
||||
else
|
||||
PYSCRIPT = runme3.py
|
||||
endif
|
||||
|
||||
default : all
|
||||
|
||||
include ../../Makefile
|
||||
|
||||
SUBDIRS := constructor func hierarchy operator hierarchy_operator
|
||||
|
||||
all : $(SUBDIRS:%=%-build)
|
||||
@for subdir in $(SUBDIRS); do \
|
||||
echo Running $$subdir test... ; \
|
||||
echo -------------------------------------------------------------------------------- ; \
|
||||
cd $$subdir; \
|
||||
env LD_LIBRARY_PATH=.:$$LD_LIBRARY_PATH PYTHONPATH=$(srcdir):$$PYTHONPATH $(PYTHON) $(PYSCRIPT); \
|
||||
cd ..; \
|
||||
done
|
||||
|
||||
$(SUBDIRS) :
|
||||
$(MAKE) -C $@
|
||||
@echo Running $$subdir test...
|
||||
@echo --------------------------------------------------------------------------------
|
||||
cd $@ && env LD_LIBRARY_PATH=.:$$LD_LIBRARY_PATH PYTHONPATH=$(srcdir):$$PYTHONPATH $(PYTHON) $(PYSCRIPT)
|
||||
|
||||
%-build :
|
||||
$(MAKE) -C $*
|
||||
|
||||
%-clean :
|
||||
$(MAKE) -s -C $* clean
|
||||
|
||||
clean : $(SUBDIRS:%=%-clean)
|
||||
rm -f *.pyc
|
||||
Loading…
Add table
Add a link
Reference in a new issue