summaryrefslogtreecommitdiff
path: root/clients/znol
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/znol
parent25816c15e3f20ddf954aafbe675af68d9e1ead19 (diff)
Add shared library support for libzephyr.
Diffstat (limited to 'clients/znol')
-rw-r--r--clients/znol/Makefile.in16
1 files changed, 10 insertions, 6 deletions
diff --git a/clients/znol/Makefile.in b/clients/znol/Makefile.in
index 3125534..969e44b 100644
--- a/clients/znol/Makefile.in
+++ b/clients/znol/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= znol.o
all: znol
-znol: ${OBJS} ${BUILDTOP}/lib/libzephyr.a
- ${CC} ${LDFLAGS} -o $@ ${OBJS} ${LIBS}
+znol: ${OBJS} ${LIBZEPHYR}
+ ${LIBTOOL} --mode=link ${CC} ${LDFLAGS} -o $@ ${OBJS} ${LIBS}
.c.o:
${CC} -c ${ALL_CFLAGS} $<
@@ -38,11 +41,12 @@ znol: ${OBJS} ${BUILDTOP}/lib/libzephyr.a
check:
install: znol
- ${INSTALL} -m 755 -s znol ${DESTDIR}${bindir}
+ ${LIBTOOL} --mode=install ${INSTALL} -m 755 znol ${DESTDIR}${bindir}
${INSTALL} -m 644 ${srcdir}/znol.1 ${DESTDIR}${mandir}/man1
clean:
- rm -f ${OBJS} znol
+ ${LIBTOOL} --mode=clean rm -f znol
+ 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