2 # This is a Makefile stub which handles the creation of BSD shared
5 # In order to use this stub, the following makefile variables must be defined.
10 # BSDLIB_INSTALL_DIR = $(SHLIBDIR)
15 real-subdirs:: Makefile
19 BSD_LIB = $(BSDLIB_IMAGE).so.$(BSDLIB_VERSION)
20 BSDLIB_PIC_FLAG = -fpic
25 (cd pic; ld -Bshareable -o $(BSD_LIB) $(LDFLAGS_SHLIB) $(OBJS))
26 $(MV) pic/$(BSD_LIB) .
27 $(RM) -f ../$(BSD_LIB)
28 (cd ..; $(LN) $(LINK_BUILD_FLAGS) \
29 `echo $(my_dir) | sed -e 's;lib/;;'`/$(BSD_LIB) $(BSD_LIB))
31 install-shlibs install:: $(BSD_LIB)
32 @echo " INSTALL_PROGRAM $(BSDLIB_INSTALL_DIR)/$(BSD_LIB)"
33 @$(INSTALL_PROGRAM) $(BSD_LIB) \
34 $(DESTDIR)$(BSDLIB_INSTALL_DIR)/$(BSD_LIB)
37 install-strip: install
39 install-shlibs-strip:: install-shlibs
41 uninstall-shlibs uninstall::
42 $(RM) -f $(DESTDIR)$(BSDLIB_INSTALL_DIR)/$(BSD_LIB)
47 $(RM) -f ../$(BSD_LIB)