--- Makefile.orig 2019-06-24 11:08:57.000000000 -0500 +++ Makefile 2023-04-18 18:35:55.000000000 -0500 @@ -8,17 +8,17 @@ # OFLAGS = -O0 -g OFLAGS = -O2 -CFLAGS = -std=gnu99 -fPIC -Wall -Wno-format-truncation $(OFLAGS) +CFLAGS += -std=gnu99 -fPIC -Wall $(OFLAGS) SHELL = /bin/sh TAR = tar INSTALL = install -PREFIX = /usr/local -BINDIR = $(PREFIX)/bin -INCDIR = $(PREFIX)/include -LIBDIR = $(PREFIX)/lib -MANDIR = $(PREFIX)/share/man +PREFIX = %PREFIX% +BINDIR = $(PREFIX)/bin/giflib5/bin +INCDIR = $(PREFIX)/include/giflib5 +LIBDIR = $(PREFIX)/lib/giflib5/lib +MANDIR = $(PREFIX)/share/giflib5/man # No user-serviceable parts below this line @@ -37,6 +37,8 @@ UHEADERS = getarg.h UOBJECTS = $(USOURCES:.c=.o) +UNAME:=$(shell uname) + # Some utilities are installed INSTALLABLE = \ gif2rgb \ --- Makefile.orig 2024-02-18 19:01:50 +++ Makefile 2024-02-24 06:52:44 @@ -97,7 +97,7 @@ $(LIBGIFSO): $(OBJECTS) $(HEADERS) ifeq ($(UNAME), Darwin) - $(CC) $(CFLAGS) -dynamiclib -current_version $(LIBVER) $(OBJECTS) -o $(LIBGIFSO) + $(CC) $(CFLAGS) -dynamiclib -current_version $(LIBVER) -install_name $(LIBDIR)/$(LIBGIFSOMAJOR) $(OBJECTS) -o $(LIBGIFSO) else $(CC) $(CFLAGS) -shared $(LDFLAGS) -Wl,-soname -Wl,$(LIBGIFSOMAJOR) -o $(LIBGIFSO) $(OBJECTS) endif @@ -107,7 +107,7 @@ $(LIBUTILSO): $(UOBJECTS) $(UHEADERS) ifeq ($(UNAME), Darwin) - $(CC) $(CFLAGS) -dynamiclib -current_version $(LIBVER) $(OBJECTS) -o $(LIBUTILSO) + $(CC) $(CFLAGS) -dynamiclib -current_version $(LIBVER) -install_name $(LIBDIR)/$(LIBUTILSOMAJOR) $(OBJECTS) -o $(LIBUTILSO) else $(CC) $(CFLAGS) -shared $(LDFLAGS) -Wl,-soname -Wl,$(LIBUTILMAJOR) -o $(LIBUTILSO) $(UOBJECTS) endif