e2fsprogs/lib/Makefile.profile
Theodore Ts'o 42c0b61ca5 Fix profile, checker, and shared-library building on non-Linux platforms
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>
2008-01-01 16:48:09 -05:00

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