# Compiler
CXX = g++

# Compiler flags
CXXFLAGS = -std=c++17 -Wall
LIBRARIES = -pthread #only needed for a parallel version

# Source files
SRCS = trafficCongestionAlert_sequential.cpp
# Object files
OBJS = $(SRCS:.cpp=.o)

# Executable name
TARGET = trafficCongestionAlert_sequential

# Default target
all: $(TARGET)

# Rule to build the executable
$(TARGET): $(OBJS)
	$(CXX) $(CXXFLAGS) -o $@ $^ $(LIBRARIES)

# Rule to build object files
%.o: %.cpp
	$(CXX) $(CXXFLAGS) -c $< -o $@ $(LIBRARIES)

# Clean rule
clean:
	rm -f $(OBJS) $(TARGET)
