source: trunk/athena/bin/get_message/Makefile.in @ 14063

Revision 14063, 1.4 KB checked in by danw, 25 years ago (diff)
get_message, formerly in athena/bin/gms
Line 
1# $Id: Makefile.in,v 1.1 1999-12-08 22:06:43 danw Exp $
2
3SHELL=/bin/sh
4VPATH=@srcdir@
5INSTALL=@INSTALL@
6INSTALL_PROGRAM=@INSTALL_PROGRAM@
7srcdir=@srcdir@
8top_srcdir=@top_srcdir@
9prefix=@prefix@
10exec_prefix=@exec_prefix@
11bindir=@bindir@
12mandir=@mandir@
13
14CC=@CC@
15DEFS=@DEFS@
16CPPFLAGS=@CPPFLAGS@
17CFLAGS=@CFLAGS@ ${WARN_CFLAGS} ${ERROR_CFLAGS}
18LDFLAGS=@LDFLAGS@
19LIBS=-lhesiod -lcom_err -lgms @LIBS@
20ALL_CFLAGS=${CPPFLAGS} ${CFLAGS} ${DEFS}
21
22all: get_message
23
24OBJS=   get_message.o check_viewable.o gethost_err.o \
25        gethost_errors.o get_a_message.o get_fallback_file.o \
26        get_message_from_server.o get_servername.o \
27        hesiod_err.o hesiod_errors.o \
28        put_fallback_file.o read_to_memory.o \
29        view_message_by_tty.o view_message_by_zephyr.o
30
31get_message: ${OBJS}
32        ${CC} ${LDFLAGS} -o get_message ${OBJS} ${LIBS}
33
34gethost_err.h gethost_err.c: gethost_err.et
35        compile_et ${srcdir}/gethost_err.et
36
37hesiod_err.h hesiod_err.c: hesiod_err.et
38        compile_et ${srcdir}/hesiod_err.et
39
40.c.o:
41        ${CC} -c ${ALL_CFLAGS} $<
42
43install:
44        ${top_srcdir}/mkinstalldirs ${DESTDIR}${bindir}
45        ${top_srcdir}/mkinstalldirs ${DESTDIR}${mandir}/man1
46        ${INSTALL_PROGRAM} get_message ${DESTDIR}${bindir}
47        ${INSTALL} -m 444 ${srcdir}/get_message.1 ${DESTDIR}${mandir}/man1
48
49clean:
50        rm -f get_message ${OBJS}
51        rm -f gethost_err.c gethost_err.h
52        rm -f hesiod_err.c hesiod_err.h
53
54distclean: clean
55        rm -f config.cache config.log config.status Makefile
56
57gethost_errors.o: gethost_err.h
58hesiod_errors.o get_servername.o: hesiod_err.h
Note: See TracBrowser for help on using the repository browser.