diff options
author | Marvin Borner | 2021-12-15 16:54:01 +0100 |
---|---|---|
committer | Marvin Borner | 2021-12-15 16:54:01 +0100 |
commit | 2b557905b7b6441cce2f1772f7510286eb3237ba (patch) | |
tree | f4a18547e3ce4d7afadd121024af614cfa41f489 /2021/15/Makefile | |
parent | 883d350d37b4802a2569772853e1ea2a967972d0 (diff) |
hmmmm
Diffstat (limited to '2021/15/Makefile')
-rw-r--r-- | 2021/15/Makefile | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/2021/15/Makefile b/2021/15/Makefile new file mode 100644 index 0000000..1fb60ab --- /dev/null +++ b/2021/15/Makefile @@ -0,0 +1,19 @@ +DEBUG = -Wno-error -Og -g -s -fsanitize=undefined -fsanitize=address -fstack-protector-all +CFLAGS = -Wall -Wextra -Werror -Wshadow -Wpointer-arith -Wwrite-strings -Wredundant-decls -Wnested-externs -Wformat=2 -Wmissing-declarations -Wstrict-prototypes -Wmissing-prototypes -Wcast-qual -Wswitch-default -Wswitch-enum -Wunreachable-code -Wundef -Wold-style-definition -Wvla -pedantic -Ofast -std=gnu99 + +# Not the best makefile but idc + +debug: + @gcc $(CFLAGS) $(DEBUG) solve.c -o solve.o -L/usr/lib -lcrypto + +build: + @gcc $(CFLAGS) solve.c -o solve.o -L/usr/lib -lcrypto + +clean: + @rm -f *.o + +run: debug + @./solve.o + +time: build + @./solve.o |