SHELL=@SHELL@ prefix=@prefix@ exec_prefix=@exec_prefix@ datadir=@datadir@ sysconfdir=@sysconfdir@ sbindir=@sbindir@ lsbindir=@lsbindir@ datarootdir=@datarootdir@ includedir=@includedir@ mandir=@mandir@ libdir=@libdir@ top_builddir=.. srcdir=@srcdir@ top_srcdir=@top_srcdir@ BUILDTOP=.. VPATH=@srcdir@ LIBTOOL=@LIBTOOL@ CC=@CC@ INSTALL=@INSTALL@ editman = sed \ -e 's|@datadir[@]|${datadir}|g' \ -e 's|@sysconfdir[@]|${sysconfdir}|g' \ -e 's|@sbindir[@]|${sbindir}|g' \ -e 's|@lsbindir[@]|${lsbindir}|g' LIBZEPHYR=${BUILDTOP}/lib/libzephyr.la CPPFLAGS=@CPPFLAGS@ CFLAGS=@CFLAGS@ ALL_CFLAGS=${CFLAGS} -I${top_srcdir}/h -I${BUILDTOP}/h ${CPPFLAGS} LDFLAGS=@LDFLAGS@ HESIOD_LIBS=@HESIOD_LIBS@ OBJS= timer.o queue.o zhm.o zhm_client.o zhm_server.o all: zhm zhm.8 zhm: ${OBJS} ${LIBZEPHYR} ${LIBTOOL} --mode=link ${CC} ${LDFLAGS} -o $@ ${OBJS} ${LIBZEPHYR} ${HESIOD_LIBS} -lcom_err zhm.8: ${srcdir}/zhm.8.in Makefile ${editman} ${srcdir}/$@.in > $@.tmp mv $@.tmp $@ .c.o: ${CC} -c ${ALL_CFLAGS} $< check: install: zhm zhm.8 ${LIBTOOL} --mode=install ${INSTALL} -m 755 zhm ${DESTDIR}${lsbindir} ${INSTALL} -m 644 zhm.8 ${DESTDIR}${mandir}/man8 clean: ${LIBTOOL} --mode=clean rm -f zhm rm -f ${OBJS} rm -f zhm.8 ${OBJS}: zhm.h timer.h ${top_srcdir}/h/internal.h ${top_srcdir}/h/sysdep.h ${OBJS}: ${BUILDTOP}/h/config.h ${BUILDTOP}/h/zephyr/zephyr.h ${OBJS}: ${BUILDTOP}/h/zephyr/zephyr_err.h zhm.o: ${BUILDTOP}/h/zephyr_version.h .PHONY: all check install clean