summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2024-02-27 20:07:13 -0300
committerEuAndreh <eu@euandre.org>2024-02-27 20:07:13 -0300
commit3c41e5f7a276250b15a929f4935244fe115fb3f3 (patch)
treee4944318367df3bd09153f5751f8e2bb0fda30ed
parentMakefile: Move the definition of ".bin-check" as a .SUFFIXES entry to the top (diff)
downloadpindaiba-3c41e5f7a276250b15a929f4935244fe115fb3f3.tar.gz
pindaiba-3c41e5f7a276250b15a929f4935244fe115fb3f3.tar.xz
Makefile: Centralize the definition of archive files
-rw-r--r--Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 18df8af..61ad077 100644
--- a/Makefile
+++ b/Makefile
@@ -58,6 +58,12 @@ fuzz.o = $(fuzz.c:.c=.o)
fuzz.xa = $(fuzz.c:.c=.xa)
fuzz.bin = $(fuzz.c:.c=.bin)
+archives = \
+ lib$(NAME).a \
+ $(sources.xa) \
+ src/main.xa \
+ $(fuzz.xa) \
+
sources = \
$(sources.c) \
$(sources.h) \
@@ -104,7 +110,7 @@ $(sources.o) $(sources.to): Makefile deps.mk src/config.h
tests/slurp.o: Makefile deps.mk src/config.h
-lib$(NAME).a $(sources.xa) src/main.xa $(fuzz.xa):
+$(archives):
$(AR) $(ARFLAGS) $@ $?
src/catalog.bin-check: src/$(NAME).en.cat