aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
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/