Commit graph

32 commits

Author SHA1 Message Date
60c4b03493 makefile: add trailing slash to directories in install target 2024-03-12 08:18:21 +13:00
e63e7a77a2 tree: specify the lua/ directory for includes 2024-03-11 12:37:50 +13:00
8f5818b925 makefile: fix build on posix shells
Remove use of the `dir/{file,file}' syntax.
2024-02-29 17:35:44 +13:00
e86912a601 configure: add -w and -W flags for selecting libraries to support
-wreadline will build in support for libreadline, for example
2024-02-27 18:04:18 +13:00
bbd25fe4a2 configure: include -lm and -DLUA_USE_POSIX in config.mk 2024-02-18 18:14:34 +13:00
c3a9b5d6d5 makefile: refine
o  remove libcallisto from LIBS
 o  use LIBS rather than liblua.a in csto target
 o  delete csto.o in clean target
 o  remove clean-all from phonies
 o  store the path to the Lua source code in LUADIR rather than using
    the full path everywhere
 o  remove warning flags and preprocessor definitions from cjson's
    compiler command line; it is just not needed.
2024-02-18 17:23:26 +13:00
d4ec5248fe configure: include -std=c99 in config.mk
So other makefiles can use it, e.g. the one in external/lua
2024-02-18 17:19:15 +13:00
751fca09e1 switch to modular configure-based buildsystem 2024-01-25 21:12:12 +13:00
436e6a5184 fix build on compilers without -Oz 2024-01-17 20:40:10 +13:00
adb4091293 workaround esoteric gcc behaviour on Linux
ld would fail to find Lua symbols in liblua.a, the solution is
to put all object files before static libraries on the command line.
2024-01-17 20:29:42 +13:00
a6809fe480 integrate lua-cjson's buildsystem and static library with callisto's
and make some more makefile improvements
2023-12-28 13:20:05 +13:00
9db822c84f rename external/luasrc => external/lua 2023-12-27 23:16:49 +00:00
11f6a34ebf merge fs and path libraries 2023-12-24 14:24:55 +13:00
44f7620a41 fixup doc generation 2023-12-24 14:08:25 +13:00
fdcb8f794a remove errors.h 2023-12-24 06:34:51 +13:00
a2779a1997 drop the shared library 2023-12-24 06:07:26 +13:00
ff5012f2c2 move PREFIX and MANPREFIX into config.mk 2023-12-24 05:53:29 +13:00
ea3fb6c292 move lua-5.4 -> external/luasrc
we have to use the name "luasrc" rather than just "lua" because lua
is in gitignore
2023-12-23 18:19:51 +13:00
dfe3e57d1c minor cleanups and fixes
notably: remove the broken socket module and remove CALLISTO_OSLIBNAME
and CALLISTO_MATHLIBNAME
2023-12-23 13:20:32 +13:00
7ff02fbbb1 Move fs.basename and fs.dirname into the path library, create errors.h 2023-08-10 08:14:05 +12:00
e18cf6e588 Split clean target up into clean and clean-all in Makefile 2023-07-31 12:36:00 +12:00
84f58824b9 Rename the file module to fs, and make some documentation changes 2023-07-31 07:33:23 +12:00
75aaaf922f Fix merge conflict in .gitignore 2023-07-24 13:24:06 +12:00
4e03fc1620 Rename lcallisto.c -> callisto.c 2023-07-24 12:30:41 +12:00
221ef63cd4 Copy libcallisto.so to DESTDIR/PREFIX/lib (-lcallisto is WIP) 2023-07-24 12:16:55 +12:00
8b4a0f86cf Remove hard dependency on readline, split makefile config into config.mk 2023-07-18 12:38:03 +12:00
f2ff542bcb Remove los.c and lmath.c, and put their functions in the bundled Lua source 2023-07-09 16:18:10 +12:00
c62d4056e6 Use the environ table over the environment library 2023-07-02 08:15:17 +12:00
4fb243af7b Add lextra.c and extra library, with sleep() now part of it instead of in os 2023-07-01 09:52:01 +12:00
0d7604cb96 Remove unnecessary header files 2023-06-27 18:19:03 +12:00
6aa4b6de39 Remove libbsd support 2023-06-27 12:33:51 +12:00
b124d99c36 Initial import 2023-06-25 16:47:09 +12:00