--- Makefile.orig 2024-01-30 00:08:25 +++ Makefile 2024-12-13 19:19:32 @@ -68,7 +68,7 @@ app: $(APPNAME) all: app lib -lib: lib$(APPNAME).a +lib: lib$(APPNAME).a lib$(APPNAME).dylib WGET_CMD = @echo "run make with WGET_CMD=wget to allow file downloads" ; echo "DISABLED:" wget @@ -163,9 +163,13 @@ ifeq ($(SIMD),select) lib$(APPNAME).a: libjpegqs_base.o libjpegqs_sse2.o libjpegqs_avx2.o libjpegqs_avx512.o +lib$(APPNAME).dylib: libjpegqs_base.o libjpegqs_sse2.o libjpegqs_avx2.o libjpegqs_avx512.o + $(CC) $(CFLAGS_APP) -fPIC -shared $(JPEGLIB2) $(SIMDOBJ) $(LDFLAGS) -o $@ libjpegqs_base.o libjpegqs_sse2.o libjpegqs_avx2.o libjpegqs_avx512.o endif lib$(APPNAME).a: libjpegqs.o $(AR) -rsc $@ $^ +lib$(APPNAME).dylib: libjpegqs.o + $(CC) $(CFLAGS_APP) -fPIC -shared $(JPEGLIB2) $(SIMDOBJ) $(LDFLAGS) -o $@ $^ libjpegqs.o: libjpegqs.c $(SRCDEPS) $(CC) $(CFLAGS_APP) -c -o $@ $<