CC = gcc CFLAGS = -Wall -Wextra -std=c11 -O3 -fwrapv -flto LDFLAGS = TARGET = ttt3d .PHONY: all clean all: $(TARGET) clean: rm -f $(TARGET) $(TARGET): $(wildcard *.c *.h) $(CC) $(CFLAGS) -o $@ $(filter %.c,$^) $(LDFLAGS)