initial commit

This commit is contained in:
ag
2024-09-13 07:02:36 +03:00
commit 3ef1bc3ab9
4 changed files with 148 additions and 0 deletions

26
makefile Normal file
View File

@ -0,0 +1,26 @@
TARGET = Q2
CXX = g++
CXXFLAGS = -Wall -Wextra -std=c++11
SRCS = 2Q_cache.cpp main.cpp
OBJS = $(SRCS:.cpp=.o)
all: $(TARGET)
$(TARGET): $(OBJS)
$(CXX) -o $@ $^
%.o: %.cpp
$(CXX) $(CXXFLAGS) -c $< -o $@
clean:
rm -f $(OBJS) $(TARGET)
run: $(TARGET)
./$(TARGET)
.PHONY: all clean run