PageRenderTime 138ms CodeModel.GetById 108ms app.highlight 1ms RepoModel.GetById 7ms 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
 1TOP        = ../..
 2SWIG       = $(TOP)/../preinst-swig
 3CXXSRCS    = example.cxx
 4TARGET     = example
 5INTERFACE  = example.i
 6LIBS       = -lm
 7SWIGOPT    = 
 8
 9all::
10	$(SWIG) -python -external-runtime
11	$(MAKE) -f $(TOP)/Makefile $(SWIGLIB) CXXSRCS='$(CXXSRCS)' SWIG='$(SWIG)' \
12	SWIGOPT='$(SWIGOPT)' TARGET='$(TARGET)' INTERFACE='$(INTERFACE)' python_cpp
13
14static::
15	$(MAKE) -f $(TOP)/Makefile $(SWIGLIB) CXXSRCS='$(CXXSRCS)' SWIG='$(SWIG)' \
16	SWIGOPT='$(SWIGOPT)' TARGET='mypython' INTERFACE='$(INTERFACE)' python_cpp_static
17
18clean::
19	$(MAKE) -f $(TOP)/Makefile python_clean
20	rm -f $(TARGET).py
21	rm -f swigpyrun.h
22
23check: all
24