diff --git a/.gitignore b/.gitignore index ef1d883..5f68b7f 100644 --- a/.gitignore +++ b/.gitignore @@ -8,3 +8,4 @@ *.dll *.dummy cocoa-test +build diff --git a/Makefile b/Makefile.in similarity index 86% rename from Makefile rename to Makefile.in index 2471ee3..69a0f60 100644 --- a/Makefile +++ b/Makefile.in @@ -1,9 +1,11 @@ +VPATH=%VPATH% + CC ?= gcc RUSTC ?= rustc AR ?= ar RUSTFLAGS ?= -RUST_SRC = $(shell find . -type f -name '*.rs') +RUST_SRC = $(shell find $(VPATH)/. -type f -name '*.rs') .PHONY: all all: libcocoa.dummy diff --git a/configure b/configure new file mode 100644 index 0000000..8c2715b --- /dev/null +++ b/configure @@ -0,0 +1,3 @@ +#!/bin/bash + +sed "s/%VPATH%/`dirname $0`/" `dirname $0`/Makefile.in > Makefile