This commit is contained in:
ag
2024-09-15 18:40:48 +03:00
parent 57d325d116
commit 7df2412fd3
10 changed files with 141 additions and 22 deletions

View File

@ -5,7 +5,8 @@ CXX = g++
CXXFLAGS = -Wall -Wextra -std=c++11
SRCS = main.cpp
SRCS = main.cpp
TEST = cache_test.cpp
OBJS = $(SRCS:.cpp=.o)
@ -17,8 +18,12 @@ $(TARGET): $(OBJS)
%.o: %.cpp
$(CXX) $(CXXFLAGS) -c $< -o $@
test:
$(CXX) $(CXXFLAGS) $(TEST)-o test
clean:
rm -f $(OBJS) $(TARGET)
rm -f $(OBJS) $(TARGET) $(TEST)
run: $(TARGET)
./$(TARGET)