Ticket #51565: patch-Makefile.diff

File patch-Makefile.diff, 1.9 KB (added by ryandesign (Ryan Carsten Schmidt), 8 years ago)
  • Makefile

    old new  
    7979
    8080# build pianobar
    8181ifeq (${DYNLINK},1)
    82 pianobar: ${PIANOBAR_OBJ} libpiano.so.0
     82pianobar: ${PIANOBAR_OBJ} libpiano.0.dylib
    8383        ${SILENTECHO} "  LINK  $@"
    8484        ${SILENTCMD}${CC} -o $@ ${PIANOBAR_OBJ} -L. -lpiano ${ALL_LDFLAGS}
    8585else
     
    8989endif
    9090
    9191# build shared and static libpiano
    92 libpiano.so.0: ${LIBPIANO_RELOBJ} ${LIBPIANO_OBJ}
     92libpiano.0.dylib: ${LIBPIANO_RELOBJ} ${LIBPIANO_OBJ}
    9393        ${SILENTECHO} "  LINK  $@"
    94         ${SILENTCMD}${CC} -shared -Wl,-soname,libpiano.so.0 -o libpiano.so.0.0.0 \
     94        ${SILENTCMD}${CC} -dynamiclib -Wl,-install_name,${LIBDIR}/libpiano.0.dylib -o libpiano.0.0.0.dylib \
    9595                        ${LIBPIANO_RELOBJ} ${ALL_LDFLAGS}
    96         ${SILENTCMD}ln -fs libpiano.so.0.0.0 libpiano.so.0
    97         ${SILENTCMD}ln -fs libpiano.so.0 libpiano.so
     96        ${SILENTCMD}ln -fs libpiano.0.0.0.dylib libpiano.0.dylib
     97        ${SILENTCMD}ln -fs libpiano.0.dylib libpiano.dylib
    9898        ${SILENTECHO} "    AR  libpiano.a"
    9999        ${SILENTCMD}${AR} rcs libpiano.a ${LIBPIANO_OBJ}
    100100
     
    115115clean:
    116116        ${SILENTECHO} " CLEAN"
    117117        ${SILENTCMD}${RM} ${PIANOBAR_OBJ} ${LIBPIANO_OBJ} \
    118                         ${LIBPIANO_RELOBJ} pianobar libpiano.so* \
     118                        ${LIBPIANO_RELOBJ} pianobar libpiano*.dylib \
    119119                        libpiano.a $(PIANOBAR_SRC:.c=.d) $(LIBPIANO_SRC:.c=.d)
    120120
    121121all: pianobar
     
    132132
    133133install-libpiano:
    134134        install -d ${DESTDIR}${LIBDIR}/
    135         install -m644 libpiano.so.0.0.0 ${DESTDIR}${LIBDIR}/
    136         ln -fs libpiano.so.0.0.0 ${DESTDIR}${LIBDIR}/libpiano.so.0
    137         ln -fs libpiano.so.0 ${DESTDIR}${LIBDIR}/libpiano.so
     135        install -m644 libpiano.0.0.0.dylib ${DESTDIR}${LIBDIR}/
     136        ln -fs libpiano.0.0.0.dylib ${DESTDIR}${LIBDIR}/libpiano.0.dylib
     137        ln -fs libpiano.0.dylib ${DESTDIR}${LIBDIR}/libpiano.dylib
    138138        install -m644 libpiano.a ${DESTDIR}${LIBDIR}/
    139139        install -d ${DESTDIR}${INCDIR}/
    140140        install -m644 src/libpiano/piano.h ${DESTDIR}${INCDIR}/