diff options
author | chai <chaifix@163.com> | 2021-11-08 10:53:42 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2021-11-08 10:53:42 +0800 |
commit | 5f46b4102c179680d613b6b9e0e6d392318030d2 (patch) | |
tree | 16527828dc89133f7af41acf6f5c13c23743e7ef /ThirdParty/tolua-5.2.4/src/bin/Makefile | |
parent | 138d3f4d3d6e2aaf5ba34f89af15ef85ea074357 (diff) |
+ tolua
Diffstat (limited to 'ThirdParty/tolua-5.2.4/src/bin/Makefile')
-rw-r--r-- | ThirdParty/tolua-5.2.4/src/bin/Makefile | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/ThirdParty/tolua-5.2.4/src/bin/Makefile b/ThirdParty/tolua-5.2.4/src/bin/Makefile new file mode 100644 index 0000000..4731778 --- /dev/null +++ b/ThirdParty/tolua-5.2.4/src/bin/Makefile @@ -0,0 +1,36 @@ +# 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) + +klean: + rm -f tolua_lua.o $(OBJS) -$(OBJS_D) $(T_D) + |