Upstream version 1.3.40
[profile/ivi/swig.git] / Examples / lua / embed3 / Makefile
1 TOP        = ../..
2 SWIG       = $(TOP)/../preinst-swig
3 TARGET     = embed3
4 SRCS      = example.cpp
5 INTERFACE  = example.i
6 LUA_INTERP = embed3.cpp
7
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
11 all::
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
15
16 clean::
17         $(MAKE) -f $(TOP)/Makefile lua_clean
18
19 check: all
20