initial commit
This commit is contained in:
18
Makefile
Normal file
18
Makefile
Normal file
@@ -0,0 +1,18 @@
|
||||
# Compiler and flags
|
||||
TARGET = ct
|
||||
CXX = g++
|
||||
CXXFLAGS = -pthread -Wall -Wextra -O2 -std=c++17 -lncurses -g
|
||||
|
||||
SRC = $(wildcard *.cc)
|
||||
OBJ = $(SRC:.cc=.o)
|
||||
|
||||
all: $(TARGET)
|
||||
|
||||
clean:
|
||||
rm -f $(TARGET) *.o *.txt
|
||||
|
||||
$(TARGET): $(OBJ)
|
||||
$(CXX) $(OBJ) $(CXXFLAGS) -o $(TARGET)
|
||||
|
||||
%.o: %.cc
|
||||
$(CXX) -c $< $(CXXFLAGS) -o $@
|
||||
Reference in New Issue
Block a user