From be15c787b357fda85983c01be1f4350c5fddf753 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Tue, 19 Mar 2013 20:55:28 -0500 Subject: project skeleton --- Makefile | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..4d0ee91 --- /dev/null +++ b/Makefile @@ -0,0 +1,27 @@ +RUSTC = rustc +SRC = src + +MAIN_SOURCE = $(SRC)/term.rs +OTHER_SOURCES = $(SRC)/ios.rs $(SRC)/info.rs + +all: build tests + +build: built + +tests: build + +built: $(MAIN_SOURCE) $(OTHER_SOURCES) libtermios_wrapper.a + $(RUSTC) --out-dir . -L . $(MAIN_SOURCE) && touch built + +libtermios_wrapper.a: termios_wrapper.o + ar cr libtermios_wrapper.a termios_wrapper.o + +termios_wrapper.o: $(SRC)/termios_wrapper.c + cc -c $< + +clean: + rm -f termios_wrapper.o libtermios_wrapper.a + rm -f libterm-*.so + rm -f built + +.PHONY: clean build tests default -- cgit v1.2.3-54-g00ecf