From 325f429a55ba2fd2ff6a5130fc7e1f8487dc21d8 Mon Sep 17 00:00:00 2001 From: Brendan Zabarauskas Date: Mon, 1 Apr 2013 07:56:46 +1100 Subject: [PATCH] Update makefile to look in lmath/extern when compiling --- Makefile | 5 +++-- extern/.gitkeep | 0 2 files changed, 3 insertions(+), 2 deletions(-) create mode 100644 extern/.gitkeep diff --git a/Makefile b/Makefile index ebd6003..087644e 100644 --- a/Makefile +++ b/Makefile @@ -4,6 +4,7 @@ ROOT_DIR = . SRC_DIR = $(ROOT_DIR)/src SRC_CRATE = $(TARGET).rs +EXTERN_DIR = $(ROOT_DIR)/extern BUILD_DIR = $(ROOT_DIR)/lib TEST = $(TARGET) @@ -14,7 +15,7 @@ TEST_BUILD_DIR = $(ROOT_DIR)/test $(TARGET): @echo "Building $(TARGET)..." @mkdir -p $(BUILD_DIR) - @rustc $(SRC_DIR)/$(SRC_CRATE) --out-dir=$(BUILD_DIR) + @rustc $(SRC_DIR)/$(SRC_CRATE) -L $(EXTERN_DIR) --out-dir=$(BUILD_DIR) @echo "Success" all: $(TARGET) @@ -22,7 +23,7 @@ all: $(TARGET) test: @echo "Building unit tests for $(TARGET)..." @mkdir -p $(TEST_BUILD_DIR) - @rustc $(SRC_DIR)/$(SRC_CRATE) --test --out-dir=$(TEST_BUILD_DIR) + @rustc $(SRC_DIR)/$(SRC_CRATE) --test -L $(EXTERN_DIR) --out-dir=$(TEST_BUILD_DIR) @echo "Success" @$(TEST_BUILD_DIR)/$(TARGET) diff --git a/extern/.gitkeep b/extern/.gitkeep new file mode 100644 index 0000000..e69de29