SHELL=@SHELL@ prefix=@prefix@ exec_prefix=@exec_prefix@ datadir=@datadir@ sysconfdir=@sysconfdir@ sbindir=@sbindir@ lsbindir=@lsbindir@ datarootdir=@datarootdir@ includedir=@includedir@ mandir=@mandir@ libdir=@libdir@ bindir=@bindir@ 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 @X_CFLAGS@ ${CPPFLAGS} LDFLAGS=@LDFLAGS@ LIBS=${LIBZEPHYR} @SS_LIBS@ @LIBS@ -lcom_err SS_OBJS=zctl_cmds.o OBJS= zctl.o @SS_OBJS@ all: zctl zctl.1 zctl: ${OBJS} ${LIBZEPHYR} ${LIBTOOL} --mode=link ${CC} ${LDFLAGS} -o $@ ${OBJS} ${LIBS} zctl_cmds.c: zctl_cmds.ct mk_cmds ${srcdir}/zctl_cmds.ct .c.o: ${CC} -c ${ALL_CFLAGS} $< zctl.1: ${srcdir}/zctl.1.in Makefile ${editman} ${srcdir}/$@.in > $@.tmp mv $@.tmp $@ check: install: zctl zctl.1 ${LIBTOOL} --mode=install ${INSTALL} -m 755 zctl ${DESTDIR}${bindir} ${INSTALL} -m 644 zctl.1 ${DESTDIR}${mandir}/man1 clean: ${LIBTOOL} --mode=clean rm -f zctl rm -f ${OBJS} zctl_cmds.c rm -f zctl.1 ${OBJS}: ${top_srcdir}/h/sysdep.h ${BUILDTOP}/h/config.h ${OBJS}: ${BUILDTOP}/h/zephyr/zephyr.h ${BUILDTOP}/h/zephyr/zephyr_err.h .PHONY: all check install clean