aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2013-04-01 02:06:35 -0500
committerJesse Luehrs <doy@tozt.net>2013-04-01 02:06:35 -0500
commitb7646b2d791cf10bd604aaee830fe22598b7d10d (patch)
tree9ba44d9aa729587e61b9b7c8671367d91fa8ef7e /Makefile
parent10255902df82b54afa68290cd7ce59cdcf2014fa (diff)
downloadrust-term-b7646b2d791cf10bd604aaee830fe22598b7d10d.tar.gz
rust-term-b7646b2d791cf10bd604aaee830fe22598b7d10d.zip
provide a timeout for reads when trying to match an escape
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 8 insertions, 1 deletions
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/