diff options
| author | Stefan Zager <szager@gmail.com> | 2011-02-09 07:31:08 +0000 |
|---|---|---|
| committer | Stefan Zager <szager@gmail.com> | 2011-02-09 07:31:08 +0000 |
| commit | 25be33dcd479870fa444fe33403b9bc55086decc (patch) | |
| tree | 4084a1ac6b75f943690e35984cc5ab48451595eb /Examples/python/performance/func/Makefile | |
| parent | f39c09e12d444bd6f9e974d3608c2c2f02455891 (diff) | |
| download | swig-25be33dcd479870fa444fe33403b9bc55086decc.tar.gz | |
A collection of performance tests. The variants we're most
interested in are:
- swig run without any special parameters
- swig run with -O
- swig run with -builtin
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/szager-python-builtin@12444 626c5289-ae23-0410-ae9c-e8d60b6d4f22
Diffstat (limited to 'Examples/python/performance/func/Makefile')
| -rw-r--r-- | Examples/python/performance/func/Makefile | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/Examples/python/performance/func/Makefile b/Examples/python/performance/func/Makefile new file mode 100644 index 000000000..0df09d908 --- /dev/null +++ b/Examples/python/performance/func/Makefile @@ -0,0 +1,23 @@ +TOP = ../../.. +SWIG = $(TOP)/../preinst-swig +CXXSRCS = +TARGET = Simple +INTERFACE = Simple.i + +default : all + +all : + $(MAKE) -f $(TOP)/Makefile CXXSRCS='$(CXXSRCS)' SWIG='$(SWIG) -module Simple_baseline' \ + TARGET='$(TARGET)_baseline' INTERFACE='$(INTERFACE)' python_cpp + $(MAKE) -f $(TOP)/Makefile CXXSRCS='$(CXXSRCS)' SWIG='$(SWIG) -O -module Simple_optimized' \ + TARGET='$(TARGET)_optimized' INTERFACE='$(INTERFACE)' python_cpp + $(MAKE) -f $(TOP)/Makefile CXXSRCS='$(CXXSRCS)' SWIG='$(SWIG) -builtin -O -module Simple_builtin' \ + TARGET='$(TARGET)_builtin' INTERFACE='$(INTERFACE)' python_cpp + +static : + $(MAKE) -f $(TOP)/Makefile CXXSRCS='$(CXXSRCS)' SWIG='$(SWIG)' \ + TARGET='mypython' INTERFACE='$(INTERFACE)' python_cpp_static + +clean : + $(MAKE) -f $(TOP)/Makefile python_clean + rm -f $(TARGET).py |
