Whamcloud - gitweb
libext2fs: add threading support to the I/O manager abstraction
[tools/e2fsprogs.git] / lib / Makefile.bsd-lib
index e49dd7a..2792ba3 100644 (file)
@@ -10,9 +10,9 @@
 # BSDLIB_INSTALL_DIR = $(SHLIBDIR)
 #
 
-all:: pic image
+all:: image
 
-subdirs:: pic
+real-subdirs:: Makefile
        @echo " MKDIR pic"
        @mkdir -p pic
 
@@ -22,10 +22,11 @@ BSDLIB_PIC_FLAG = -fpic
 image:         $(BSD_LIB)
 
 $(BSD_LIB): $(OBJS)
-       (cd pic; ld -Bshareable -o $(BSD_LIB) $(OBJS))
+       (cd pic; ld -Bshareable -o $(BSD_LIB) $(LDFLAGS_SHLIB) $(OBJS))
        $(MV) pic/$(BSD_LIB) .
        $(RM) -f ../$(BSD_LIB)
-       $(LN) $(BSD_LIB) ../$(BSD_LIB)
+       (cd ..; $(LN) $(LINK_BUILD_FLAGS) \
+               `echo $(my_dir) | sed -e 's;lib/;;'`/$(BSD_LIB) $(BSD_LIB))
 
 install-shlibs install:: $(BSD_LIB)
        @echo " INSTALL_PROGRAM $(BSDLIB_INSTALL_DIR)/$(BSD_LIB)"
@@ -35,7 +36,7 @@ install-shlibs install:: $(BSD_LIB)
 
 install-strip: install
 
-install-shlibs-strip: install-shlibs
+install-shlibs-strip:: install-shlibs
 
 uninstall-shlibs uninstall::
        $(RM) -f $(DESTDIR)$(BSDLIB_INSTALL_DIR)/$(BSD_LIB)