You've already forked rdsspy-lua-host
mirror of
https://github.com/KubaPro010/rdsspy-lua-host.git
synced 2026-02-26 18:35:01 +01:00
build: native or generic builds
This commit is contained in:
3
.gitignore
vendored
3
.gitignore
vendored
@@ -1,2 +1,3 @@
|
|||||||
*.dll
|
*.dll
|
||||||
liblua
|
liblua
|
||||||
|
liblua.native
|
||||||
13
Makefile
13
Makefile
@@ -2,11 +2,20 @@ liblua:
|
|||||||
gcc -c lua/*.c
|
gcc -c lua/*.c
|
||||||
ar rcs liblua *.o
|
ar rcs liblua *.o
|
||||||
rm *.o
|
rm *.o
|
||||||
|
liblua-native:
|
||||||
|
gcc -c lua/*.c -march=native
|
||||||
|
ar rcs liblua.native *.o
|
||||||
|
rm *.o
|
||||||
|
|
||||||
build: liblua
|
build: liblua
|
||||||
gcc -O2 -shared -static -o luahost.dll plugin.c liblua -lgdi32 -luser32 -lshell32 \
|
gcc -O2 -shared -static -o luahost-x86.dll plugin.c liblua -lgdi32 -luser32 -lshell32 \
|
||||||
-Wl,--add-stdcall-alias \
|
-Wl,--add-stdcall-alias \
|
||||||
-ffunction-sections -fdata-sections
|
-ffunction-sections -fdata-sections
|
||||||
|
|
||||||
install: build
|
build-native: liblua
|
||||||
|
gcc -O2 -shared -static -o luahost.dll plugin.c liblua.native -lgdi32 -luser32 -lshell32 -march=native \
|
||||||
|
-Wl,--add-stdcall-alias \
|
||||||
|
-ffunction-sections -fdata-sections
|
||||||
|
|
||||||
|
install: build-native
|
||||||
cp luahost.dll "/c/Program Files (x86)/RDS Spy/plugins"
|
cp luahost.dll "/c/Program Files (x86)/RDS Spy/plugins"
|
||||||
Reference in New Issue
Block a user