From 98754c3900671f88f30f40eacf9a576adb037fb6 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sat, 19 Feb 2022 22:44:26 +0100 Subject: Improve makefile MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- Makefile | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 978519e..57da740 100644 --- a/Makefile +++ b/Makefile @@ -41,6 +41,7 @@ $(LOBJ): $(HDR) libfonts.a: $(OBJ) @rm -f -- $@ $(AR) rc $@ $(OBJ) + $(AR) ts $@ > /dev/null libfonts.$(LIBEXT): $(LOBJ) $(CC) $(LIBFLAGS) -o $@ $(LOBJ) $(LDFLAGS) @@ -50,6 +51,7 @@ install: libfonts.a libfonts.$(LIBEXT) mkdir -p -- "$(DESTDIR)$(PREFIX)/include" cp -- libfonts.a "$(DESTDIR)$(PREFIX)/lib/" cp -- libfonts.$(LIBEXT) "$(DESTDIR)$(PREFIX)/lib/libfonts.$(LIBMINOREXT)" + $(FIX_INSTALL_NAME) "$(DESTDIR)$(PREFIX)/lib/libfonts.$(LIBMINOREXT)" ln -sf -- libfonts.$(LIBMINOREXT) "$(DESTDIR)$(PREFIX)/lib/libfonts.$(LIBMAJOREXT)" ln -sf -- libfonts.$(LIBMAJOREXT) "$(DESTDIR)$(PREFIX)/lib/libfonts.$(LIBEXT)" cp -- libfonts.h "$(DESTDIR)$(PREFIX)/include/" -- cgit v1.2.3-70-g09d2