e2fsprogs/lib/Makefile.darwin-lib

52 lines
1.3 KiB
Makefile
Raw Normal View History

2003-03-14 10:13:48 +03:00
#
# This is a Makefile stub which handles the creation of Darwin BSD shared
# libraries.
#
2003-03-17 18:01:22 +03:00
# In order to use this stub, the following makefile variables must be defined.
2003-03-14 10:13:48 +03:00
#
# BSDLIB_VERSION = 1.0
# BSDLIB_IMAGE = libce
# BSDLIB_MYDIR = et
# BSDLIB_INSTALL_DIR = $(SHLIBDIR)
#
all:: image
2003-03-14 10:13:48 +03:00
real-subdirs:: Makefile
$(E) " MKDIR pic"
$(Q) mkdir -p pic
2003-03-14 10:13:48 +03:00
BSD_LIB = $(BSDLIB_IMAGE).$(BSDLIB_VERSION).dylib
BSDLIB_PIC_FLAG = -fPIC
2003-03-14 10:13:48 +03:00
image: $(BSD_LIB)
$(BSD_LIB): $(OBJS)
$(E) " GEN_BSD_SOLIB $(BSD_LIB)"
$(Q) (cd pic; $(CC) -dynamiclib -compatibility_version 1.0 -current_version $(BSDLIB_VERSION) \
2003-03-14 10:13:48 +03:00
-flat_namespace -undefined warning -o $(BSD_LIB) $(OBJS))
$(Q) $(MV) pic/$(BSD_LIB) .
$(Q) $(RM) -f ../$(BSD_LIB)
$(Q) (cd ..; $(LN) $(LINK_BUILD_FLAGS) \
`echo $(my_dir) | sed -e 's;lib/;;'`/$(BSD_LIB) $(BSD_LIB))
$(Q) (cd ..; $(LN) $(LINK_BUILD_FLAGS) $(BSD_LIB) $(BSDLIB_IMAGE).dylib)
2003-03-14 10:13:48 +03:00
install-shlibs install:: $(BSD_LIB)
$(E) " INSTALL_PROGRAM $(BSDLIB_INSTALL_DIR)/$(BSD_LIB)"
$(Q) $(INSTALL_PROGRAM) $(BSD_LIB) \
2003-03-14 10:13:48 +03:00
$(DESTDIR)$(BSDLIB_INSTALL_DIR)/$(BSD_LIB)
-$(Q) $(LDCONFIG)
install-strip: install
install-shlibs-strip: install-shlibs
2003-03-14 10:13:48 +03:00
uninstall-shlibs uninstall::
$(RM) -f $(DESTDIR)$(BSDLIB_INSTALL_DIR)/$(BSD_LIB)
clean::
$(RM) -rf pic
$(RM) -f $(BSD_LIB)
$(RM) -f ../$(BSD_LIB)
$(RM) -f ../$(BSDLIB_IMAGE).dylib