Update makefile to look in lmath/extern when compiling

This commit is contained in:
Brendan Zabarauskas 2013-04-01 07:56:46 +11:00
parent e131af6509
commit 325f429a55
2 changed files with 3 additions and 2 deletions

View file

@ -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)

0
extern/.gitkeep vendored Normal file
View file