diff options
Diffstat (limited to 'lib/Makefile.bsd-lib')
-rw-r--r-- | lib/Makefile.bsd-lib | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/lib/Makefile.bsd-lib b/lib/Makefile.bsd-lib new file mode 100644 index 00000000..e0227a26 --- /dev/null +++ b/lib/Makefile.bsd-lib @@ -0,0 +1,37 @@ +# +# This is a Makefile stub which handles the creation of Linux BSD shared +# 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 + +subdirs:: pic + +pic: + mkdir pic + +BSD_LIB = $(BSDLIB_IMAGE).so.$(BSDLIB_VERSION) + +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) + $(INSTALL_PROGRAM) $(BSD_LIB) $(BSDLIB_INSTALL_DIR)/$(BSD_LIB) + -ldconfig + +clean:: + $(RM) -rf pic + $(RM) -f $(BSD_LIB) + $(RM) -f ../$(BSD_LIB) |