tree: specify the lua/ directory for includes
This commit is contained in:
parent
bbf9b88c66
commit
e63e7a77a2
12 changed files with 24 additions and 23 deletions
3
Makefile
3
Makefile
|
@ -2,10 +2,11 @@ include config.mk
|
||||||
|
|
||||||
PREFIX = /usr/local
|
PREFIX = /usr/local
|
||||||
MANPREFIX = ${PREFIX}/man
|
MANPREFIX = ${PREFIX}/man
|
||||||
|
|
||||||
LUADIR = external/lua
|
LUADIR = external/lua
|
||||||
|
|
||||||
CC = ${_CC}
|
CC = ${_CC}
|
||||||
CFLAGS = ${_CFLAGS} -I${LUADIR} -pedantic -Wall -Wextra
|
CFLAGS = ${_CFLAGS} -Iexternal -pedantic -Wall -Wextra
|
||||||
CPPFLAGS = -D_DEFAULT_SOURCE ${_CPPFLAGS}
|
CPPFLAGS = -D_DEFAULT_SOURCE ${_CPPFLAGS}
|
||||||
LDFLAGS = ${_LDFLAGS}
|
LDFLAGS = ${_LDFLAGS}
|
||||||
|
|
||||||
|
|
|
@ -3,9 +3,9 @@
|
||||||
* Copyright (c) 2023-2024 Jeremy Baxter.
|
* Copyright (c) 2023-2024 Jeremy Baxter.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <lua.h>
|
#include <lua/lauxlib.h>
|
||||||
#include <lualib.h>
|
#include <lua/lua.h>
|
||||||
#include <lauxlib.h>
|
#include <lua/lualib.h>
|
||||||
|
|
||||||
#include "callisto.h"
|
#include "callisto.h"
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
#ifndef _CALLISTO_H_
|
#ifndef _CALLISTO_H_
|
||||||
#define _CALLISTO_H_
|
#define _CALLISTO_H_
|
||||||
|
|
||||||
#include <lua.h>
|
#include <lua/lua.h>
|
||||||
|
|
||||||
#define CALLISTO_VERSION_MAJOR "0"
|
#define CALLISTO_VERSION_MAJOR "0"
|
||||||
#define CALLISTO_VERSION_MINOR "1"
|
#define CALLISTO_VERSION_MINOR "1"
|
||||||
|
|
6
csto.c
6
csto.c
|
@ -10,9 +10,9 @@
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|
||||||
#include <lua.h>
|
#include <lua/lauxlib.h>
|
||||||
#include <lualib.h>
|
#include <lua/lua.h>
|
||||||
#include <lauxlib.h>
|
#include <lua/lualib.h>
|
||||||
|
|
||||||
#include "callisto.h"
|
#include "callisto.h"
|
||||||
|
|
||||||
|
|
4
lcl.c
4
lcl.c
|
@ -15,8 +15,8 @@
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|
||||||
#include <lua.h>
|
#include <lua/lauxlib.h>
|
||||||
#include <lauxlib.h>
|
#include <lua/lua.h>
|
||||||
|
|
||||||
#include "util.h"
|
#include "util.h"
|
||||||
|
|
||||||
|
|
|
@ -11,8 +11,8 @@
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
#include <lua.h>
|
#include <lua/lauxlib.h>
|
||||||
#include <lauxlib.h>
|
#include <lua/lua.h>
|
||||||
|
|
||||||
#include "callisto.h"
|
#include "callisto.h"
|
||||||
|
|
||||||
|
|
4
lextra.c
4
lextra.c
|
@ -14,8 +14,8 @@
|
||||||
|
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
|
|
||||||
#include <lua.h>
|
#include <lua/lauxlib.h>
|
||||||
#include <lauxlib.h>
|
#include <lua/lua.h>
|
||||||
|
|
||||||
/***
|
/***
|
||||||
* Waits the specified amount of seconds.
|
* Waits the specified amount of seconds.
|
||||||
|
|
4
lfs.c
4
lfs.c
|
@ -21,8 +21,8 @@
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|
||||||
#include <lua.h>
|
#include <lua/lauxlib.h>
|
||||||
#include <lauxlib.h>
|
#include <lua/lua.h>
|
||||||
|
|
||||||
#include "util.h"
|
#include "util.h"
|
||||||
|
|
||||||
|
|
4
ljson.c
4
ljson.c
|
@ -27,8 +27,8 @@
|
||||||
* @module json
|
* @module json
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <lua.h>
|
#include <lua/lauxlib.h>
|
||||||
#include <lauxlib.h>
|
#include <lua/lua.h>
|
||||||
|
|
||||||
#include "callisto.h"
|
#include "callisto.h"
|
||||||
|
|
||||||
|
|
|
@ -14,8 +14,8 @@
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|
||||||
#include <lua.h>
|
#include <lua/lauxlib.h>
|
||||||
#include <lauxlib.h>
|
#include <lua/lua.h>
|
||||||
|
|
||||||
#include "util.h"
|
#include "util.h"
|
||||||
|
|
||||||
|
|
4
util.c
4
util.c
|
@ -12,8 +12,8 @@
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#include <lua.h>
|
#include <lua/lauxlib.h>
|
||||||
#include <lauxlib.h>
|
#include <lua/lua.h>
|
||||||
|
|
||||||
#include "util.h"
|
#include "util.h"
|
||||||
|
|
||||||
|
|
2
util.h
2
util.h
|
@ -8,7 +8,7 @@
|
||||||
|
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
|
|
||||||
#include <lua.h>
|
#include <lua/lua.h>
|
||||||
|
|
||||||
int lfail(lua_State *);
|
int lfail(lua_State *);
|
||||||
int lfailm(lua_State *, const char *);
|
int lfailm(lua_State *, const char *);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue