diff options
author | Greg Hudson <ghudson@mit.edu> | 1997-09-14 17:50:06 +0000 |
---|---|---|
committer | Greg Hudson <ghudson@mit.edu> | 1997-09-14 17:50:06 +0000 |
commit | ac16f380e349fa39ec7e26bccb5456cb300006a5 (patch) | |
tree | c07ca88af97b4f6b77d28a2dc723d2e4621ed302 /clients/zctl/Makefile.in | |
parent | d33e482744fad80d95cdd89ed380c5b8401e49bf (diff) |
Pull in sources from zephyr locker. See /mit/zephyr/repository for
detailed change information.
Diffstat (limited to 'clients/zctl/Makefile.in')
-rw-r--r-- | clients/zctl/Makefile.in | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/clients/zctl/Makefile.in b/clients/zctl/Makefile.in new file mode 100644 index 0000000..c9fb8d0 --- /dev/null +++ b/clients/zctl/Makefile.in @@ -0,0 +1,61 @@ +SHELL = /bin/sh + +prefix=@prefix@ +exec_prefix=@exec_prefix@ +datadir=@datadir@ +confdir=@confdir@ +sbindir=@sbindir@ +lsbindir=@lsbindir@ + +includedir=${prefix}/include +mandir=${prefix}/man +libdir=${exec_prefix}/lib +bindir=${exec_prefix}/bin + +srcdir=@srcdir@ +top_srcdir=@top_srcdir@ +BUILDTOP=../.. +VPATH=@srcdir@ +CC=@CC@ +INSTALL=@INSTALL@ +MK_CMDS=@MK_CMDS@ + +DEBUG=-O +CFLAGS=${DEBUG} -I${top_srcdir}/h -I${BUILDTOP}/h @X_CFLAGS@ @CPPFLAGS@ +LDFLAGS=${DEBUG} -L${BUILDTOP}/lib/zephyr @ET_LDFLAGS@ @SS_LDFLAGS@ @LDFLAGS@ +LIBS=-lzephyr -lss @LIBS@ -lcom_err + +OBJS= zctl.o zctl_cmds.o + +all: zctl + +zctl: ${OBJS} ${BUILDTOP}/lib/zephyr/libzephyr.a @ETDEP@ @SSDEP@ + ${CC} ${LDFLAGS} -o $@ ${OBJS} ${LIBS} + +# The Athena mk_cmds insists on writing output to source directory. Bleah. +# After the patch to fix it goes into an Athena release, replace it with: +# ${MK_CMDS} ${srcdir}/zctl_cmds.ct +zctl_cmds.c: zctl_cmds.ct + cp ${srcdir}/zctl_cmds.ct /tmp/zctl_cmds.$$$$.ct; \ + ${MK_CMDS} /tmp/zctl_cmds.$$$$.ct; \ + if [ -f /tmp/zctl_cmds.$$$$.c ]; then \ + mv /tmp/zctl_cmds.$$$$.c zctl_cmds.c; \ + else \ + mv zctl_cmds.$$$$.c zctl_cmds.c; \ + fi; \ + rm -f /tmp/zctl_cmds.$$$$.ct + +check: + +install: zctl + ${INSTALL} -m 755 -s zctl ${DESTDIR}${bindir} + ${INSTALL} -m 644 ${srcdir}/zctl.1 ${DESTDIR}${mandir}/man1 + +clean: + rm -f ${OBJS} zctl_cmds.c zctl + +${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 + |