21 lines
384 B
Makefile
21 lines
384 B
Makefile
CFLAGS = -Wall \
|
|
-Wextra \
|
|
-Wbad-function-cast \
|
|
-Wcast-align \
|
|
-Wcast-qual \
|
|
-Wmissing-declarations \
|
|
-Wnested-externs \
|
|
-Wpointer-arith \
|
|
-Wwrite-strings \
|
|
-Wno-discarded-qualifiers \
|
|
-pedantic \
|
|
-std=c99
|
|
|
|
SRC=$(wildcard *.c)
|
|
|
|
fn: $(SRC)
|
|
$(CC) -o $@ $^ $(CFLAGS)
|
|
|
|
clean:
|
|
rm -f fn
|
|
|