e2fsprogs/lib/Makefile.bsd-lib

48 lines
1.0 KiB
Makefile
Raw Normal View History

1997-04-26 17:58:21 +04:00
#
# This is a Makefile stub which handles the creation of BSD shared
1997-04-26 17:58:21 +04:00
# 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
1997-04-26 17:58:21 +04:00
real-subdirs:: Makefile
@echo " MKDIR pic"
@mkdir -p pic
1997-04-26 17:58:21 +04:00
BSD_LIB = $(BSDLIB_IMAGE).so.$(BSDLIB_VERSION)
BSDLIB_PIC_FLAG = -fpic
1997-04-26 17:58:21 +04:00
image: $(BSD_LIB)
$(BSD_LIB): $(OBJS)
(cd pic; ld -Bshareable -o $(BSD_LIB) $(LDFLAGS_SHLIB) $(OBJS))
1997-04-26 17:58:21 +04:00
$(MV) pic/$(BSD_LIB) .
$(RM) -f ../$(BSD_LIB)
(cd ..; $(LN) $(LINK_BUILD_FLAGS) \
`echo $(my_dir) | sed -e 's;lib/;;'`/$(BSD_LIB) $(BSD_LIB))
1997-04-26 17:58:21 +04:00
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
1997-04-26 17:58:21 +04:00
uninstall-shlibs uninstall::
$(RM) -f $(DESTDIR)$(BSDLIB_INSTALL_DIR)/$(BSD_LIB)
1997-04-26 17:58:21 +04:00
clean::
$(RM) -rf pic
$(RM) -f $(BSD_LIB)
$(RM) -f ../$(BSD_LIB)