Parcourir la source

Adding general Makefile

Vinicius Teshima il y a 1 an
commit
ac4b99e439
1 fichiers modifiés avec 14 ajouts et 0 suppressions
  1. 14 0
      2024/c/Makefile

+ 14 - 0
2024/c/Makefile

@@ -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 $@ $^