summaryrefslogtreecommitdiff
path: root/Examples/lua/embed/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Examples/lua/embed/Makefile')
-rw-r--r--Examples/lua/embed/Makefile18
1 files changed, 18 insertions, 0 deletions
diff --git a/Examples/lua/embed/Makefile b/Examples/lua/embed/Makefile
new file mode 100644
index 0000000..51d0e61
--- /dev/null
+++ b/Examples/lua/embed/Makefile
@@ -0,0 +1,18 @@
+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
+