picrin/contrib/10.readline/nitro.mk

17 lines
467 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)
CONTRIB_SRCS += contrib/10.readline/src/readline.c
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
for test in `ls contrib/10.readline/t/*.scm`; do \
bin/picrin $$test; \
done