]>
Commit | Line | Data |
---|---|---|
1 | # $Source$ | |
2 | # $Author$ | |
3 | # $Header$ | |
4 | # | |
5 | # Makefile for Moira library. | |
6 | # | |
7 | LIBSRC=mr_auth.c mr_call.c mr_connect.c mr_data.c mr_init.c \ | |
8 | mr_query.c mr_param.c mr_access.c mr_ops.c \ | |
9 | fixname.c strs.c fixhost.c nfsparttype.c sq.c hash.c \ | |
10 | idno.c critical.c | |
11 | ||
12 | CFILES=${LIBSRC} | |
13 | ||
14 | LIBOBJ=mr_auth.o mr_call.o mr_connect.o mr_data.o mr_init.o \ | |
15 | mr_query.o mr_param.o mr_access.o mr_ops.o \ | |
16 | fixname.o strs.o fixhost.o nfsparttype.o sq.o hash.o \ | |
17 | idno.o critical.o mr_et.o ureg_err.o krb_et.o | |
18 | ||
19 | COPTS= -O | |
20 | ||
21 | INCDIRS=-I../include | |
22 | ||
23 | CFLAGS= ${INCDIRS} ${COPTS} | |
24 | LINTFLAGS= -uhv | |
25 | ||
26 | ALL=libmoira.a llib-lmoira.ln # libmoira_p.a | |
27 | ||
28 | .c.o: | |
29 | # ${CC} -c -pg ${CFLAGS} $*.c | |
30 | # ld -x -r $*.o | |
31 | # mv a.out profiled/$*.o | |
32 | ${CC} -c ${CFLAGS} $*.c | |
33 | ld -x -r $*.o | |
34 | mv a.out $*.o | |
35 | ||
36 | all: ${ALL} | |
37 | ||
38 | libmoira.a: ${LIBOBJ} | |
39 | ar cruv $@ `lorder ${LIBOBJ} | tsort` | |
40 | ranlib $@ | |
41 | ||
42 | libmoira_p.a: ${LIBOBJ} | |
43 | (cd profiled; ar cruv ../libmoira_p.a ${LIBOBJ}; ranlib ../libmoira_p.a) | |
44 | ||
45 | mrlib.dvi: mrlib.tex | |
46 | latex mrlib.tex | |
47 | ||
48 | krb_et.c krb_et.h: krb_et.et ../et/compile_et | |
49 | ../et/compile_et krb_et.et | |
50 | ||
51 | mr_et.c mr_et.h: mr_et.et ../et/compile_et | |
52 | ../et/compile_et mr_et.et | |
53 | ||
54 | ureg_err.c ureg_err.h: ureg_err.et ../et/compile_et | |
55 | ../et/compile_et ureg_err.et | |
56 | ||
57 | ../et/compile_et: | |
58 | cd ../et; make compile_et | |
59 | ||
60 | ../include/mr_et.h: mr_et.h | |
61 | ||
62 | clean: | |
63 | rm -f ${ALL} | |
64 | rm -f *.o *~ mr_et.h krb_et.h ureg_err.h profiled/*.o \#* | |
65 | rm -f krb_et.c mr_et.c ureg_err.c | |
66 | rm -f *.PS *.aux *.dvi *.log | |
67 | rm -f *.bak | |
68 | ||
69 | ||
70 | install: | |
71 | install -c -m 644 libmoira.a ${DESTDIR}/usr/athena/lib/libmoira.a | |
72 | ranlib ${DESTDIR}/usr/athena/lib/libmoira.a | |
73 | # install -c -m 644 libmoira_p.a ${DESTDIR}/usr/athena/lib/libmoira_p.a | |
74 | # ranlib ${DESTDIR}/usr/athena/lib/libmoira_p.a | |
75 | install -c -m 644 llib-lmoira.ln ${DESTDIR}/usr/lib/lint/llib-lmoira.ln | |
76 | ||
77 | TAGS: $(CFILES) | |
78 | -etags $(CFILES) | |
79 | ||
80 | lint: ${CFILES} llib-lmoira.ln | |
81 | lint ${LINTFLAGS} ${INCDIRS} mr_main.c llib-lmoira.ln | |
82 | ||
83 | llib-lmoira.ln: ${LIBSRC} | |
84 | lint -Cmoira $(LINTFLAGS) $(INCDIRS) ${LIBSRC} | |
85 | ||
86 | depend: $(CFILES) mr_et.h ureg_err.h krb_et.h | |
87 | mkdep ${CFLAGS} ${CFILES} | |
88 | ||
89 | # DO NOT DELETE THIS LINE -- mkdep uses it. | |
90 | ||
91 | mr_auth.o: mr_auth.c ../include/mit-copyright.h mr_private.h | |
92 | mr_auth.o: ../include/mr_proto.h /usr/include/stdio.h ../include/gdb.h | |
93 | mr_auth.o: /usr/include/sys/types.h /usr/include/sys/time.h | |
94 | mr_auth.o: /usr/include/sys/time.h ../include/moira.h mr_et.h | |
95 | mr_auth.o: /usr/include/ctype.h ../include/krb.h ../include/des.h krb_et.h | |
96 | mr_call.o: mr_call.c ../include/mit-copyright.h mr_private.h | |
97 | mr_call.o: ../include/mr_proto.h /usr/include/stdio.h ../include/gdb.h | |
98 | mr_call.o: /usr/include/sys/types.h /usr/include/sys/time.h | |
99 | mr_call.o: /usr/include/sys/time.h ../include/moira.h mr_et.h | |
100 | mr_connect.o: mr_connect.c ../include/mit-copyright.h mr_private.h | |
101 | mr_connect.o: ../include/mr_proto.h /usr/include/stdio.h ../include/gdb.h | |
102 | mr_connect.o: /usr/include/sys/types.h /usr/include/sys/time.h | |
103 | mr_connect.o: /usr/include/sys/time.h ../include/moira.h mr_et.h | |
104 | mr_connect.o: ../include/moira_site.h /usr/include/strings.h | |
105 | mr_data.o: mr_data.c ../include/mit-copyright.h mr_private.h | |
106 | mr_data.o: ../include/mr_proto.h /usr/include/stdio.h ../include/gdb.h | |
107 | mr_data.o: /usr/include/sys/types.h /usr/include/sys/time.h | |
108 | mr_data.o: /usr/include/sys/time.h ../include/moira.h mr_et.h | |
109 | mr_init.o: mr_init.c ../include/mit-copyright.h mr_private.h | |
110 | mr_init.o: ../include/mr_proto.h /usr/include/stdio.h ../include/gdb.h | |
111 | mr_init.o: /usr/include/sys/types.h /usr/include/sys/time.h | |
112 | mr_init.o: /usr/include/sys/time.h ../include/moira.h mr_et.h | |
113 | mr_query.o: mr_query.c ../include/mit-copyright.h mr_private.h | |
114 | mr_query.o: ../include/mr_proto.h /usr/include/stdio.h ../include/gdb.h | |
115 | mr_query.o: /usr/include/sys/types.h /usr/include/sys/time.h | |
116 | mr_query.o: /usr/include/sys/time.h ../include/moira.h mr_et.h | |
117 | mr_param.o: mr_param.c ../include/mit-copyright.h /usr/include/sys/types.h | |
118 | mr_param.o: /usr/include/netinet/in.h mr_private.h ../include/mr_proto.h | |
119 | mr_param.o: /usr/include/stdio.h ../include/gdb.h /usr/include/sys/time.h | |
120 | mr_param.o: /usr/include/sys/time.h ../include/moira.h mr_et.h | |
121 | mr_access.o: mr_access.c ../include/mit-copyright.h mr_private.h | |
122 | mr_access.o: ../include/mr_proto.h /usr/include/stdio.h ../include/gdb.h | |
123 | mr_access.o: /usr/include/sys/types.h /usr/include/sys/time.h | |
124 | mr_access.o: /usr/include/sys/time.h ../include/moira.h mr_et.h | |
125 | mr_ops.o: mr_ops.c ../include/mit-copyright.h mr_private.h | |
126 | mr_ops.o: ../include/mr_proto.h /usr/include/stdio.h ../include/gdb.h | |
127 | mr_ops.o: /usr/include/sys/types.h /usr/include/sys/time.h | |
128 | mr_ops.o: /usr/include/sys/time.h ../include/moira.h mr_et.h | |
129 | fixname.o: fixname.c ../include/mit-copyright.h /usr/include/strings.h | |
130 | fixname.o: /usr/include/ctype.h | |
131 | strs.o: strs.c ../include/mit-copyright.h /usr/include/sys/types.h | |
132 | strs.o: /usr/include/strings.h /usr/include/ctype.h | |
133 | fixhost.o: fixhost.c ../include/mit-copyright.h /usr/include/sys/types.h | |
134 | fixhost.o: /usr/include/sys/socket.h /usr/include/netinet/in.h | |
135 | fixhost.o: /usr/include/arpa/nameser.h /usr/include/arpa/resolv.h | |
136 | fixhost.o: /usr/include/netdb.h /usr/include/stdio.h /usr/include/strings.h | |
137 | fixhost.o: /usr/include/ctype.h | |
138 | nfsparttype.o: nfsparttype.c ../include/mit-copyright.h ../include/moira.h | |
139 | nfsparttype.o: mr_et.h /usr/include/stdio.h /usr/include/strings.h | |
140 | nfsparttype.o: /usr/include/ctype.h | |
141 | sq.o: sq.c ../include/mit-copyright.h ../include/moira.h mr_et.h | |
142 | hash.o: hash.c ../include/mit-copyright.h /usr/include/ctype.h | |
143 | hash.o: ../include/moira.h mr_et.h | |
144 | idno.o: idno.c ../include/mit-copyright.h /usr/include/strings.h | |
145 | idno.o: /usr/include/ctype.h | |
146 | critical.o: critical.c ../include/mit-copyright.h /usr/include/stdio.h | |
147 | critical.o: /usr/include/sys/file.h ../include/moira_site.h | |
148 | critical.o: /usr/include/zephyr/zephyr.h /usr/include/zephyr/mit-copyright.h | |
149 | critical.o: /usr/include/zephyr/zephyr_err.h | |
150 | critical.o: /usr/include/zephyr/zephyr_conf.h /usr/include/errno.h | |
151 | critical.o: /usr/include/sys/types.h /usr/include/netinet/in.h | |
152 | critical.o: /usr/include/sys/time.h /usr/include/sys/time.h ../include/krb.h | |
153 | critical.o: ../include/des.h |