Ticket #32896: patch-Makefile.diff
File patch-Makefile.diff, 2.3 KB (added by ryandesign (Ryan Carsten Schmidt), 13 years ago) |
---|
-
Makefile
old new 90 90 91 91 # build pianobar 92 92 ifeq (${DYNLINK},1) 93 pianobar: ${PIANOBAR_OBJ} ${PIANOBAR_HDR} libpiano. so.093 pianobar: ${PIANOBAR_OBJ} ${PIANOBAR_HDR} libpiano.0.dylib 94 94 @echo " LINK $@" 95 95 @${CC} -o $@ ${PIANOBAR_OBJ} ${LDFLAGS} -lao -lpthread -lm -L. -lpiano \ 96 96 ${LIBFAAD_LDFLAGS} ${LIBMAD_LDFLAGS} ${LIBGNUTLS_LDFLAGS} … … 104 104 endif 105 105 106 106 # build shared and static libpiano 107 libpiano. so.0: ${LIBPIANO_RELOBJ} ${LIBPIANO_HDR} ${LIBWAITRESS_RELOBJ} \107 libpiano.0.dylib: ${LIBPIANO_RELOBJ} ${LIBPIANO_HDR} ${LIBWAITRESS_RELOBJ} \ 108 108 ${LIBWAITRESS_HDR} ${LIBEZXML_RELOBJ} ${LIBEZXML_HDR} \ 109 109 ${LIBPIANO_OBJ} ${LIBWAITRESS_OBJ} ${LIBEZXML_OBJ} 110 110 @echo " LINK $@" 111 @${CC} - shared -Wl,-soname,libpiano.so.0${CFLAGS} ${LDFLAGS} ${LIBGNUTLS_LDFLAGS} \112 -o libpiano. so.0.0.0${LIBPIANO_RELOBJ} \111 @${CC} -dynamiclib -Wl,-install_name,${LIBDIR}/libpiano.0.dylib ${CFLAGS} ${LDFLAGS} ${LIBGNUTLS_LDFLAGS} \ 112 -o libpiano.0.0.0.dylib ${LIBPIANO_RELOBJ} \ 113 113 ${LIBWAITRESS_RELOBJ} ${LIBEZXML_RELOBJ} 114 @ln -s libpiano. so.0.0.0 libpiano.so.0115 @ln -s libpiano. so.0 libpiano.so114 @ln -s libpiano.0.0.0.dylib libpiano.0.dylib 115 @ln -s libpiano.0.dylib libpiano.dylib 116 116 @echo " AR libpiano.a" 117 117 @${AR} rcs libpiano.a ${LIBPIANO_OBJ} ${LIBWAITRESS_OBJ} ${LIBEZXML_OBJ} 118 118 … … 132 132 @echo " CLEAN" 133 133 @${RM} ${PIANOBAR_OBJ} ${LIBPIANO_OBJ} ${LIBWAITRESS_OBJ} ${LIBWAITRESS_OBJ}/test.o \ 134 134 ${LIBEZXML_OBJ} ${LIBPIANO_RELOBJ} ${LIBWAITRESS_RELOBJ} \ 135 ${LIBEZXML_RELOBJ} pianobar libpiano .so*libpiano.a waitress-test135 ${LIBEZXML_RELOBJ} pianobar libpiano*.dylib libpiano.a waitress-test 136 136 137 137 all: pianobar 138 138 … … 183 183 184 184 install-libpiano: 185 185 install -d ${DESTDIR}/${LIBDIR}/ 186 install -m644 libpiano. so.0.0.0${DESTDIR}/${LIBDIR}/187 ln -s libpiano. so.0.0.0 ${DESTDIR}/${LIBDIR}/libpiano.so.0188 ln -s libpiano. so.0 ${DESTDIR}/${LIBDIR}/libpiano.so186 install -m644 libpiano.0.0.0.dylib ${DESTDIR}/${LIBDIR}/ 187 ln -s libpiano.0.0.0.dylib ${DESTDIR}/${LIBDIR}/libpiano.0.dylib 188 ln -s libpiano.0.dylib ${DESTDIR}/${LIBDIR}/libpiano.dylib 189 189 install -m644 libpiano.a ${DESTDIR}/${LIBDIR}/ 190 190 install -d ${DESTDIR}/${INCDIR}/ 191 191 install -m644 src/libpiano/piano.h ${DESTDIR}/${INCDIR}/