summaryrefslogtreecommitdiff
path: root/Makefile
blob: 73e948a3b4a78acc43e4aae0e0780c1390a0bbb7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
CC := gcc
CFLAGS := -Wall -Wextra -std=c11 -O2 -fwrapv
BIN := bfcomp

.PHONY: all clean remake

all: $(BIN)

clean:
	rm -rf $(BIN) *.dSYM

remake: clean all


$(BIN): $(wildcard *.c *.h)
	$(CC) $(CFLAGS) -o $@ $(filter-out %.h,$^)