aboutsummaryrefslogtreecommitdiff
path: root/2021/01/Makefile
diff options
context:
space:
mode:
authorMarvin Borner2021-12-01 06:21:23 +0100
committerMarvin Borner2021-12-01 06:25:13 +0100
commit057b901937b84e3b702215eb01b0b68f3dfb8274 (patch)
tree87eb814d2070e7f2f1f77e51457003a94f1d583c /2021/01/Makefile
parent3aa641542918765f6ceb039cfa64ff6f58597eb2 (diff)
tired
Diffstat (limited to '2021/01/Makefile')
-rw-r--r--2021/01/Makefile19
1 files changed, 19 insertions, 0 deletions
diff --git a/2021/01/Makefile b/2021/01/Makefile
new file mode 100644
index 0000000..4a881b7
--- /dev/null
+++ b/2021/01/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-errors -Ofast
+
+# 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