diff options
| author | @syxhe <https://t.me/syxhe> | 2025-04-04 21:04:18 -0500 |
|---|---|---|
| committer | @syxhe <https://t.me/syxhe> | 2025-04-04 21:04:18 -0500 |
| commit | e5454e63a086e549f54c23a686ff300b99a83b58 (patch) | |
| tree | 3a39680d55e42bbc9449a52437f570f02fbfeb20 /src/Makefile | |
| parent | cd307d16713f2552f8cf9c1116e860de3aa2cec6 (diff) | |
Make decryptto function also use named temporary files for writing
Diffstat (limited to 'src/Makefile')
| -rw-r--r-- | src/Makefile | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/src/Makefile b/src/Makefile index 4450727..53cd9fd 100644 --- a/src/Makefile +++ b/src/Makefile | |||
| @@ -9,22 +9,24 @@ CFLAGS = -std=c2x -Wall -Wextra -Wpedantic -pedantic-errors -fanalyzer -Wanalyze | |||
| 9 | LDLIBS += $$(pkg-config --libs-only-l libsodium) | 9 | LDLIBS += $$(pkg-config --libs-only-l libsodium) |
| 10 | LDFLAGS += $$(pkg-config --libs-only-L libsodium) | 10 | LDFLAGS += $$(pkg-config --libs-only-L libsodium) |
| 11 | 11 | ||
| 12 | 12 | OBJECTS := $(patsubst %.c,%.o, $(wildcard *.c)) | |
| 13 | BINARIES := main | ||
| 14 | 13 | ||
| 15 | .PHONY: all c clean val | 14 | .PHONY: all c clean val |
| 15 | .DELETE_ON_ERROR: | ||
| 16 | 16 | ||
| 17 | all: main | 17 | all: main |
| 18 | main: main.o encryption.o shared.o ll.o arena.o | ||
| 18 | 19 | ||
| 19 | main: main.o shared.o ll.o arena.o | ||
| 20 | 20 | ||
| 21 | ll.o: ll.c ll.h shared.h | 21 | $(OBJECTS): shared.h |
| 22 | main.o: main.c shared.h | 22 | ll.o: ll.c ll.h |
| 23 | arena.o: arena.c arena.h shared.h | 23 | main.o: main.c |
| 24 | shared.o: shared.c shared.h | 24 | arena.o: arena.c arena.h |
| 25 | shared.o: shared.c shared.h # Might as well put shared.h in here explicitly | ||
| 26 | encryption.o: encryption.c encryption.h | ||
| 25 | 27 | ||
| 26 | c clean: | 28 | c clean: |
| 27 | rm -rvf $(BINARIES) $(wildcard *.o) $(wildcard *.test*) $(wildcard *.enc) | 29 | -rm -rv main $(OBJECTS) $(wildcard *.test*) $(wildcard *.enc) |
| 28 | 30 | ||
| 29 | val: | 31 | val: |
| 30 | $(MAKE) all | 32 | $(MAKE) all |
