From 108b9506e89e58721673284aed708283d8f4e2eb Mon Sep 17 00:00:00 2001 From: Attila Kovacs Date: Sun, 29 Dec 2024 22:24:57 +0100 Subject: [PATCH] Refactor static lib to libsupernovas.a (libnovas.a is a symlink) --- Makefile | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index bef70699..59dca406 100644 --- a/Makefile +++ b/Makefile @@ -161,9 +161,12 @@ $(LIB)/libsolsys-calceph.so.$(SO_VERSION): $(SRC)/solsys-calceph.c | $(LIB)/libs $(LIB)/libsolsys-cspice.so.$(SO_VERSION): LDFLAGS += -lcspice $(LIB)/libsolsys-cspice.so.$(SO_VERSION): $(SRC)/solsys-cspice.c | $(LIB)/libsupernovas.so +# Static library: libsupernovas.a +$(LIB)/libsupernovas.a: $(OBJECTS) | $(LIB) Makefile -# Static library: libnovas.a -$(LIB)/libnovas.a: $(OBJECTS) | $(LIB) Makefile +$(LIB)/libnovas.a: $(LIB)/libsupernovas.a + @rm -f $@ + ln -sr $< $@ # CIO locator data cio_ra.bin: data/CIO_RA.TXT $(BIN)/cio_file @@ -212,7 +215,7 @@ install-libs: ifneq ($(wildcard $(LIB)/*),) @echo "installing libraries to $(DESTDIR)$(libdir)" install -d $(DESTDIR)$(libdir) - $(INSTALL_PROGRAM) -D $(LIB)/lib*.so* $(DESTDIR)$(libdir)/ + $(INSTALL_PROGRAM) -D $(LIB)/lib* $(DESTDIR)$(libdir)/ else @echo "WARNING! Skipping libs install: needs 'shared' and/or 'static'" endif