2
# This is a Makefile stub which handles the creation of Darwin BSD shared
5
# In order to use this stub, the following makefile variables must be defined.
10
# BSDLIB_INSTALL_DIR = $(SHLIBDIR)
20
BSD_LIB = $(BSDLIB_IMAGE).$(BSDLIB_VERSION).dylib
25
(cd pic; $(CC) -dynamiclib -compatibility_version 1.0 -current_version $(BSDLIB_VERSION) \
26
-flat_namespace -undefined warning -o $(BSD_LIB) $(OBJS))
27
$(MV) pic/$(BSD_LIB) .
28
$(RM) -f ../$(BSD_LIB)
29
$(LN) $(BSD_LIB) ../$(BSD_LIB)
30
$(LN) ../$(BSD_LIB) ../$(BSDLIB_IMAGE).dylib
32
install-shlibs install:: $(BSD_LIB)
33
$(INSTALL_PROGRAM) $(BSD_LIB) \
34
$(DESTDIR)$(BSDLIB_INSTALL_DIR)/$(BSD_LIB)
37
uninstall-shlibs uninstall::
38
$(RM) -f $(DESTDIR)$(BSDLIB_INSTALL_DIR)/$(BSD_LIB)
43
$(RM) -f ../$(BSD_LIB)
44
$(RM) -f ../$(BSDLIB_IMAGE).dylib