See https://github.com/antirez/linenoise for details. Implemented a routine atexit() in libc. Pdc modified to use readline library.
18 lines
323 B
Makefile
18 lines
323 B
Makefile
TOPSRC = $(shell cd ../..; pwd)
|
|
include $(TOPSRC)/target.mk
|
|
|
|
vpath %.c $(TOPSRC)/src/libreadline
|
|
|
|
CFLAGS += -B$(TOPSRC)/lib/ $(DEFS) -Wa,-x -Wall -Werror
|
|
|
|
OBJS = readline.o
|
|
|
|
all: ../libreadline.a
|
|
|
|
../libreadline.a: ../ar ../ranlib $(OBJS)
|
|
../ar rc $@ $(OBJS)
|
|
../ranlib $@
|
|
|
|
clean:
|
|
rm -f *~ *.o a.out *.a
|