lh | 9ed821d | 2023-04-07 01:36:19 -0700 | [diff] [blame^] | 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) (cd ..; $(LN) $(LINK_BUILD_FLAGS) \ |
| 18 | `echo $(my_dir) | sed -e 's;lib/;;'`/$@ $@) |
| 19 | |
| 20 | install:: $(LIBRARY)_p.a installdirs |
| 21 | $(E) " INSTALL_DATA $(libdir)/$(LIBRARY)_p.a" |
| 22 | $(Q) $(INSTALL_DATA) $(LIBRARY)_p.a $(DESTDIR)$(libdir)/$(LIBRARY)_p.a |
| 23 | -$(Q) $(RANLIB) $(DESTDIR)$(libdir)/$(LIBRARY)_p.a |
| 24 | $(Q) $(CHMOD) $(LIBMODE) $(DESTDIR)$(libdir)/$(LIBRARY)_p.a |
| 25 | |
| 26 | uninstall:: |
| 27 | $(RM) -f $(DESTDIR)$(libdir)/$(LIBRARY)_p.a |