PageRenderTime 10ms CodeModel.GetById 1ms app.highlight 5ms RepoModel.GetById 2ms app.codeStats 0ms

/trunk/Examples/python/swigrun/Makefile

#
Makefile | 25 lines | 20 code | 5 blank | 0 comment | 0 complexity | f0bb3e12f597b2ab2bb93d4e58569b01 MD5 | raw file
 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
25	$(MAKE) -f $(TOP)/Makefile python_run