aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2021-08-28 14:22:32 -0300
committerEuAndreh <eu@euandre.org>2021-08-28 14:22:32 -0300
commitbd9ce5ea8fe470ddc3bb6f05432c50efec602403 (patch)
tree016911ce5ca089104f80c63743a43cef1ed0b6a0
parentMakefile: Remove duplicate usage of $(CFLAGS), $(LDFLAGS) and $(LDLIBS) (diff)
downloadgistatic-bd9ce5ea8fe470ddc3bb6f05432c50efec602403.tar.gz
gistatic-bd9ce5ea8fe470ddc3bb6f05432c50efec602403.tar.xz
Makefile: Move libgistatic.a to the beginning, following the natural progression of artifacts
-rw-r--r--Makefile6
1 files 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' >> $@