fix some make rules
[pandora-libraries.git] / Makefile
index 01c529c..39630ba 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -37,13 +37,11 @@ libpnd.a:   ${ALLOBJ} ${XMLOBJ}
        ${AR} r ${LIB} ${ALLOBJ} ${XMLOBJ}
        ${RANLIB} ${LIB}
 
-libpnd.so.1:   ${ALLOBJ} ${XMLOBJ}
-       ${CC} -shared -Wl,-soname,${SOLIB} -o ${SOLIB1} ${ALLOBJ} ${XMLOBJ}
+${SOLIB}:      ${SOLIB1}
        ln -f -s ${SOLIB1} ${SOLIB}
 
 ${SOLIB1}:     ${ALLOBJ} ${XMLOBJ}
-       ${CC} -shared -Wl,-soname,${SOLIB} -o ${SOLIB1} ${ALLOBJ} ${XMLOBJ}
-       ln -f -s ${SOLIB1} ${SOLIB}
+       ${CXX} -shared -Wl,-soname,${SOLIB} -o ${SOLIB1} ${ALLOBJ} ${XMLOBJ}
 
 pndnotifyd:    pndnotifyd.o ${SOLIB1}
        ${CXX}  -o bin/pndnotifyd pndnotifyd.o ${SOLIB1}