From bd9ce5ea8fe470ddc3bb6f05432c50efec602403 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Sat, 28 Aug 2021 14:22:32 -0300 Subject: Makefile: Move libgistatic.a to the beginning, following the natural progression of artifacts --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index e45c8d0..c4287f4 100644 --- a/Makefile +++ b/Makefile @@ -37,15 +37,15 @@ t-objects = $(sources:.c=.to) src/tests-lib.to src/main.to all: gistatic libgistatic.a $(manpages) +libgistatic.a: $(lib-objects) + $(AR) $(ARFLAGS) $@ $(lib-objects) + gistatic: $(all-objects) $(CC) $(LDFLAGS) -o $@ $(all-objects) $(LDLIBS) gistatic-tests: $(t-objects) $(CC) $(LDFLAGS) -o $@ $(t-objects) $(LDLIBS) -libgistatic.a: $(lib-objects) - $(AR) $(ARFLAGS) $@ $(lib-objects) - src/config.h: printf '#ifndef GISTATIC_CONFIG_H\n' >> $@ printf '#define GISTATIC_CONFIG_H\n\n' >> $@ -- cgit v1.2.3