blob: 51d0e6180e783230a65bb2a83207208c85d5d4a4 [file] [log] [blame]
TOP = ../..
SWIG = $(TOP)/../preinst-swig
TARGET = embed
SRCS = example.c
INTERFACE = example.i
LUA_INTERP = embed.c
# this is a little different to normal as we have our own special interpreter
# which we want to static link
all::
$(MAKE) -f $(TOP)/Makefile $(SWIGLIB) SRCS='$(SRCS)' SWIG='$(SWIG)' \
SWIGOPT='$(SWIGOPT)' TARGET='$(TARGET)' INTERFACE='example.i' LUA_INTERP='$(LUA_INTERP)' lua_static
clean::
$(MAKE) -f $(TOP)/Makefile lua_clean
check: all