aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2013-03-20 21:33:19 -0500
committerJesse Luehrs <doy@tozt.net>2013-03-20 21:33:19 -0500
commitd00c8ec76c498196be8bfe2d58f27697bda9de69 (patch)
treec3126e111332355683d533d7741afbaca7f36cd4 /Makefile
parent8fc473d033a4c38f7c0024bd259ff54b9867d50d (diff)
downloadrust-term-d00c8ec76c498196be8bfe2d58f27697bda9de69.tar.gz
rust-term-d00c8ec76c498196be8bfe2d58f27697bda9de69.zip
start working on a terminfo wrapper
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile13
1 files changed, 10 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 71436be..9d6f29b 100644
--- a/Makefile
+++ b/Makefile
@@ -2,7 +2,7 @@ RUSTC = rustc
MAIN_SOURCE = src/term.rs
OTHER_SOURCES = src/ios.rs src/info.rs
-TESTS = bin/termios bin/termios2 bin/termios3
+TESTS = bin/termios bin/termios2 bin/termios3 bin/rl
all: build tests
@@ -14,17 +14,24 @@ bin/%: test/%.rs
@mkdir -p bin
$(RUSTC) --out-dir bin -L lib $<
-lib/built: $(MAIN_SOURCE) $(OTHER_SOURCES) tmp/libtermios_wrapper.a
+lib/built: $(MAIN_SOURCE) $(OTHER_SOURCES) tmp/libtermios_wrapper.a tmp/libcurses_helper.a
@mkdir -p lib
$(RUSTC) --out-dir lib -L tmp $(MAIN_SOURCE) && touch tmp/built
tmp/libtermios_wrapper.a: tmp/termios_wrapper.o
- ar cr tmp/libtermios_wrapper.a tmp/termios_wrapper.o
+ ar cr $@ $<
tmp/termios_wrapper.o: src/termios_wrapper.c
@mkdir -p tmp
cc -fPIC -c -o $@ $<
+tmp/libcurses_helper.a: tmp/curses_helper.o
+ ar cr $@ $<
+
+tmp/curses_helper.o: src/curses_helper.c
+ @mkdir -p tmp
+ cc -fPIC -c -o $@ $<
+
clean:
-@rm -rf lib/ bin/ tmp/