1 all:: $(LIBRARY)_p.a 2 3 real-subdirs:: Makefile 4 $(E) " MKDIR profiled" 5 $(Q) mkdir -p profiled 6 7 clean:: 8 $(RM) -rf profiled 9 $(RM) -f $(LIBRARY)_p.a ../$(LIBRARY)_p.a 10 11 $(LIBRARY)_p.a: $(OBJS) 12 $(E) " GEN_PROFILED_LIB $(ELF_LIB)" 13 $(Q) (if test -r $@; then $(RM) -f $@.bak && $(MV) $@ $@.bak; fi) 14 $(Q) (cd profiled; $(ARUPD) ../$@ $(OBJS)) 15 -$(Q) $(RANLIB) $@ 16 $(Q) $(RM) -f ../$@ 17 $(Q) $(LN) $@ ../$@ 18 19 install:: $(LIBRARY)_p.a installdirs 20 $(E) " INSTALL_DATA $(libdir)/$(LIBRARY)_p.a" 21 $(Q) $(INSTALL_DATA) $(LIBRARY)_p.a $(DESTDIR)$(libdir)/$(LIBRARY)_p.a 22 -$(Q) $(RANLIB) $(DESTDIR)$(libdir)/$(LIBRARY)_p.a 23 $(Q) $(CHMOD) $(LIBMODE) $(DESTDIR)$(libdir)/$(LIBRARY)_p.a 24 25 uninstall:: 26 $(RM) -f $(DESTDIR)$(libdir)/$(LIBRARY)_p.a 27