refactor(build): reorganize makefiles and split test targets
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
CXXFLAGS += \
|
||||
-I$(ROOT_DIR)/core/include
|
||||
|
||||
TARGET := $(BUILD_DIR)/result_test
|
||||
|
||||
SRC := result_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