From 1b50145b6f74f0d398bc01ae25d21fd18457a7c5 Mon Sep 17 00:00:00 2001 From: Tristan Riehs Date: Fri, 31 May 2024 21:56:22 +0900 Subject: Switch to linenoise instead of readline The API is the exact same, and this implementation is much lighter and memory-leak-free. --- src/Makefile.am | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src/Makefile.am') diff --git a/src/Makefile.am b/src/Makefile.am index ddf7c6b..728ef88 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -1,4 +1,7 @@ bin_PROGRAMS = calculer -AM_CFLAGS = -std=c99 -Wall -Wextra -AM_LDFLAGS = -lreadline -calculer_SOURCES = calculer.c +AM_CFLAGS = -Wall -Wextra -I../linenoise-master/ +calculer_SOURCES = calculer.c linenoise.c +BUILT_SOURCES: linenoise.c + +linenoise.c: + cp ../linenoise-master/linenoise.c . -- cgit v1.2.3