mirror of https://git.wownero.com/dsc/mxe.git
add test program for lua
This commit is contained in:
parent
e059b07427
commit
2405db709f
|
@ -0,0 +1,15 @@
|
|||
/* This file is part of mingw-cross-env. */
|
||||
/* See doc/index.html for further information. */
|
||||
|
||||
#include <stdio.h>
|
||||
#include <lua.h>
|
||||
#include <lauxlib.h>
|
||||
|
||||
int main (int argc, char **argv) {
|
||||
(void)argc;
|
||||
(void)argv;
|
||||
|
||||
lua_State *L = lua_open();
|
||||
lua_close(L);
|
||||
return 0;
|
||||
}
|
|
@ -32,4 +32,9 @@ define $(PKG)_BUILD
|
|||
RANLIB='$(TARGET)-ranlib' \
|
||||
INSTALL='$(INSTALL)' \
|
||||
install ranlib
|
||||
|
||||
'$(TARGET)-gcc' \
|
||||
-W -Wall -Werror -std=c99 -pedantic \
|
||||
'$(2).c' -o '$(PREFIX)/$(TARGET)/bin/test-lua.exe' \
|
||||
-llua
|
||||
endef
|
||||
|
|
Loading…
Reference in New Issue