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

.PHONY: all clean remake

all: $(BIN)

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

remake: clean all


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