PageRenderTime 52ms CodeModel.GetById 21ms RepoModel.GetById 0ms app.codeStats 0ms

/tags/rel-1-3-26/SWIG/Examples/python/swigrun/Makefile

#
Makefile | 24 lines | 19 code | 5 blank | 0 comment | 0 complexity | 0d0712e123d02a728d099ba265ddba37 MD5 | raw file
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
  1. TOP = ../..
  2. SWIG = $(TOP)/../preinst-swig
  3. CXXSRCS = example.cxx
  4. TARGET = example
  5. INTERFACE = example.i
  6. LIBS = -lm
  7. SWIGOPT =
  8. all::
  9. $(SWIG) -python -external-runtime
  10. $(MAKE) -f $(TOP)/Makefile $(SWIGLIB) CXXSRCS='$(CXXSRCS)' SWIG='$(SWIG)' \
  11. SWIGOPT='$(SWIGOPT)' TARGET='$(TARGET)' INTERFACE='$(INTERFACE)' python_cpp
  12. static::
  13. $(MAKE) -f $(TOP)/Makefile $(SWIGLIB) CXXSRCS='$(CXXSRCS)' SWIG='$(SWIG)' \
  14. SWIGOPT='$(SWIGOPT)' TARGET='mypython' INTERFACE='$(INTERFACE)' python_cpp_static
  15. clean::
  16. $(MAKE) -f $(TOP)/Makefile python_clean
  17. rm -f $(TARGET).py
  18. rm -f swigpyrun.h
  19. check: all