blob: 180f5bcfab83fe9edc4af00bf6ac590d042aaabe [file] [log] [blame]
lh9ed821d2023-04-07 01:36:19 -07001all:: $(LIBRARY)_p.a
2
3real-subdirs:: Makefile
4 $(E) " MKDIR profiled"
5 $(Q) mkdir -p profiled
6
7clean::
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
20install:: $(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
26uninstall::
27 $(RM) -f $(DESTDIR)$(libdir)/$(LIBRARY)_p.a