picrin/contrib/30.readline/nitro.mk

17 lines
471 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/src/readline.o: contrib/src/readline.c
$(CC) $(CFLAGS) -o $@ $< `pkg-config libedit --cflags`
2015-05-30 05:27:24 -04:00
test-readline: bin/picrin
2015-06-19 14:42:56 -04:00
for test in `ls contrib/30.readline/t/*.scm`; do \
$(TEST_RUNNER) $$test; \
2015-05-30 05:27:24 -04:00
done