Mercurial > mxe-octave
changeset 1475:72864135031e
add test program for lua
author | Tony Theodore <tonyt@logyst.com> |
---|---|
date | Mon, 06 Dec 2010 01:31:02 +1100 |
parents | fc0c8dbcc6a8 |
children | aada6ecef7dd |
files | src/lua-test.c src/lua.mk |
diffstat | 2 files changed, 20 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/lua-test.c Mon Dec 06 01:31:02 2010 +1100 @@ -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; +}
--- a/src/lua.mk Sun Dec 05 22:14:01 2010 +1100 +++ b/src/lua.mk Mon Dec 06 01:31:02 2010 +1100 @@ -32,4 +32,9 @@ 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