summaryrefslogtreecommitdiff
path: root/src/Makefile
diff options
context:
space:
mode:
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
commite5454e63a086e549f54c23a686ff300b99a83b58 (patch)
tree3a39680d55e42bbc9449a52437f570f02fbfeb20 /src/Makefile
parentcd307d16713f2552f8cf9c1116e860de3aa2cec6 (diff)
Make decryptto function also use named temporary files for writing
Diffstat (limited to 'src/Makefile')
-rw-r--r--src/Makefile18
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
9LDLIBS += $$(pkg-config --libs-only-l libsodium) 9LDLIBS += $$(pkg-config --libs-only-l libsodium)
10LDFLAGS += $$(pkg-config --libs-only-L libsodium) 10LDFLAGS += $$(pkg-config --libs-only-L libsodium)
11 11
12 12OBJECTS := $(patsubst %.c,%.o, $(wildcard *.c))
13BINARIES := main
14 13
15.PHONY: all c clean val 14.PHONY: all c clean val
15.DELETE_ON_ERROR:
16 16
17all: main 17all: main
18main: main.o encryption.o shared.o ll.o arena.o
18 19
19main: main.o shared.o ll.o arena.o
20 20
21ll.o: ll.c ll.h shared.h 21$(OBJECTS): shared.h
22main.o: main.c shared.h 22ll.o: ll.c ll.h
23arena.o: arena.c arena.h shared.h 23main.o: main.c
24shared.o: shared.c shared.h 24arena.o: arena.c arena.h
25shared.o: shared.c shared.h # Might as well put shared.h in here explicitly
26encryption.o: encryption.c encryption.h
25 27
26c clean: 28c clean:
27 rm -rvf $(BINARIES) $(wildcard *.o) $(wildcard *.test*) $(wildcard *.enc) 29 -rm -rv main $(OBJECTS) $(wildcard *.test*) $(wildcard *.enc)
28 30
29val: 31val:
30 $(MAKE) all 32 $(MAKE) all