1997-04-26 17:58:21 +04:00
|
|
|
#
|
2001-05-20 02:07:36 +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:: pic image
|
|
|
|
|
2006-03-11 05:39:40 +03:00
|
|
|
real-subdirs:: pic
|
2005-12-30 06:45:29 +03:00
|
|
|
@echo " MKDIR pic"
|
|
|
|
@mkdir -p pic
|
1997-04-26 17:58:21 +04:00
|
|
|
|
|
|
|
BSD_LIB = $(BSDLIB_IMAGE).so.$(BSDLIB_VERSION)
|
2004-03-01 06:46:49 +03:00
|
|
|
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) $(OBJS))
|
|
|
|
$(MV) pic/$(BSD_LIB) .
|
|
|
|
$(RM) -f ../$(BSD_LIB)
|
|
|
|
$(LN) $(BSD_LIB) ../$(BSD_LIB)
|
|
|
|
|
|
|
|
install-shlibs install:: $(BSD_LIB)
|
2004-12-15 19:28:55 +03:00
|
|
|
@echo " INSTALL_PROGRAM $(BSDLIB_INSTALL_DIR)/$(BSD_LIB)"
|
|
|
|
@$(INSTALL_PROGRAM) $(BSD_LIB) \
|
1998-04-01 06:51:21 +04:00
|
|
|
$(DESTDIR)$(BSDLIB_INSTALL_DIR)/$(BSD_LIB)
|
2004-12-15 19:28:55 +03:00
|
|
|
@-$(LDCONFIG)
|
|
|
|
|
|
|
|
install-strip: install
|
|
|
|
|
|
|
|
install-shlibs-strip: install-shlibs
|
1997-04-26 17:58:21 +04:00
|
|
|
|
1998-04-01 06:51: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)
|