4582ac1a创建于 2025年9月23日历史提交
# Compiler

ifeq ($(CXX),)
    CXX = clang++
endif


# Compiler flags
CXXFLAGS = -Wall -std=c++11

# Source files
SRC = test.cpp

# Object files
OBJ = $(SRC:.cpp=.o)

# Default rule
all:
	$(CXX) $(CXXFLAGS) -c $(SRC) -o $(OBJ)

# Clean up object and executable files
clean:
	rm -f $(OBJ) *.log

.PHONY: all clean