aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2021-08-28 14:49:33 -0300
committerEuAndreh <eu@euandre.org>2021-08-28 14:49:37 -0300
commit28edb36457995fb42069becb46e8763b3992bcce (patch)
treef097aa6b93f29519a555751cdad3ea19fcb1c7ae
parentMakefile: Run integration (expensive) tests after unit and linter tests (diff)
downloadgistatic-28edb36457995fb42069becb46e8763b3992bcce.tar.gz
gistatic-28edb36457995fb42069becb46e8763b3992bcce.tar.xz
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.
-rw-r--r--Makefile6
1 files 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' >> $@