blob: 0864facc0e0bff6c4f2ad707aa78f3215982e579 [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)$(ulibdir)/$(LIBRARY)_p.a
$(CHMOD) 644 $(DESTDIR)$(ulibdir)/$(LIBRARY)_p.a
-$(RANLIB) $(DESTDIR)$(ulibdir)/$(LIBRARY)_p.a
$(CHMOD) $(LIBMODE) $(DESTDIR)$(ulibdir)/$(LIBRARY)_p.a