summaryrefslogtreecommitdiff
path: root/clients/zshutdown_notify
diff options
context:
space:
mode:
authorGravatar Greg Hudson <ghudson@mit.edu>2005-07-14 10:48:42 +0000
committerGravatar Greg Hudson <ghudson@mit.edu>2005-07-14 10:48:42 +0000
commita5d7ebb1d18a3710cb6b86f0b68d2257c4ab061a (patch)
tree5ad3a8ede1362ab4cc12213d12630c6ec1a774cc /clients/zshutdown_notify
parent25816c15e3f20ddf954aafbe675af68d9e1ead19 (diff)
Add shared library support for libzephyr.
Diffstat (limited to 'clients/zshutdown_notify')
-rw-r--r--clients/zshutdown_notify/Makefile.in17
1 files changed, 11 insertions, 6 deletions
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