mirror of
https://git.kernel.org/pub/scm/fs/ext2/e2fsprogs.git
synced 2024-11-28 20:44:08 +08:00
42c0b61ca5
Approximately two years ago a revamp of the e2fsprogs build infrastructure broke the Makefile fragments for building BSD, Solaris, and Darwin shared libraries, as well as profiling and checker libraries. Apparently no one had noticed except for pierre42@users.sourceforge.net. Addresses-Sourceforge-Bug: #1819034 Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
27 lines
696 B
Makefile
27 lines
696 B
Makefile
all:: $(LIBRARY)_p.a
|
|
|
|
real-subdirs:: Makefile
|
|
@echo " MKDIR profiled"
|
|
@mkdir -p profiled
|
|
|
|
clean::
|
|
$(RM) -rf profiled
|
|
$(RM) -f $(LIBRARY)_p.a ../$(LIBRARY)_p.a
|
|
|
|
$(LIBRARY)_p.a: $(OBJS)
|
|
@echo " GEN_PROFILED_LIB $(ELF_LIB)"
|
|
@(if test -r $@; then $(RM) -f $@.bak && $(MV) $@ $@.bak; fi)
|
|
@(cd profiled; $(ARUPD) ../$@ $(OBJS))
|
|
-@$(RANLIB) $@
|
|
@$(RM) -f ../$@
|
|
@$(LN) $@ ../$@
|
|
|
|
install:: $(LIBRARY)_p.a installdirs
|
|
@echo " INSTALL_DATA $(libdir)/$(LIBRARY)_p.a"
|
|
@$(INSTALL_DATA) $(LIBRARY)_p.a $(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
|