1 | # This file is part of the Project Athena Global Message System. |
---|
2 | # Created by: Mark W. Eichin <eichin@athena.mit.edu> |
---|
3 | # $Source: /afs/dev.mit.edu/source/repository/athena/bin/gms/Makefile,v $ |
---|
4 | # $Author: epeisach $ |
---|
5 | # |
---|
6 | # Copyright (c) 1988 by the Massachusetts Institute of Technology. |
---|
7 | # For copying and distribution information, see the file |
---|
8 | # "mit-copyright.h". |
---|
9 | # |
---|
10 | # $Header: /afs/dev.mit.edu/source/repository/athena/bin/gms/Makefile,v 1.3 1989-01-27 14:25:25 epeisach Exp $ |
---|
11 | # Generic one project, one target makefile. |
---|
12 | # |
---|
13 | |
---|
14 | PROJECT= gms |
---|
15 | TARGET= get_message |
---|
16 | SERVER= messaged |
---|
17 | |
---|
18 | CSRCS= get_a_message.c get_fallback_file.c get_message.c get_message_from_server.c get_servername.c gethost_errors.c hesiod_errors.c put_fallback_file.c read_to_memory.c view_message_by_tty.c view_message_by_zephyr.c check_viewable.c |
---|
19 | |
---|
20 | ETSRCS= gethost_err.et globalmessage_err.et hesiod_err.et |
---|
21 | |
---|
22 | ETINCS= gethost_err.h globalmessage_err.h hesiod_err.h |
---|
23 | |
---|
24 | ETOBJS= gethost_err.o globalmessage_err.o hesiod_err.o |
---|
25 | |
---|
26 | ETCSRC= gethost_err.c globalmessage_err.c hesiod_err.c |
---|
27 | |
---|
28 | OBJS= get_a_message.o get_fallback_file.o get_message.o get_message_from_server.o get_servername.o gethost_errors.o hesiod_errors.o put_fallback_file.o read_to_memory.o view_message_by_tty.o view_message_by_zephyr.o check_viewable.o |
---|
29 | |
---|
30 | |
---|
31 | INCLUDE= -I. |
---|
32 | |
---|
33 | ALLSRCS= $(CSRCS) $(ETSRCS) |
---|
34 | |
---|
35 | |
---|
36 | CFLAGS= ${INCLUDE} |
---|
37 | |
---|
38 | DEPEND=/usr/athena/makedepend |
---|
39 | COMPILE_ET=/usr/athena/compile_et |
---|
40 | |
---|
41 | LIB= lib${PROJECT}.a |
---|
42 | LIBS= $(LIB) -lhesiod -lcom_err |
---|
43 | |
---|
44 | all: $(TARGET) $(SERVER) |
---|
45 | |
---|
46 | clean: |
---|
47 | -rm -f $(OBJS) $(LIB) $(TARGET) $(ETINCS) $(ETOBJS) |
---|
48 | -rm -f $(SERVER) message_daemon.o |
---|
49 | |
---|
50 | $(TARGET): $(TARGET).o $(LIB) |
---|
51 | $(CC) $(CFLAGS) -o $@ $(TARGET).o $(LIBS) |
---|
52 | |
---|
53 | install: $(TARGET) $(SERVER) |
---|
54 | install -c -s $(TARGET) ${DESTDIR}/bin/athena/$(TARGET) |
---|
55 | install -c get_message.1 ${DESTDIR}/usr/man/man1 |
---|
56 | install -c -s $(SERVER) ${DESTDIR}/etc/athena/$(SERVER) |
---|
57 | |
---|
58 | server: $(SERVER) |
---|
59 | |
---|
60 | MDFLAGS=-DGMS_SERVER_MESSAGE=\"/site/Message\" |
---|
61 | |
---|
62 | message_daemon.o: message_daemon.c |
---|
63 | $(CC) $(CFLAGS) $(MDFLAGS) -c message_daemon.c |
---|
64 | |
---|
65 | $(SERVER): message_daemon.o $(LIB) |
---|
66 | $(CC) $(CFLAGS) -o $@ message_daemon.o $(LIBS) |
---|
67 | |
---|
68 | |
---|
69 | $(LIB): $(OBJS) $(ETOBJS) |
---|
70 | -rm -f $(LIB) |
---|
71 | ar cqv $(LIB) $(OBJS) $(ETOBJS) |
---|
72 | ranlib $(LIB) |
---|
73 | |
---|
74 | .SUFFIXES: .o .h .et |
---|
75 | |
---|
76 | $(ETINCS): $(ETSRCS) |
---|
77 | $(COMPILE_ET) $*.et |
---|
78 | |
---|
79 | $(ETCSRC): $(ETSRCS) |
---|
80 | $(COMPILE_ET) $*.et |
---|
81 | |
---|
82 | $(ETOBJS): $(ETCSRC) |
---|
83 | |
---|
84 | depend: $(ETINCS) |
---|
85 | ${DEPEND} -v ${CFLAGS} -s'# DO NOT DELETE' $(CSRCS) $(MODS) |
---|
86 | |
---|
87 | # DO NOT DELETE THIS LINE |
---|
88 | |
---|
89 | get_a_message.o: /usr/include/mit-copyright.h globalmessage.h |
---|
90 | # globalmessage.h includes: |
---|
91 | # errno.h |
---|
92 | # globalmessage_err.h |
---|
93 | get_a_message.o: /usr/include/errno.h globalmessage_err.h |
---|
94 | get_a_message.o: /usr/include/syslog.h |
---|
95 | get_fallback_file.o: /usr/include/mit-copyright.h globalmessage.h |
---|
96 | get_fallback_file.o: /usr/include/errno.h globalmessage_err.h |
---|
97 | get_fallback_file.o: /usr/include/sys/file.h |
---|
98 | get_message.o: /usr/include/mit-copyright.h globalmessage.h |
---|
99 | get_message.o: /usr/include/errno.h globalmessage_err.h /usr/include/stdio.h |
---|
100 | get_message.o: /usr/include/sys/types.h /usr/include/syslog.h |
---|
101 | get_message_from_server.o: /usr/include/mit-copyright.h globalmessage.h |
---|
102 | get_message_from_server.o: /usr/include/errno.h globalmessage_err.h |
---|
103 | get_message_from_server.o: /usr/include/sys/types.h /usr/include/sys/socket.h |
---|
104 | get_message_from_server.o: /usr/include/netinet/in.h /usr/include/netdb.h |
---|
105 | get_message_from_server.o: /usr/include/hesiod.h /usr/include/sys/time.h |
---|
106 | # /usr/include/sys/time.h includes: |
---|
107 | # time.h |
---|
108 | get_message_from_server.o: /usr/include/sys/time.h |
---|
109 | get_servername.o: /usr/include/mit-copyright.h globalmessage.h |
---|
110 | get_servername.o: /usr/include/errno.h globalmessage_err.h |
---|
111 | get_servername.o: /usr/include/hesiod.h |
---|
112 | gethost_errors.o: /usr/include/mit-copyright.h gethost_err.h |
---|
113 | gethost_errors.o: /usr/include/netdb.h |
---|
114 | hesiod_errors.o: /usr/include/mit-copyright.h hesiod_err.h |
---|
115 | hesiod_errors.o: /usr/include/hesiod.h |
---|
116 | put_fallback_file.o: /usr/include/mit-copyright.h globalmessage.h |
---|
117 | put_fallback_file.o: /usr/include/errno.h globalmessage_err.h |
---|
118 | put_fallback_file.o: /usr/include/sys/file.h /usr/include/sys/types.h |
---|
119 | put_fallback_file.o: /usr/include/sys/time.h /usr/include/sys/time.h |
---|
120 | read_to_memory.o: /usr/include/mit-copyright.h globalmessage.h |
---|
121 | read_to_memory.o: /usr/include/errno.h globalmessage_err.h |
---|
122 | view_message_by_tty.o: /usr/include/mit-copyright.h globalmessage.h |
---|
123 | view_message_by_tty.o: /usr/include/errno.h globalmessage_err.h |
---|
124 | view_message_by_zephyr.o: /usr/include/mit-copyright.h globalmessage.h |
---|
125 | view_message_by_zephyr.o: /usr/include/errno.h globalmessage_err.h |
---|
126 | view_message_by_zephyr.o: /usr/include/pwd.h /usr/include/stdio.h |
---|
127 | view_message_by_zephyr.o: /usr/include/strings.h /usr/include/syslog.h |
---|
128 | check_viewable.o: /usr/include/mit-copyright.h globalmessage.h |
---|
129 | check_viewable.o: /usr/include/errno.h globalmessage_err.h |
---|
130 | check_viewable.o: /usr/include/strings.h /usr/include/sys/types.h |
---|
131 | check_viewable.o: /usr/include/sys/file.h /usr/include/pwd.h |
---|