swig/Examples/test-suite/python/Makefile.in
John Lenz 75e462baa8 Removed ability to share type information by C linking
All type sharing happens through a global variable in the target language.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6390 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-16 18:23:59 +00:00

76 lines
1.5 KiB
Makefile

#######################################################################
# $Header$
# Makefile for python test-suite
#######################################################################
LANGUAGE = python
SCRIPTSUFFIX = _runme.py
srcdir = @srcdir@
top_srcdir = @top_srcdir@
top_builddir = @top_builddir@
CPP_TEST_CASES += \
argcargvtest \
attributetest \
autodoc \
callback \
complextest \
director_stl \
file_test \
implicittest \
inout \
inplaceadd \
kwargs \
lib_std_except \
lib_std_vectora \
lib_std_map \
lib_std_wstring \
nondynamic \
primitive_types \
std_containers \
C_TEST_CASES += \
file_test \
nondynamic
#
# This test only works with modern C compilers
#
#C_TEST_CASES += \
# complextest
include $(srcdir)/../common.mk
# Overridden variables here
LIBS = -L.
# Rules for the different types of tests
%.cpptest:
$(setup) \
($(swig_and_compile_cpp); ) &&\
$(run_testcase)
%.ctest:
$(setup) \
($(swig_and_compile_c); ) &&\
$(run_testcase)
%.multicpptest:
$(setup) \
($(swig_and_compile_multi_cpp); ) &&\
$(run_testcase)
# Runs the testcase. A testcase is only run if
# a file is found which has _runme.py appended after the testcase name.
run_testcase = \
if [ -f $(srcdir)/$(SCRIPTPREFIX)$*$(SCRIPTSUFFIX) ]; then ( \
env LD_LIBRARY_PATH=.:$$LD_LIBRARY_PATH PYTHONPATH=$(srcdir):$$PYTHONPATH python $(srcdir)/$(SCRIPTPREFIX)$*$(SCRIPTSUFFIX);) \
fi;
# Clean: remove the generated .py file
%.clean:
@rm -f $*.py;
clean:
$(MAKE) -f $(top_builddir)/$(EXAMPLES)/Makefile python_clean