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

Revision 2140, 4.8 KB checked in by probe, 35 years ago (diff)
Fixed permissions problem
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: probe $
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.4 1989-10-15 16:26:32 probe 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
21ETINCS= gethost_err.h globalmessage_err.h hesiod_err.h
22ETOBJS= gethost_err.o globalmessage_err.o hesiod_err.o
23ETCSRC= gethost_err.c globalmessage_err.c hesiod_err.c
24
25OBJS= 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
26
27
28INCLUDE= -I.
29
30ALLSRCS= $(CSRCS) $(ETSRCS)
31
32
33CFLAGS= ${INCLUDE}
34
35DEPEND=/usr/athena/makedepend
36COMPILE_ET=/usr/athena/compile_et
37
38LIB= lib${PROJECT}.a
39LIBS= $(LIB) -lhesiod -lcom_err
40
41all: $(TARGET) $(SERVER)
42
43clean:
44        -rm -f $(OBJS) $(LIB) $(TARGET) $(ETINCS) $(ETOBJS)
45        -rm -f $(SERVER) message_daemon.o
46
47$(TARGET): $(TARGET).o $(LIB)
48        $(CC) $(CFLAGS) -o $@ $(TARGET).o $(LIBS)
49
50install: $(TARGET) $(SERVER)
51        install -c -s $(TARGET) ${DESTDIR}/bin/athena/$(TARGET)
52        install -c get_message.1 ${DESTDIR}/usr/man/man1
53        install -c -s $(SERVER) ${DESTDIR}/etc/athena/$(SERVER)
54
55server: $(SERVER)
56
57MDFLAGS=-DGMS_SERVER_MESSAGE=\"/site/Message\"
58
59message_daemon.o: message_daemon.c
60        $(CC) $(CFLAGS) $(MDFLAGS) -c message_daemon.c
61
62$(SERVER): message_daemon.o $(LIB)
63        $(CC) $(CFLAGS) -o $@ message_daemon.o $(LIBS)
64
65
66$(LIB): $(OBJS) $(ETOBJS)
67        -rm -f $(LIB)
68        ar cqv $(LIB) $(OBJS) $(ETOBJS)
69        ranlib $(LIB)
70
71.SUFFIXES: .o .h .et
72
73$(ETINCS):      $(ETSRCS)
74        rm -f $*.c $*.h
75        $(COMPILE_ET) $*.et
76
77$(ETCSRC):      $(ETSRCS)
78        rm -f $*.c $*.h
79        $(COMPILE_ET) $*.et
80
81$(ETOBJS):      $(ETCSRC)
82
83depend: $(ETINCS)
84        ${DEPEND} -v ${CFLAGS} -s'# DO NOT DELETE' $(CSRCS) $(MODS)
85
86# DO NOT DELETE THIS LINE
87
88get_a_message.o: /usr/include/mit-copyright.h globalmessage.h
89# globalmessage.h includes:
90#       errno.h
91#       globalmessage_err.h
92get_a_message.o: /usr/include/errno.h globalmessage_err.h
93get_a_message.o: /usr/include/syslog.h
94get_fallback_file.o: /usr/include/mit-copyright.h globalmessage.h
95get_fallback_file.o: /usr/include/errno.h globalmessage_err.h
96get_fallback_file.o: /usr/include/sys/file.h
97get_message.o: /usr/include/mit-copyright.h globalmessage.h
98get_message.o: /usr/include/errno.h globalmessage_err.h /usr/include/stdio.h
99get_message.o: /usr/include/sys/types.h /usr/include/syslog.h
100get_message_from_server.o: /usr/include/mit-copyright.h globalmessage.h
101get_message_from_server.o: /usr/include/errno.h globalmessage_err.h
102get_message_from_server.o: /usr/include/sys/types.h /usr/include/sys/socket.h
103get_message_from_server.o: /usr/include/netinet/in.h /usr/include/netdb.h
104get_message_from_server.o: /usr/include/hesiod.h /usr/include/sys/time.h
105# /usr/include/sys/time.h includes:
106#       time.h
107get_message_from_server.o: /usr/include/sys/time.h
108get_servername.o: /usr/include/mit-copyright.h globalmessage.h
109get_servername.o: /usr/include/errno.h globalmessage_err.h
110get_servername.o: /usr/include/hesiod.h
111gethost_errors.o: /usr/include/mit-copyright.h gethost_err.h
112gethost_errors.o: /usr/include/netdb.h
113hesiod_errors.o: /usr/include/mit-copyright.h hesiod_err.h
114hesiod_errors.o: /usr/include/hesiod.h
115put_fallback_file.o: /usr/include/mit-copyright.h globalmessage.h
116put_fallback_file.o: /usr/include/errno.h globalmessage_err.h
117put_fallback_file.o: /usr/include/sys/file.h /usr/include/sys/types.h
118put_fallback_file.o: /usr/include/sys/time.h /usr/include/sys/time.h
119read_to_memory.o: /usr/include/mit-copyright.h globalmessage.h
120read_to_memory.o: /usr/include/errno.h globalmessage_err.h
121view_message_by_tty.o: /usr/include/mit-copyright.h globalmessage.h
122view_message_by_tty.o: /usr/include/errno.h globalmessage_err.h
123view_message_by_zephyr.o: /usr/include/mit-copyright.h globalmessage.h
124view_message_by_zephyr.o: /usr/include/errno.h globalmessage_err.h
125view_message_by_zephyr.o: /usr/include/pwd.h /usr/include/stdio.h
126view_message_by_zephyr.o: /usr/include/strings.h /usr/include/syslog.h
127check_viewable.o: /usr/include/mit-copyright.h globalmessage.h
128check_viewable.o: /usr/include/errno.h globalmessage_err.h
129check_viewable.o: /usr/include/strings.h /usr/include/sys/types.h
130check_viewable.o: /usr/include/sys/file.h /usr/include/pwd.h
Note: See TracBrowser for help on using the repository browser.