aboutsummaryrefslogtreecommitdiff
path: root/2021/03/Makefile
diff options
context:
space:
mode:
authorMarvin Borner2021-12-03 19:56:03 +0100
committerMarvin Borner2021-12-03 19:56:03 +0100
commit1a0493de3766b67bbfaa57c4d4bdfb9133deb5d3 (patch)
tree5bd3dd917b319e034577d127d7de1ad948e05d98 /2021/03/Makefile
parentf504d00a116a5f8ee090188a98ad54f894a9732b (diff)
hmm
Diffstat (limited to '2021/03/Makefile')
-rw-r--r--2021/03/Makefile19
1 files changed, 19 insertions, 0 deletions
diff --git a/2021/03/Makefile b/2021/03/Makefile
new file mode 100644
index 0000000..4a881b7
--- /dev/null
+++ b/2021/03/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