summaryrefslogtreecommitdiff
path: root/tolua/src/bin/GNUmakefile
diff options
context:
space:
mode:
authorAndreas Baumann <abaumann@yahoo.com>2014-10-14 09:49:43 +0200
committerAndreas Baumann <abaumann@yahoo.com>2014-10-14 09:49:43 +0200
commitb30d86ed803cf626e2cf167e83ca331388bbee68 (patch)
tree77216a08af8bbd3728f6e0cc24a3266a7a6375e7 /tolua/src/bin/GNUmakefile
parent49f7abb97a4225d25cf484c876a51bbe215727a2 (diff)
downloadcrawler-b30d86ed803cf626e2cf167e83ca331388bbee68.tar.gz
crawler-b30d86ed803cf626e2cf167e83ca331388bbee68.tar.bz2
add NMAKE build system to tolua on Windows
Diffstat (limited to 'tolua/src/bin/GNUmakefile')
-rw-r--r--tolua/src/bin/GNUmakefile33
1 files changed, 33 insertions, 0 deletions
diff --git a/tolua/src/bin/GNUmakefile b/tolua/src/bin/GNUmakefile
new file mode 100644
index 0000000..93daf77
--- /dev/null
+++ b/tolua/src/bin/GNUmakefile
@@ -0,0 +1,33 @@
+# makefile for tolua executable
+
+TOLUA=../..
+
+include $(TOLUA)/config
+
+OBJS= \
+ tolua.o \
+ toluabind.o
+
+OBJS_D= \
+ tolua_lua.o
+
+T= $(TOLUA)/bin/tolua
+T_D = $(TOLUA)/bin/tolua_lua
+
+all: $(T)
+
+$(T): $(OBJS)
+ $(CC) -o $@ $(OBJS) $(LIB) -ltolua -llua -lm
+
+toluabind.c: $(T_D)
+ $(T_D) -o toluabind.c tolua.pkg
+
+$(T_D): $(OBJS_D)
+ $(CC) -o $@ $(OBJS_D) $(LIB) -ltolua -llua -lm
+
+tolua_lua.o: tolua.c
+ $(CC) -c -DLUA_SOURCE $(INC) -o $@ $<
+
+clean:
+ rm -f tolua_lua.o $(OBJS) $(OBJS_D) $(T) $(T_D)
+