From d00c8ec76c498196be8bfe2d58f27697bda9de69 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Wed, 20 Mar 2013 21:33:19 -0500 Subject: start working on a terminfo wrapper --- Makefile | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'Makefile') 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/ -- cgit v1.2.3-54-g00ecf