From 28edb36457995fb42069becb46e8763b3992bcce Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Sat, 28 Aug 2021 14:49:33 -0300 Subject: Makefile: Use libgistatic.a to build gistatic instead of the underlying objects This way I can make sure at least that all the objects that are required to exist on the library file are being included. However, this has no influence on what should and shouldn't be exposed in src/gistatic.h, and which functions ought to be public. This verification will remain unimplemented, at least for now. --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index b2ce2df..fc6efe4 100644 --- a/Makefile +++ b/Makefile @@ -40,11 +40,11 @@ all: gistatic libgistatic.a $(manpages) libgistatic.a: $(lib-objects) $(AR) $(ARFLAGS) $@ $(lib-objects) -gistatic: $(all-objects) - $(CC) $(LDFLAGS) -o $@ $(all-objects) $(LDLIBS) +gistatic: libgistatic.a src/main.o + $(CC) $(LDFLAGS) -o $@ src/main.o libgistatic.a $(LDLIBS) gistatic-tests: $(t-objects) - $(CC) $(LDFLAGS) -o $@ $(t-objects) $(LDLIBS) + $(CC) $(LDFLAGS) -o $@ $(t-objects) $(LDLIBS) src/config.h: printf '#ifndef GISTATIC_CONFIG_H\n' >> $@ -- cgit v1.2.3