move lua-5.4 -> external/luasrc

we have to use the name "luasrc" rather than just "lua" because lua
is in gitignore
This commit is contained in:
Jeremy Baxter 2023-12-23 18:19:51 +13:00
parent cae9985747
commit ea3fb6c292
67 changed files with 8 additions and 10 deletions

View file

@ -33,16 +33,15 @@ cjson.a: external/json/*.c
${MAKE} -Cexternal/json
mv -f external/json/cjson.a cjson.a
liblua.a: lua-5.4/*.c
${MAKE} -Clua-5.4
mv -f lua-5.4/liblua.a .
liblua.a: external/luasrc/*.c
${MAKE} -Cexternal/luasrc
mv -f external/luasrc/liblua.a .
clean:
rm -f csto libcallisto.so ${OBJS} ${LIBS}
rm -fr include
rm -fr doc/*.html doc/modules
rm -fr include doc/*.html doc/modules
clean-all: clean
${MAKE} -s -Clua-5.4 clean
${MAKE} -s -Cexternal/luasrc clean
${MAKE} -s -Cexternal/json clean
doc:
@ -52,8 +51,7 @@ install:
mkdir -p include/callisto
mkdir -p "${DESTDIR}${PREFIX}"/{bin,include,lib}
cp -f callisto.h include/callisto
cp -f lua-5.4/{lua.h,lualib.h,lauxlib.h,luaconf.h} \
include/callisto
cp -f external/luasrc/{lua.h,lualib.h,lauxlib.h,luaconf.h} include/callisto
cp -f csto "${DESTDIR}${PREFIX}"/bin
cp -fR include/callisto "${DESTDIR}${PREFIX}"/include
cp -f libcallisto.so "${DESTDIR}${PREFIX}"/lib

View file

@ -1,5 +1,5 @@
CC = cc
CFLAGS = -std=c99 -pedantic -fpic -O2 -Wall -Wextra -Wno-override-init -I. -Ilua-5.4
CFLAGS = -std=c99 -pedantic -fpic -O2 -Wall -Wextra -Wno-override-init -Iexternal/luasrc
CPPFLAGS = -D_DEFAULT_SOURCE
LDFLAGS = -lm

View file

@ -13,7 +13,7 @@
##### Build defaults #####
CC = cc
AR = ar cr
CFLAGS = -std=c99 -O2 -Wall -Wno-unused-function -pedantic -fpic -DNDEBUG -I../../lua-5.4
CFLAGS = -std=c99 -O2 -Wall -Wno-unused-function -pedantic -fpic -DNDEBUG -I../luasrc
OBJS = dtoa.o fpconv.o g_fmt.o lua_cjson.o strbuf.o
##### End customisable sections #####