mirror of https://github.com/vitalif/e2fsprogs
27 lines
637 B
Makefile
27 lines
637 B
Makefile
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
|