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>
47 lines
987 B
Makefile
47 lines
987 B
Makefile
#
|
|
# This is a Makefile stub which handles the creation of BSD shared
|
|
# libraries.
|
|
#
|
|
# In order to use this stub, the following makefile variables must be defined.
|
|
#
|
|
# BSDLIB_VERSION = 1.0
|
|
# BSDLIB_IMAGE = libce
|
|
# BSDLIB_MYDIR = et
|
|
# BSDLIB_INSTALL_DIR = $(SHLIBDIR)
|
|
#
|
|
|
|
all:: image
|
|
|
|
real-subdirs:: Makefile
|
|
@echo " MKDIR pic"
|
|
@mkdir -p pic
|
|
|
|
BSD_LIB = $(BSDLIB_IMAGE).so.$(BSDLIB_VERSION)
|
|
BSDLIB_PIC_FLAG = -fpic
|
|
|
|
image: $(BSD_LIB)
|
|
|
|
$(BSD_LIB): $(OBJS)
|
|
(cd pic; ld -Bshareable -o $(BSD_LIB) $(OBJS))
|
|
$(MV) pic/$(BSD_LIB) .
|
|
$(RM) -f ../$(BSD_LIB)
|
|
$(LN) $(BSD_LIB) ../$(BSD_LIB)
|
|
|
|
install-shlibs install:: $(BSD_LIB)
|
|
@echo " INSTALL_PROGRAM $(BSDLIB_INSTALL_DIR)/$(BSD_LIB)"
|
|
@$(INSTALL_PROGRAM) $(BSD_LIB) \
|
|
$(DESTDIR)$(BSDLIB_INSTALL_DIR)/$(BSD_LIB)
|
|
@-$(LDCONFIG)
|
|
|
|
install-strip: install
|
|
|
|
install-shlibs-strip: install-shlibs
|
|
|
|
uninstall-shlibs uninstall::
|
|
$(RM) -f $(DESTDIR)$(BSDLIB_INSTALL_DIR)/$(BSD_LIB)
|
|
|
|
clean::
|
|
$(RM) -rf pic
|
|
$(RM) -f $(BSD_LIB)
|
|
$(RM) -f ../$(BSD_LIB)
|