From da80902a003eb141eeb5c79621b87573338872c7 Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Wed, 18 Apr 2012 15:24:45 -0700 Subject: [PATCH] Various hackage for servo integration --- .gitignore | 9 +++++++++ Makefile | 21 +++++++++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 .gitignore create mode 100644 Makefile diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..d62b97d --- /dev/null +++ b/.gitignore @@ -0,0 +1,9 @@ +*~ +*# +*.o +*.so +*.dylib +*.dSYM +*.dll +*.dummy +cocoa-test diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..f588b6c --- /dev/null +++ b/Makefile @@ -0,0 +1,21 @@ +RUSTC ?= rustc +RUSTFLAGS ?= + +RUST_SRC = $(shell find . -type f -name '*.rs') + +.PHONY: all +all: libcocoa.dummy + +libcocoa.dummy: cocoa.rc $(RUST_SRC) + $(RUSTC) $(RUSTFLAGS) $< -o $@ + touch $@ + +cocoa-test: cocoa.rc $(RUST_SRC) + $(RUSTC) $(RUSTFLAGS) $< -o $@ --test + +check: cocoa-test + ./cocoa-test + +.PHONY: clean +clean: + rm -f cocoa-test *.so *.dylib *.dll *.dummy