From b075d37bcbb2b6c489860a9204f66bfc3240e78b Mon Sep 17 00:00:00 2001 From: Igor Khomyakov Date: Tue, 13 Mar 2012 00:22:38 -0400 Subject: [PATCH] updated build to compile with local lua, added INSTALL, applied a few minor fixes --- miconf/INSTALL | 6 ++++++ miconf/Makefile | 2 +- miconf/miconf.c | 1 + 3 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 miconf/INSTALL diff --git a/miconf/INSTALL b/miconf/INSTALL new file mode 100644 index 0000000..2505e99 --- /dev/null +++ b/miconf/INSTALL @@ -0,0 +1,6 @@ +cd ../lua +make # this prints the list of available platforms +make macosx # or another platform +cd ../miconf +make +sudo cp miconf /usr/local/bin diff --git a/miconf/Makefile b/miconf/Makefile index bb10719..03bc2ab 100644 --- a/miconf/Makefile +++ b/miconf/Makefile @@ -1,2 +1,2 @@ miconf: miconf.c - gcc -O2 -I ${HOME}/local/include -L${HOME}/local/lib -o miconf miconf.c -l lua + gcc -O2 -I../lua/src -L../lua/src -o miconf miconf.c -l lua diff --git a/miconf/miconf.c b/miconf/miconf.c index 7a30c75..98b6ce7 100644 --- a/miconf/miconf.c +++ b/miconf/miconf.c @@ -29,6 +29,7 @@ #include #include #include +#include #include #include "lua.h" #include "lauxlib.h" -- 2.11.4.GIT