Forráskód Böngészése

Adding general Makefile

Vinicius Teshima 1 éve
commit
ac4b99e439
1 módosított fájl, 14 hozzáadás és 0 törlés
  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 $@ $^