Whamcloud - gitweb
blkid: more sanity checks for swap v1
[tools/e2fsprogs.git] / lib / Makefile.profile
1 all:: $(LIBRARY)_p.a
2
3 real-subdirs:: Makefile
4         @echo " MKDIR profiled"
5         @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         @echo " GEN_PROFILED_LIB $(ELF_LIB)"
13         @(if test -r $@; then $(RM) -f $@.bak && $(MV) $@ $@.bak; fi)
14         @(cd profiled; $(ARUPD) ../$@ $(OBJS))
15         -@$(RANLIB) $@
16         @$(RM) -f ../$@
17         @$(LN) $@ ../$@
18
19 install:: $(LIBRARY)_p.a installdirs
20         @echo " INSTALL_DATA $(libdir)/$(LIBRARY)_p.a"
21         @$(INSTALL_DATA) $(LIBRARY)_p.a $(DESTDIR)$(libdir)/$(LIBRARY)_p.a
22         @-$(RANLIB) $(DESTDIR)$(libdir)/$(LIBRARY)_p.a
23         @$(CHMOD) $(LIBMODE) $(DESTDIR)$(libdir)/$(LIBRARY)_p.a
24
25 uninstall::
26         $(RM) -f $(DESTDIR)$(libdir)/$(LIBRARY)_p.a