summaryrefslogtreecommitdiff
path: root/src/Makefile
diff options
context:
space:
mode:
author@syxhe <https://t.me/syxhe>2025-01-06 18:34:13 -0600
committer@syxhe <https://t.me/syxhe>2025-01-06 18:34:13 -0600
commitf8e94a1179633799579a09dce1841f41e3b73f05 (patch)
tree7c9485964d4a041a13c55550a814a4c5a5302645 /src/Makefile
parent36dc7e18b66bb374d4c67a7f526c088636eaf9a2 (diff)
Start work on encryption
Diffstat (limited to 'src/Makefile')
-rw-r--r--src/Makefile8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/Makefile b/src/Makefile
index d3798bb..a97848d 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -3,15 +3,15 @@ SHELL = /usr/bin/bash
3 3
4DEBUG_CFLAGS := -fanalyzer -Wanalyzer-too-complex -ggdb -g3 -Og 4DEBUG_CFLAGS := -fanalyzer -Wanalyzer-too-complex -ggdb -g3 -Og
5RELEASE_CFLAGS := -O3 -fipa-pta -fipa-cp -fuse-linker-plugin -flto=auto 5RELEASE_CFLAGS := -O3 -fipa-pta -fipa-cp -fuse-linker-plugin -flto=auto
6CFLAGS = -Wall -Wextra -Wpedantic -pedantic-errors $(DEBUG_CFLAGS) 6CFLAGS = -Wall -Wextra -Wpedantic -pedantic-errors $(DEBUG_CFLAGS) $$(pkg-config --cflags libsodium)
7 7
8DEBUG_LDLIBS := 8DEBUG_LDLIBS :=
9RELEASE_LDLIBS := 9RELEASE_LDLIBS :=
10LDLIBS += $(DEBUG_LDLIBS) 10LDLIBS += $(DEBUG_LDLIBS) $$(pkg-config --libs-only-l libsodium)
11 11
12DEBUG_LDFLAGS := 12DEBUG_LDFLAGS :=
13RELEASE_LDFLAGS := -fuse-linker-plugin -flto=auto 13RELEASE_LDFLAGS := -fuse-linker-plugin -flto=auto
14LDFLAGS += $(DEBUG_LDFLAGS) 14LDFLAGS += $(DEBUG_LDFLAGS) $$(pkg-config --libs-only-L libsodium)
15 15
16 16
17BINARIES := main 17BINARIES := main
@@ -25,5 +25,7 @@ main: main.o shared.o
25main.o: main.c shared.h 25main.o: main.c shared.h
26shared.o: shared.c shared.h 26shared.o: shared.c shared.h
27 27
28encryption: encryption.c encryption.h shared.o shared.h
29
28c clean: # huh, didn't think that would work 30c clean: # huh, didn't think that would work
29 rm -rvf $(BINARIES) $(wildcard *.o) \ No newline at end of file 31 rm -rvf $(BINARIES) $(wildcard *.o) \ No newline at end of file