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