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
21 BSDLIB_PIC_FLAG = -fPIC
26 @echo " GEN_BSD_SOLIB $(BSD_LIB)"
27 @(cd pic; $(CC) -dynamiclib -compatibility_version 1.0 -current_version $(BSDLIB_VERSION) \
28 -flat_namespace -undefined warning -o $(BSD_LIB) $(OBJS))
29 @$(MV) pic/$(BSD_LIB) .
30 @$(RM) -f ../$(BSD_LIB)
31 @$(LN) $(BSD_LIB) ../$(BSD_LIB)
32 @$(LN) ../$(BSD_LIB) ../$(BSDLIB_IMAGE).dylib
34 install-shlibs install:: $(BSD_LIB)
35 $(INSTALL_PROGRAM) $(BSD_LIB) \
36 $(DESTDIR)$(BSDLIB_INSTALL_DIR)/$(BSD_LIB)
39 uninstall-shlibs uninstall::
40 $(RM) -f $(DESTDIR)$(BSDLIB_INSTALL_DIR)/$(BSD_LIB)
45 $(RM) -f ../$(BSD_LIB)
46 $(RM) -f ../$(BSDLIB_IMAGE).dylib