blob: 2b814d4cd9c3262a59c1c4bc5548f9b7bc04b00e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
CC = gcc
CFLAGS = -Wall -Wextra -O2 -std=c11 -fwrapv
BIN = number
.PHONY: all clean remake
all: $(BIN)
clean:
rm -f $(BIN)
remake: clean all
$(BIN): $(wildcard *.c *.h)
$(CC) $(CFLAGS) -o $@ $(filter %.c,$^)
|