add test program for lua

This commit is contained in:
Tony Theodore 2010-12-06 01:31:02 +11:00
parent e059b07427
commit 2405db709f
2 changed files with 20 additions and 0 deletions

15
src/lua-test.c Normal file
View File

@ -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;
}

View File

@ -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