add test program for lua

pull/13/head
Tony Theodore 14 years ago
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…
Cancel
Save