diff options
Diffstat (limited to 'src/Makefile')
| -rw-r--r-- | src/Makefile | 8 |
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 | ||
| 4 | DEBUG_CFLAGS := -fanalyzer -Wanalyzer-too-complex -ggdb -g3 -Og | 4 | DEBUG_CFLAGS := -fanalyzer -Wanalyzer-too-complex -ggdb -g3 -Og |
| 5 | RELEASE_CFLAGS := -O3 -fipa-pta -fipa-cp -fuse-linker-plugin -flto=auto | 5 | RELEASE_CFLAGS := -O3 -fipa-pta -fipa-cp -fuse-linker-plugin -flto=auto |
| 6 | CFLAGS = -Wall -Wextra -Wpedantic -pedantic-errors $(DEBUG_CFLAGS) | 6 | CFLAGS = -Wall -Wextra -Wpedantic -pedantic-errors $(DEBUG_CFLAGS) $$(pkg-config --cflags libsodium) |
| 7 | 7 | ||
| 8 | DEBUG_LDLIBS := | 8 | DEBUG_LDLIBS := |
| 9 | RELEASE_LDLIBS := | 9 | RELEASE_LDLIBS := |
| 10 | LDLIBS += $(DEBUG_LDLIBS) | 10 | LDLIBS += $(DEBUG_LDLIBS) $$(pkg-config --libs-only-l libsodium) |
| 11 | 11 | ||
| 12 | DEBUG_LDFLAGS := | 12 | DEBUG_LDFLAGS := |
| 13 | RELEASE_LDFLAGS := -fuse-linker-plugin -flto=auto | 13 | RELEASE_LDFLAGS := -fuse-linker-plugin -flto=auto |
| 14 | LDFLAGS += $(DEBUG_LDFLAGS) | 14 | LDFLAGS += $(DEBUG_LDFLAGS) $$(pkg-config --libs-only-L libsodium) |
| 15 | 15 | ||
| 16 | 16 | ||
| 17 | BINARIES := main | 17 | BINARIES := main |
| @@ -25,5 +25,7 @@ main: main.o shared.o | |||
| 25 | main.o: main.c shared.h | 25 | main.o: main.c shared.h |
| 26 | shared.o: shared.c shared.h | 26 | shared.o: shared.c shared.h |
| 27 | 27 | ||
| 28 | encryption: encryption.c encryption.h shared.o shared.h | ||
| 29 | |||
| 28 | c clean: # huh, didn't think that would work | 30 | c 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 |
