From a5d7ebb1d18a3710cb6b86f0b68d2257c4ab061a Mon Sep 17 00:00:00 2001 From: Greg Hudson Date: Thu, 14 Jul 2005 10:48:42 +0000 Subject: Add shared library support for libzephyr. --- clients/zshutdown_notify/Makefile.in | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) (limited to 'clients/zshutdown_notify') diff --git a/clients/zshutdown_notify/Makefile.in b/clients/zshutdown_notify/Makefile.in index 6891efd..f619a09 100644 --- a/clients/zshutdown_notify/Makefile.in +++ b/clients/zshutdown_notify/Makefile.in @@ -11,26 +11,29 @@ includedir=${prefix}/include mandir=${prefix}/man libdir=${exec_prefix}/lib bindir=${exec_prefix}/bin +top_builddir=../.. srcdir=@srcdir@ top_srcdir=@top_srcdir@ BUILDTOP=../.. VPATH=@srcdir@ +LIBTOOL=@LIBTOOL@ CC=@CC@ INSTALL=@INSTALL@ +LIBZEPHYR=${BUILDTOP}/lib/libzephyr.la CPPFLAGS=@CPPFLAGS@ CFLAGS=@CFLAGS@ ALL_CFLAGS=${CFLAGS} -I${top_srcdir}/h -I${BUILDTOP}/h ${CPPFLAGS} -LDFLAGS=-L${BUILDTOP}/lib @LDFLAGS@ -LIBS=-lzephyr @LIBS@ -lcom_err +LDFLAGS=@LDFLAGS@ +LIBS=${LIBZEPHYR} @LIBS@ -lcom_err OBJS= zshutdown_notify.o all: zshutdown_notify -zshutdown_notify: ${OBJS} ${BUILDTOP}/lib/libzephyr.a - ${CC} ${LDFLAGS} -o $@ ${OBJS} ${LIBS} +zshutdown_notify: ${OBJS} ${LIBZEPHYR} + ${LIBTOOL} --mode=link ${CC} ${LDFLAGS} -o $@ ${OBJS} ${LIBS} .c.o: ${CC} -c ${ALL_CFLAGS} $< @@ -38,11 +41,13 @@ zshutdown_notify: ${OBJS} ${BUILDTOP}/lib/libzephyr.a check: install: zshutdown_notify - ${INSTALL} -m 755 -s zshutdown_notify ${DESTDIR}${lsbindir} + ${LIBTOOL} --mode=install ${INSTALL} -m 755 zshutdown_notify \ + ${DESTDIR}${lsbindir} ${INSTALL} -m 644 ${srcdir}/zshutdown_notify.8 ${DESTDIR}${mandir}/man8 clean: - rm -f ${OBJS} zshutdown_notify + ${LIBTOOL} --mode=clean rm -f zshutdown_notify + rm -f ${OBJS} ${OBJS}: ${top_srcdir}/h/sysdep.h ${BUILDTOP}/h/config.h ${OBJS}: ${BUILDTOP}/h/zephyr/zephyr.h ${BUILDTOP}/h/zephyr/zephyr_err.h -- cgit v1.2.3