Ticket #51565: patch-Makefile.diff
File patch-Makefile.diff, 1.9 KB (added by ryandesign (Ryan Carsten Schmidt), 8 years ago) |
---|
-
Makefile
old new 79 79 80 80 # build pianobar 81 81 ifeq (${DYNLINK},1) 82 pianobar: ${PIANOBAR_OBJ} libpiano. so.082 pianobar: ${PIANOBAR_OBJ} libpiano.0.dylib 83 83 ${SILENTECHO} " LINK $@" 84 84 ${SILENTCMD}${CC} -o $@ ${PIANOBAR_OBJ} -L. -lpiano ${ALL_LDFLAGS} 85 85 else … … 89 89 endif 90 90 91 91 # build shared and static libpiano 92 libpiano. so.0: ${LIBPIANO_RELOBJ} ${LIBPIANO_OBJ}92 libpiano.0.dylib: ${LIBPIANO_RELOBJ} ${LIBPIANO_OBJ} 93 93 ${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 \ 95 95 ${LIBPIANO_RELOBJ} ${ALL_LDFLAGS} 96 ${SILENTCMD}ln -fs libpiano. so.0.0.0 libpiano.so.097 ${SILENTCMD}ln -fs libpiano. so.0 libpiano.so96 ${SILENTCMD}ln -fs libpiano.0.0.0.dylib libpiano.0.dylib 97 ${SILENTCMD}ln -fs libpiano.0.dylib libpiano.dylib 98 98 ${SILENTECHO} " AR libpiano.a" 99 99 ${SILENTCMD}${AR} rcs libpiano.a ${LIBPIANO_OBJ} 100 100 … … 115 115 clean: 116 116 ${SILENTECHO} " CLEAN" 117 117 ${SILENTCMD}${RM} ${PIANOBAR_OBJ} ${LIBPIANO_OBJ} \ 118 ${LIBPIANO_RELOBJ} pianobar libpiano .so*\118 ${LIBPIANO_RELOBJ} pianobar libpiano*.dylib \ 119 119 libpiano.a $(PIANOBAR_SRC:.c=.d) $(LIBPIANO_SRC:.c=.d) 120 120 121 121 all: pianobar … … 132 132 133 133 install-libpiano: 134 134 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.0137 ln -fs libpiano. so.0 ${DESTDIR}${LIBDIR}/libpiano.so135 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 138 138 install -m644 libpiano.a ${DESTDIR}${LIBDIR}/ 139 139 install -d ${DESTDIR}${INCDIR}/ 140 140 install -m644 src/libpiano/piano.h ${DESTDIR}${INCDIR}/