# $Id: Makefile.in,v 1.2 1999-10-23 19:29:04 danw Exp $

SHELL=/bin/sh
INSTALL=@INSTALL@
RANLIB=@RANLIB@
VPATH=@srcdir@
srcdir=@srcdir@
top_srcdir=@top_srcdir@
prefix=@prefix@
exec_prefix=@exec_prefix@
libdir=@libdir@
includedir=@includedir@
mandir=@mandir@

CC=@CC@
CPPFLAGS=@CPPFLAGS@
CFLAGS=@CFLAGS@ ${WARN_CFLAGS} ${ERROR_CFLAGS}
DEFS=@DEFS@
ALL_CFLAGS=${CPPFLAGS} ${CFLAGS} ${DEFS}
OBJS=larv__compose_packet.o larv_send_status.o larv_set_busy.o

all: liblarv.a

liblarv.a: ${OBJS}
	ar cru $@ ${OBJS}
	${RANLIB} $@

${OBJS}: larvnet.h larv.h larv_private.h

.c.o:
	${CC} -c ${ALL_CFLAGS} $<

check:

install:
	${top_srcdir}/mkinstalldirs ${DESTDIR}${libdir}
	${top_srcdir}/mkinstalldirs ${DESTDIR}${includedir}
	${top_srcdir}/mkinstalldirs ${DESTDIR}${mandir}/man3
	${INSTALL} -m 644 liblarv.a ${DESTDIR}${libdir}
	${RANLIB} ${DESTDIR}${libdir}/liblarv.a
	chmod u-w ${DESTDIR}${libdir}/liblarv.a
	${INSTALL} -m 444 ${srcdir}/larvnet.h ${DESTDIR}${includedir}
	${INSTALL} -m 444 ${srcdir}/larv.h ${DESTDIR}${includedir}
	${INSTALL} -m 444 ${srcdir}/larv_send_status.3 ${DESTDIR}${mandir}/man3
	${INSTALL} -m 444 ${srcdir}/larv_set_busy.3 ${DESTDIR}${mandir}/man3

clean:
	rm -f ${OBJS} liblarv.a

distclean: clean
	rm -f config.cache config.log config.status Makefile
