blob: 674cac766fb930b28855af8d3d4eb53643cdb501 [file] [log] [blame]
all:: profiled $(LIBRARY)_p.a
subdirs:: profiled
profiled:
mkdir profiled
clean::
$(RM) -rf profiled
$(RM) -f $(LIBRARY)_p.a ../$(LIBRARY)_p.a
$(LIBRARY)_p.a: $(OBJS)
(if test -r $@; then $(RM) -f $@.bak && $(MV) $@ $@.bak; fi)
(cd profiled; $(ARUPD) ../$@ $(OBJS))
-$(RANLIB) $@
$(RM) -f ../$@
$(LN) $@ ../$@
install:: $(LIBRARY)_p.a installdirs
$(INSTALL_DATA) $(LIBRARY)_p.a $(DESTDIR)$(libdir)/$(LIBRARY)_p.a
$(CHMOD) 644 $(DESTDIR)$(libdir)/$(LIBRARY)_p.a
-$(RANLIB) $(DESTDIR)$(libdir)/$(LIBRARY)_p.a
$(CHMOD) $(LIBMODE) $(DESTDIR)$(libdir)/$(LIBRARY)_p.a
uninstall::
$(RM) -f $(DESTDIR)$(libdir)/$(LIBRARY)_p.a