about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--Makefile8
1 files changed, 7 insertions, 1 deletions
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