summaryrefslogtreecommitdiff
path: root/Makefile
blob: 3652a5d18eda6766cb3299e1fd60483c6a036e76 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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)