refactor(build): reorganize makefiles and split test targets
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
TARGET := $(BUILD_DIR)/scoped_file_test
|
||||
|
||||
SRC := scoped_file_test.cpp
|
||||
|
||||
.PHONY: all clean
|
||||
|
||||
all: $(TARGET)
|
||||
$(TARGET)
|
||||
|
||||
$(TARGET): $(SRC)
|
||||
@mkdir -p $(BUILD_DIR)
|
||||
$(CC) $(CXXFLAGS) $^ -o $@ $(LDLIBS)
|
||||
|
||||
clean:
|
||||
rm -f $(TARGET)
|
||||
Reference in New Issue
Block a user