diff options
author | EuAndreh <eu@euandre.org> | 2024-02-27 20:07:13 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2024-02-27 20:07:13 -0300 |
commit | 3c41e5f7a276250b15a929f4935244fe115fb3f3 (patch) | |
tree | e4944318367df3bd09153f5751f8e2bb0fda30ed | |
parent | Makefile: Move the definition of ".bin-check" as a .SUFFIXES entry to the top (diff) | |
download | pindaiba-3c41e5f7a276250b15a929f4935244fe115fb3f3.tar.gz pindaiba-3c41e5f7a276250b15a929f4935244fe115fb3f3.tar.xz |
Makefile: Centralize the definition of archive files
-rw-r--r-- | Makefile | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -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 |