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>
diff --git a/lib/Makefile.profile b/lib/Makefile.profile
index deaa7cb..a2e77c6 100644
--- a/lib/Makefile.profile
+++ b/lib/Makefile.profile
@@ -1,7 +1,7 @@
-all:: profiled $(LIBRARY)_p.a
+all:: $(LIBRARY)_p.a
 
 real-subdirs:: Makefile
-	@echo "	MKDIR $@"
+	@echo "	MKDIR profiled"
 	@mkdir -p profiled
 
 clean::