Update project info

This commit is contained in:
zontreck 2024-07-30 16:15:02 -07:00
parent be49470a72
commit 89f614e6f3
7 changed files with 44 additions and 4 deletions

24
Makefile Normal file
View file

@ -0,0 +1,24 @@
# Compiler and flags
CXX = g++
CXXFLAGS = -std=c++17 -Wall -Wextra
# Source files and target executable
SRCS = $(wildcard src/*.cpp)
OBJS = $(SRCS:.cpp=.o)
TARGET = ac
# Build target
all: $(TARGET)
$(TARGET): $(OBJS)
$(CXX) $(CXXFLAGS) -o $@ $(OBJS)
# Build object files
%.o: %.cpp
$(CXX) $(CXXFLAGS) -c $< -o $@
# Clean up build artifacts
clean:
rm -f $(TARGET) $(OBJS)
.PHONY: all clean