source: trunk/athena/bin/gms/Makefile @ 1719

Revision 1719, 4.8 KB checked in by epeisach, 35 years ago (diff)
Converted to work with new compile_et that was installed 1/25/88
Line 
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
14PROJECT= gms
15TARGET= get_message
16SERVER= messaged
17
18CSRCS= 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
20ETSRCS= gethost_err.et globalmessage_err.et hesiod_err.et
21
22ETINCS= gethost_err.h globalmessage_err.h hesiod_err.h
23
24ETOBJS= gethost_err.o globalmessage_err.o hesiod_err.o
25
26ETCSRC= gethost_err.c globalmessage_err.c hesiod_err.c
27
28OBJS= 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
31INCLUDE= -I.
32
33ALLSRCS= $(CSRCS) $(ETSRCS)
34
35
36CFLAGS= ${INCLUDE}
37
38DEPEND=/usr/athena/makedepend
39COMPILE_ET=/usr/athena/compile_et
40
41LIB= lib${PROJECT}.a
42LIBS= $(LIB) -lhesiod -lcom_err
43
44all: $(TARGET) $(SERVER)
45
46clean:
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
53install: $(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
58server: $(SERVER)
59
60MDFLAGS=-DGMS_SERVER_MESSAGE=\"/site/Message\"
61
62message_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
84depend: $(ETINCS)
85        ${DEPEND} -v ${CFLAGS} -s'# DO NOT DELETE' $(CSRCS) $(MODS)
86
87# DO NOT DELETE THIS LINE
88
89get_a_message.o: /usr/include/mit-copyright.h globalmessage.h
90# globalmessage.h includes:
91#       errno.h
92#       globalmessage_err.h
93get_a_message.o: /usr/include/errno.h globalmessage_err.h
94get_a_message.o: /usr/include/syslog.h
95get_fallback_file.o: /usr/include/mit-copyright.h globalmessage.h
96get_fallback_file.o: /usr/include/errno.h globalmessage_err.h
97get_fallback_file.o: /usr/include/sys/file.h
98get_message.o: /usr/include/mit-copyright.h globalmessage.h
99get_message.o: /usr/include/errno.h globalmessage_err.h /usr/include/stdio.h
100get_message.o: /usr/include/sys/types.h /usr/include/syslog.h
101get_message_from_server.o: /usr/include/mit-copyright.h globalmessage.h
102get_message_from_server.o: /usr/include/errno.h globalmessage_err.h
103get_message_from_server.o: /usr/include/sys/types.h /usr/include/sys/socket.h
104get_message_from_server.o: /usr/include/netinet/in.h /usr/include/netdb.h
105get_message_from_server.o: /usr/include/hesiod.h /usr/include/sys/time.h
106# /usr/include/sys/time.h includes:
107#       time.h
108get_message_from_server.o: /usr/include/sys/time.h
109get_servername.o: /usr/include/mit-copyright.h globalmessage.h
110get_servername.o: /usr/include/errno.h globalmessage_err.h
111get_servername.o: /usr/include/hesiod.h
112gethost_errors.o: /usr/include/mit-copyright.h gethost_err.h
113gethost_errors.o: /usr/include/netdb.h
114hesiod_errors.o: /usr/include/mit-copyright.h hesiod_err.h
115hesiod_errors.o: /usr/include/hesiod.h
116put_fallback_file.o: /usr/include/mit-copyright.h globalmessage.h
117put_fallback_file.o: /usr/include/errno.h globalmessage_err.h
118put_fallback_file.o: /usr/include/sys/file.h /usr/include/sys/types.h
119put_fallback_file.o: /usr/include/sys/time.h /usr/include/sys/time.h
120read_to_memory.o: /usr/include/mit-copyright.h globalmessage.h
121read_to_memory.o: /usr/include/errno.h globalmessage_err.h
122view_message_by_tty.o: /usr/include/mit-copyright.h globalmessage.h
123view_message_by_tty.o: /usr/include/errno.h globalmessage_err.h
124view_message_by_zephyr.o: /usr/include/mit-copyright.h globalmessage.h
125view_message_by_zephyr.o: /usr/include/errno.h globalmessage_err.h
126view_message_by_zephyr.o: /usr/include/pwd.h /usr/include/stdio.h
127view_message_by_zephyr.o: /usr/include/strings.h /usr/include/syslog.h
128check_viewable.o: /usr/include/mit-copyright.h globalmessage.h
129check_viewable.o: /usr/include/errno.h globalmessage_err.h
130check_viewable.o: /usr/include/strings.h /usr/include/sys/types.h
131check_viewable.o: /usr/include/sys/file.h /usr/include/pwd.h
Note: See TracBrowser for help on using the repository browser.