From b7646b2d791cf10bd604aaee830fe22598b7d10d Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Mon, 1 Apr 2013 02:06:35 -0500 Subject: provide a timeout for reads when trying to match an escape --- Makefile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 8e91d31..fa4ac38 100644 --- a/Makefile +++ b/Makefile @@ -19,7 +19,7 @@ bin/%: test/%.rs tmp/built @mkdir -p bin $(RUSTC) --out-dir bin -L lib $< -tmp/built: $(MAIN_SOURCE) $(OTHER_SOURCES) tmp/libtermios_wrapper.a tmp/libcurses_helper.a +tmp/built: $(MAIN_SOURCE) $(OTHER_SOURCES) tmp/libtermios_wrapper.a tmp/libcurses_helper.a tmp/libio_helper.a @mkdir -p lib $(RUSTC) --out-dir lib -L tmp $(MAIN_SOURCE) && touch tmp/built @@ -37,6 +37,13 @@ tmp/curses_helper.o: src/curses_helper.c @mkdir -p tmp cc -fPIC -c -o $@ $< +tmp/libio_helper.a: tmp/io_helper.o + ar cr $@ $< + +tmp/io_helper.o: src/io_helper.c + @mkdir -p tmp + cc -fPIC -c -o $@ $< + clean: -@rm -rf lib/ bin/ tmp/ -- cgit v1.2.3-54-g00ecf