| diff -aur giflib-5.2.1.orig/Makefile giflib-5.2.1/Makefile |
| --- giflib-5.2.1.orig/Makefile 2019-06-24 12:08:57.000000000 -0400 |
| +++ giflib-5.2.1/Makefile 2021-04-27 19:32:14.483330500 -0400 |
| @@ -8,7 +8,7 @@ |
| # |
| OFLAGS = -O0 -g |
| OFLAGS = -O2 |
| -CFLAGS = -std=gnu99 -fPIC -Wall -Wno-format-truncation $(OFLAGS) |
| +CFLAGS = -std=gnu99 -Wall -Wno-format-truncation $(OFLAGS) |
| |
| SHELL = /bin/sh |
| TAR = tar |
| @@ -61,27 +61,25 @@ |
| |
| LDLIBS=libgif.a -lm |
| |
| -all: libgif.so libgif.a libutil.so libutil.a $(UTILS) |
| +all: libgif-$(LIBMAJOR).dll libgif.a libutil-$(LIBMAJOR).dll libutil.a $(UTILS) |
| $(MAKE) -C doc |
| |
| $(UTILS):: libgif.a libutil.a |
| |
| -libgif.so: $(OBJECTS) $(HEADERS) |
| - $(CC) $(CFLAGS) -shared $(LDFLAGS) -Wl,-soname -Wl,libgif.so.$(LIBMAJOR) -o libgif.so $(OBJECTS) |
| +libgif-$(LIBMAJOR).dll: $(OBJECTS) $(HEADERS) |
| + $(CC) $(CFLAGS) -shared $(LDFLAGS) -Wl,--out-implib,libgif.dll.a -o libgif-$(LIBMAJOR).dll $(OBJECTS) |
| |
| libgif.a: $(OBJECTS) $(HEADERS) |
| $(AR) rcs libgif.a $(OBJECTS) |
| |
| -libutil.so: $(UOBJECTS) $(UHEADERS) |
| - $(CC) $(CFLAGS) -shared $(LDFLAGS) -Wl,-soname -Wl,libutil.so.$(LIBMAJOR) -o libutil.so $(UOBJECTS) |
| +libutil-$(LIBMAJOR).dll: $(UOBJECTS) $(UHEADERS) |
| + $(CC) $(CFLAGS) -shared $(LDFLAGS) -Wl,--out-implib,libutil.dll.a -o libutil-$(LIBMAJOR).dll $(UOBJECTS) -L. -lgif |
| |
| libutil.a: $(UOBJECTS) $(UHEADERS) |
| $(AR) rcs libutil.a $(UOBJECTS) |
| |
| clean: |
| - rm -f $(UTILS) $(TARGET) libgetarg.a libgif.a libgif.so libutil.a libutil.so *.o |
| - rm -f libgif.so.$(LIBMAJOR).$(LIBMINOR).$(LIBPOINT) |
| - rm -f libgif.so.$(LIBMAJOR) |
| + rm -f $(UTILS) $(TARGET) libgetarg.a libgif.a libgif-$(LIBMAJOR).dll libgif.dll.a libutil.a libutil-$(LIBMAJOR).dll libutil.dll.a *.o |
| rm -fr doc/*.1 *.html doc/staging |
| |
| check: all |
| @@ -99,9 +97,8 @@ |
| install-lib: |
| $(INSTALL) -d "$(DESTDIR)$(LIBDIR)" |
| $(INSTALL) -m 644 libgif.a "$(DESTDIR)$(LIBDIR)/libgif.a" |
| - $(INSTALL) -m 755 libgif.so "$(DESTDIR)$(LIBDIR)/libgif.so.$(LIBVER)" |
| - ln -sf libgif.so.$(LIBVER) "$(DESTDIR)$(LIBDIR)/libgif.so.$(LIBMAJOR)" |
| - ln -sf libgif.so.$(LIBMAJOR) "$(DESTDIR)$(LIBDIR)/libgif.so" |
| + $(INSTALL) -m 644 libgif.dll.a "$(DESTDIR)$(LIBDIR)/libgif.dll.a" |
| + $(INSTALL) -m 755 libgif-$(LIBMAJOR).dll "$(DESTDIR)$(BINDIR)/libgif-$(LIBMAJOR).dll" |
| install-man: |
| $(INSTALL) -d "$(DESTDIR)$(MANDIR)/man1" |
| $(INSTALL) -m 644 doc/*.1 "$(DESTDIR)$(MANDIR)/man1" |
| @@ -112,7 +109,7 @@ |
| rm -f "$(DESTDIR)$(INCDIR)/gif_lib.h" |
| uninstall-lib: |
| cd "$(DESTDIR)$(LIBDIR)" && \ |
| - rm -f libgif.a libgif.so libgif.so.$(LIBMAJOR) libgif.so.$(LIBVER) |
| + rm -f libgif.a libgif-$(LIBMAJOR).dll libgif.dll.a |
| uninstall-man: |
| cd "$(DESTDIR)$(MANDIR)/man1" && rm -f $(shell cd doc >/dev/null && echo *.1) |
| |