From 63a4b2b9bb290528f8d9cda3d6b1723d5d56e414 Mon Sep 17 00:00:00 2001 From: Daniel Santos Date: Thu, 17 Mar 2022 21:37:08 +0000 Subject: add to Makefile libnumericx.a * add libnumericx.a static library building and clearing Signed-off-by: Daniel Santos --- Makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index fff3e48..2e9aee2 100644 --- a/Makefile +++ b/Makefile @@ -8,6 +8,12 @@ all: decimal-to-earth earth-to-decimal decimal-to-sun sun-to-decimal decimal-to- numericx.o: numericx.c $(CC) $(CFLAGS) -c $^ +libnumericx.a: numericx.o + ar -rc libnumericx.a $^ + ranlib $@ + +libs: libnumericx.a + decimal-to-earth: $(DEP) $(CC) $(CFLAGS) -DFROM_NUMERICALS=\"0123456789\" -DFROM_FIRST_NUMBER_VOID -DFROM_INFINITE_BASE -DTO_NUMERICALS=\"12345\" -o $@ $^ @@ -58,7 +64,7 @@ uninfinity: $(DEP) .PHONY: clean clean: - \rm -f *-to-* uninfinity *.o + \rm -f *-to-* uninfinity *.o *.a .PHONY: run run: decimal-to-earth -- cgit 1.4.1-2-gfad0