From 738e53849d39db2cba7c7fd97dd74a64bcafe363 Mon Sep 17 00:00:00 2001 From: Daniel Cerqueira Date: Tue, 18 Aug 2026 11:59:36 +0100 Subject: use readline --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index f9542d8..68d5d71 100644 --- a/Makefile +++ b/Makefile @@ -47,22 +47,25 @@ PREFIX ?= /usr/local .PHONY: native native: CPPFLAGS += -DNDEBUG native: CFLAGS += -O2 +native: LDFLAGS += -lreadline native: $(PROGRAM) .PHONY: generic generic: CPPFLAGS += -DNDEBUG generic: CFLAGS += -mtune=generic -O2 +generic: LDFLAGS += -lreadline generic: $(PROGRAM) .PHONY: all all: CPPFLAGS += -DNDEBUG all: CFLAGS += -O2 +all: LDFLAGS += -lreadline all: $(PROGRAM) $(LIB) $(HTML) .PHONY: debug debug: CPPFLAGS += -DDEBUG debug: CFLAGS += -O0 -g -debug: LDFLAGS += -g +debug: LDFLAGS += -lreadline debug: $(PROGRAM) .PHONY: clean -- cgit