swig/Examples/lua/dual/Makefile
Mark Gossage 89c3acea19 [lua] Fix a bug in the class hierachy code, where the methods were not propagated,
if the name ordering was in a certain order.
Added new example programs (dual, embed) and runtime tests for test-suite.

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10177 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-12-04 09:25:58 +00:00

20 lines
653 B
Makefile

TOP = ../..
SWIG = $(TOP)/../preinst-swig
TARGET = dual
CXXSRCS = example2_wrap.cxx
INTERFACE = dual.i
LUA_INTERP = dual.cpp
# this is a little different ot normal as we need to static link two modules and a custom intepreter
# we need the external runtime, then swig examples2, and build the module as normal
all::
$(SWIG) -lua -external-runtime
$(SWIG) -c++ -lua $(SWIGOPT) example2.i
$(MAKE) -f $(TOP)/Makefile $(SWIGLIB) CXXSRCS='$(CXXSRCS)' SWIG='$(SWIG)' \
SWIGOPT='$(SWIGOPT)' TARGET='$(TARGET)' INTERFACE='example.i' LUA_INTERP='$(LUA_INTERP)' lua_static_cpp
clean::
$(MAKE) -f $(TOP)/Makefile lua_clean
check: all