summaryrefslogtreecommitdiff
path: root/Examples/lua/embed/Makefile
blob: 51d0e6180e783230a65bb2a83207208c85d5d4a4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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