|
@@ -0,0 +1,14 @@
|
|
|
|
|
+
|
|
|
|
|
+SRC=$(wildcard *.c) $(wildcard *.h)
|
|
|
|
|
+BIN=$(shell basename $(shell pwd))
|
|
|
|
|
+
|
|
|
|
|
+CC=gcc
|
|
|
|
|
+CFLAGS=-ansi -m64 -Og -fsanitize=address -ggdb \
|
|
|
|
|
+ -pedantic -Wall -Wextra -Wshadow \
|
|
|
|
|
+ -Wcast-align -Wunused -Wconversion -Wmisleading-indentation \
|
|
|
|
|
+ -Wdouble-promotion -Wformat=2 -Wbad-function-cast \
|
|
|
|
|
+ -Wmissing-declarations \
|
|
|
|
|
+ -Wmissing-prototypes -Wnested-externs -Werror
|
|
|
|
|
+
|
|
|
|
|
+${BIN}: ${SRC}
|
|
|
|
|
+ ${CC} ${CFLAGS} -o $@ $^
|