PageRenderTime 55ms CodeModel.GetById 51ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 1ms

/trunk/Examples/lua/embed3/Makefile

#
Makefile | 20 lines | 13 code | 4 blank | 3 comment | 0 complexity | a08815ab72e3e723240785d3f6529fc4 MD5 | raw file
 1TOP        = ../..
 2SWIG       = $(TOP)/../preinst-swig
 3TARGET     = embed3
 4SRCS      = example.cpp
 5INTERFACE  = example.i
 6LUA_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
11all::
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
16clean::
17	$(MAKE) -f $(TOP)/Makefile lua_clean
18
19check: all
20