Whamcloud - gitweb
e2fsck: set E2F_FLAG_ALLOC_OK after threads
[tools/e2fsprogs.git] / lib / Makefile.library
index cc2c0ff..f78467a 100644 (file)
@@ -1,5 +1,7 @@
 all:: subdirs $(LIBRARY).a
 
+install-shlibs-strip::
+
 install-shlibs::
 
 uninstall-shlibs::
@@ -7,17 +9,19 @@ uninstall-shlibs::
 real-subdirs::
 
 subdirs:: Makefile
-       @$(MAKE) -s real-subdirs
-       @touch subdirs
+       $(Q) $(MAKE) -s real-subdirs
+       $(Q) touch subdirs
 
 clean::
-       @$(RM) -f subdirs
+       $(Q) $(RM) -f subdirs
 
 $(LIBRARY).a: $(OBJS)
-       @echo " GEN_LIB $@"
-       @(if test -r $@; then $(RM) -f $@.bak && $(MV) $@ $@.bak; fi)
-       @$(ARGEN) $@ $(OBJS)
+       $(E) "  GEN_LIB $@"
+       $(Q) (if test -r $@; then $(RM) -f $@.bak && $(MV) $@ $@.bak; fi)
+       $(Q) $(ARGEN) $@ $(OBJS)
        -@$(RANLIB) $@
-       @$(RM) -f ../$@
-       @$(LN) $@ ../$@
+       $(Q) $(RM) -f ../$@
+       $(Q) (cd ..; $(LN) $(LINK_BUILD_FLAGS) \
+               `echo $(my_dir) | sed -e 's;lib/;;'`/$@ $@)
 
+$(LIB)/$(LIBRARY).a: $(LIBRARY).a