2 SWIG = $(TOP)/../preinst-swig
6 LUA_INTERP = embed3.cpp
8 # this is a little different to normal as we have our own special interpreter
9 # which we want to static link
10 # we also need the external runtime, so we can get access to certain internals of SWIG
12 $(SWIG) -c++ -lua $(SWIGOPT) -external-runtime swigluarun.h
13 $(MAKE) -f $(TOP)/Makefile $(SWIGLIB) SRCS='$(SRCS)' SWIG='$(SWIG)' \
14 SWIGOPT='$(SWIGOPT)' TARGET='$(TARGET)' INTERFACE='example.i' LUA_INTERP='$(LUA_INTERP)' lua_static_cpp
17 $(MAKE) -f $(TOP)/Makefile lua_clean