Files
threaded_network_chat/Makefile
2026-03-12 15:56:28 -05:00

19 lines
295 B
Makefile

# Compiler and flags
TARGET = ct
CXX = g++
CXXFLAGS = -pthread -Wall -Wextra -O2 -std=c++17 -lcurses -g
SRC = $(wildcard *.cc)
OBJ = $(SRC:.cc=.o)
all: $(TARGET)
clean:
rm -f $(TARGET) *.o
$(TARGET): $(OBJ)
$(CXX) $(CXXFLAGS) $(OBJ) -o $(TARGET)
%.o: %.cc
$(CXX) $(CXXFLAGS) -c $< -o $@