aboutsummaryrefslogtreecommitdiff
path: root/src/3rdParty/lua/Makefile
diff options
context:
space:
mode:
authorLi Jin <dragon-fly@qq.com>2022-12-02 11:34:46 +0800
committerLi Jin <dragon-fly@qq.com>2022-12-02 11:34:46 +0800
commit5e453de810f8a5e54351609857d742481f057498 (patch)
treea76b528b5b92a13a37bce2e9b99252a47af586a2 /src/3rdParty/lua/Makefile
parent298b18dbe852300199cc529c942a181bead5f135 (diff)
downloadyuescript-5e453de810f8a5e54351609857d742481f057498.tar.gz
yuescript-5e453de810f8a5e54351609857d742481f057498.tar.bz2
yuescript-5e453de810f8a5e54351609857d742481f057498.zip
remove unused Lua source files.
Diffstat (limited to 'src/3rdParty/lua/Makefile')
-rw-r--r--src/3rdParty/lua/Makefile25
1 files changed, 3 insertions, 22 deletions
diff --git a/src/3rdParty/lua/Makefile b/src/3rdParty/lua/Makefile
index 1907381..3988cb3 100644
--- a/src/3rdParty/lua/Makefile
+++ b/src/3rdParty/lua/Makefile
@@ -37,14 +37,8 @@ CORE_O= lapi.o lcode.o lctype.o ldebug.o ldo.o ldump.o lfunc.o lgc.o llex.o lmem
37LIB_O= lauxlib.o lbaselib.o lcorolib.o ldblib.o liolib.o lmathlib.o loadlib.o loslib.o lstrlib.o ltablib.o lutf8lib.o linit.o 37LIB_O= lauxlib.o lbaselib.o lcorolib.o ldblib.o liolib.o lmathlib.o loadlib.o loslib.o lstrlib.o ltablib.o lutf8lib.o linit.o
38BASE_O= $(CORE_O) $(LIB_O) $(MYOBJS) 38BASE_O= $(CORE_O) $(LIB_O) $(MYOBJS)
39 39
40LUA_T= lua 40ALL_O= $(BASE_O)
41LUA_O= lua.o 41ALL_T= $(LUA_A)
42
43LUAC_T= luac
44LUAC_O= luac.o
45
46ALL_O= $(BASE_O) $(LUA_O) $(LUAC_O)
47ALL_T= $(LUA_A) $(LUA_T) $(LUAC_T)
48ALL_A= $(LUA_A) 42ALL_A= $(LUA_A)
49 43
50# Targets start here. 44# Targets start here.
@@ -60,15 +54,6 @@ $(LUA_A): $(BASE_O)
60 $(AR) $@ $(BASE_O) 54 $(AR) $@ $(BASE_O)
61 $(RANLIB) $@ 55 $(RANLIB) $@
62 56
63$(LUA_T): $(LUA_O) $(LUA_A)
64 $(CC) -o $@ $(LDFLAGS) $(LUA_O) $(LUA_A) $(LIBS)
65
66$(LUAC_T): $(LUAC_O) $(LUA_A)
67 $(CC) -o $@ $(LDFLAGS) $(LUAC_O) $(LUA_A) $(LIBS)
68
69test:
70 ./$(LUA_T) -v
71
72clean: 57clean:
73 $(RM) $(ALL_T) $(ALL_O) 58 $(RM) $(ALL_T) $(ALL_O)
74 59
@@ -129,10 +114,9 @@ Darwin macos macosx:
129 $(MAKE) $(ALL) SYSCFLAGS="-DLUA_USE_MACOSX -DLUA_USE_READLINE" SYSLIBS="-lreadline" 114 $(MAKE) $(ALL) SYSCFLAGS="-DLUA_USE_MACOSX -DLUA_USE_READLINE" SYSLIBS="-lreadline"
130 115
131mingw: 116mingw:
132 $(MAKE) "LUA_A=lua54.dll" "LUA_T=lua.exe" \ 117 $(MAKE) "LUA_A=lua54.dll" \
133 "AR=$(CC) -shared -o" "RANLIB=strip --strip-unneeded" \ 118 "AR=$(CC) -shared -o" "RANLIB=strip --strip-unneeded" \
134 "SYSCFLAGS=-DLUA_BUILD_AS_DLL" "SYSLIBS=" "SYSLDFLAGS=-s" lua.exe 119 "SYSCFLAGS=-DLUA_BUILD_AS_DLL" "SYSLIBS=" "SYSLDFLAGS=-s" lua.exe
135 $(MAKE) "LUAC_T=luac.exe" luac.exe
136 120
137posix: 121posix:
138 $(MAKE) $(ALL) SYSCFLAGS="-DLUA_USE_POSIX" 122 $(MAKE) $(ALL) SYSCFLAGS="-DLUA_USE_POSIX"
@@ -206,9 +190,6 @@ ltable.o: ltable.c lprefix.h lua.h luaconf.h ldebug.h lstate.h lobject.h \
206ltablib.o: ltablib.c lprefix.h lua.h luaconf.h lauxlib.h lualib.h 190ltablib.o: ltablib.c lprefix.h lua.h luaconf.h lauxlib.h lualib.h
207ltm.o: ltm.c lprefix.h lua.h luaconf.h ldebug.h lstate.h lobject.h \ 191ltm.o: ltm.c lprefix.h lua.h luaconf.h ldebug.h lstate.h lobject.h \
208 llimits.h ltm.h lzio.h lmem.h ldo.h lgc.h lstring.h ltable.h lvm.h 192 llimits.h ltm.h lzio.h lmem.h ldo.h lgc.h lstring.h ltable.h lvm.h
209lua.o: lua.c lprefix.h lua.h luaconf.h lauxlib.h lualib.h
210luac.o: luac.c lprefix.h lua.h luaconf.h lauxlib.h ldebug.h lstate.h \
211 lobject.h llimits.h ltm.h lzio.h lmem.h lopcodes.h lopnames.h lundump.h
212lundump.o: lundump.c lprefix.h lua.h luaconf.h ldebug.h lstate.h \ 193lundump.o: lundump.c lprefix.h lua.h luaconf.h ldebug.h lstate.h \
213 lobject.h llimits.h ltm.h lzio.h lmem.h ldo.h lfunc.h lstring.h lgc.h \ 194 lobject.h llimits.h ltm.h lzio.h lmem.h ldo.h lfunc.h lstring.h lgc.h \
214 lundump.h 195 lundump.h