Set makefile target binary to build inside the src directory
This commit is contained in:
parent
cabe3c579a
commit
2a8c600c22
1 changed files with 2 additions and 2 deletions
4
Makefile
4
Makefile
|
@ -15,7 +15,7 @@ SRCS := $(wildcard $(SRC_DIR)/*.c)
|
||||||
OBJS := $(patsubst $(SRC_DIR)/%.c,$(BUILD_DIR)/%.o,$(SRCS))
|
OBJS := $(patsubst $(SRC_DIR)/%.c,$(BUILD_DIR)/%.o,$(SRCS))
|
||||||
|
|
||||||
# Target executable
|
# Target executable
|
||||||
TARGET := CTree
|
TARGET := $(BUILD_DIR)/CTree
|
||||||
|
|
||||||
# Default target
|
# Default target
|
||||||
all: $(TARGET)
|
all: $(TARGET)
|
||||||
|
@ -38,4 +38,4 @@ clean:
|
||||||
rm -rf $(BUILD_DIR) $(TARGET)
|
rm -rf $(BUILD_DIR) $(TARGET)
|
||||||
|
|
||||||
# Mark rules as phony
|
# Mark rules as phony
|
||||||
.PHONY: all run clean
|
.PHONY: all run clean
|
||||||
|
|
Loading…
Reference in a new issue