- -@/bin/rm -f $(DL)/libpng.a
- (cd $(DL); ln -sf $(LIBNAME).a libpng.a)
-
-install-shared: install-headers $(LIBNAME).dylib libpng.pc \
- libpng.3.$(PNGMIN).dylib
- -@if [ ! -d $(DL) ]; then mkdir $(DL); fi
- -@/bin/rm -f $(DL)/$(LIBNAME).$(PNGVER)*.dylib
- -@/bin/rm -f $(DL)/$(LIBNAME).$(PNGMAJ)*.dylib
- -@/bin/rm -f $(DL)/$(LIBNAME).dylib
- -@/bin/rm -f $(DL)/libpng.dylib
- -@/bin/rm -f $(DL)/libpng.3.dylib
- -@/bin/rm -f $(DL)/libpng.3.$(PNGMIN)*.dylib
- cp $(LIBNAME).$(PNGVER).dylib $(DL)
- cp libpng.3.$(PNGMIN).dylib $(DL)
- chmod 755 $(DL)/$(LIBNAME).$(PNGVER).dylib
- chmod 755 $(DL)/libpng.3.$(PNGMIN).dylib
+ -@$(RM_F) $(DL)/libpng.a
+ (cd $(DL); $(LN_SF) $(LIBNAME).a libpng.a)
+
+install-shared: install-headers $(LIBSO) libpng.pc \
+ $(OLDSOVER)
+ -@if [ ! -d $(DL) ]; then $(MKDIR_P) $(DL); fi
+ -@$(RM_F) $(DL)/$(LIBNAME).$(PNGVER)*.dylib
+ -@$(RM_F) $(DL)/$(LIBNAME).$(PNGMAJ)*.dylib
+ -@$(RM_F) $(DL)/$(LIBSO)
+ -@$(RM_F) $(DL)/$(OLDSO)
+ -@$(RM_F) $(DL)/$(OLDSOMAJ)
+ -@$(RM_F) $(DL)/libpng.3.$(PNGMIN)*.dylib
+ cp $(LIBSOVER) $(DL)
+ cp $(OLDSOVER) $(DL)
+ chmod 755 $(DL)/$(LIBSOVER)
+ chmod 755 $(DL)/$(OLDSOVER)