SHELL = /bin/sh prefix=@prefix@ exec_prefix=@exec_prefix@ datadir=@datadir@ sysconfdir=@sysconfdir@ sbindir=@sbindir@ lsbindir=@lsbindir@ includedir=${prefix}/include mandir=@mandir@ libdir=${exec_prefix}/lib 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=@LDFLAGS@ LIBS=${LIBZEPHYR} @LIBS@ -lcom_err OBJS= timer.o queue.o zhm.o zhm_client.o zhm_server.o all: zhm zhm: ${OBJS} ${LIBZEPHYR} ${LIBTOOL} --mode=link ${CC} ${LDFLAGS} -o $@ ${OBJS} ${LIBS} .c.o: ${CC} -c ${ALL_CFLAGS} $< check: install: zhm ${LIBTOOL} --mode=install ${INSTALL} -m 755 zhm ${DESTDIR}${lsbindir} ${INSTALL} -m 644 ${srcdir}/zhm.8 ${DESTDIR}${mandir}/man8 clean: ${LIBTOOL} --mode=clean rm -f zhm rm -f ${OBJS} ${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 .PHONY: all check install clean