diff options
author | Andreas Baumann <abaumann@yahoo.com> | 2014-10-14 09:49:43 +0200 |
---|---|---|
committer | Andreas Baumann <abaumann@yahoo.com> | 2014-10-14 09:49:43 +0200 |
commit | b30d86ed803cf626e2cf167e83ca331388bbee68 (patch) | |
tree | 77216a08af8bbd3728f6e0cc24a3266a7a6375e7 /tolua/src/bin/GNUmakefile | |
parent | 49f7abb97a4225d25cf484c876a51bbe215727a2 (diff) | |
download | crawler-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/GNUmakefile | 33 |
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) + |