blob: 59e28d04b0edb222445ee187d7e014a0ee3c8e0d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
CXX = g++
CXXFLAGS = -Wall -Wextra -std=c++17 -O3 -fwrapv -flto
LDFLAGS =
TARGET = ttt3d
.PHONY: all clean
all: $(TARGET)
clean:
rm -f $(TARGET) *.o
$(TARGET): $(patsubst %.cpp,%.o,$(wildcard *.cpp))
$(CXX) $(CXXFLAGS) -o $@ $^ $(LDFLAGS)
%.o: %.cpp $(wildcard *.h)
$(CXX) $(CXXFLAGS) -c -o $@ $<
|