picrin/contrib/30.readline/nitro.mk

17 lines
504 B
Makefile
Raw Normal View History

2015-05-30 05:13:55 -04:00
libedit_exists := $(shell pkg-config libedit --exists; echo $$?)
2015-05-30 05:13:55 -04:00
ifeq ($(libedit_exists),0)
2015-06-19 14:42:56 -04:00
CONTRIB_SRCS += contrib/30.readline/src/readline.c
2015-05-30 05:13:55 -04:00
CONTRIB_INITS += readline
2015-05-30 05:27:24 -04:00
CONTRIB_TESTS += test-readline
2015-05-30 05:13:55 -04:00
LDFLAGS += `pkg-config libedit --libs`
endif
contrib/30.readline/src/readline.o: contrib/30.readline/src/readline.c
$(CC) $(CFLAGS) -c -o $@ $< `pkg-config libedit --cflags`
2015-05-30 05:27:24 -04:00
2017-03-22 10:59:22 -04:00
test-readline: $(TEST_RUNNER)
2015-06-19 14:42:56 -04:00
for test in `ls contrib/30.readline/t/*.scm`; do \
2017-03-22 10:59:22 -04:00
./$(TEST_RUNNER) $$test; \
2015-05-30 05:27:24 -04:00
done