]> andersk Git - moira.git/blame - lib/Makefile
Display mod info with quotas
[moira.git] / lib / Makefile
CommitLineData
de56407f 1# $Source$
2# $Author$
3# $Header$
4#
5# Makefile for SMS library.
6#
7LIBSRC=sms_auth.c sms_call.c sms_connect.c sms_data.c sms_init.c \
d31481e2 8 sms_query.c sms_param.c sms_access.c menu.c sms_ops.c \
9 fixname.c strs.c fixhost.c nfsparttype.c sq.c hash.c \
10 idno.c critical.c
de56407f 11
12CFILES=${LIBSRC}
13
4556f559 14LIBOBJ=sms_auth.o sms_call.o sms_connect.o sms_data.o sms_init.o \
d31481e2 15 sms_query.o sms_param.o sms_access.o menu.o sms_ops.o \
16 fixname.o strs.o fixhost.o nfsparttype.o sq.o hash.o \
17 idno.o critical.o sms_et.o ureg_err.o krb_et.o
de56407f 18
19COPTS= -O
20
21INCDIRS=-I../include
22
23CFLAGS= ${INCDIRS} ${COPTS}
24LINTFLAGS= -uhv
25
c2876490 26ALL=libsms.a llib-lsms.ln # libsms_p.a
de56407f 27
28.c.o:
c2876490 29# ${CC} -c -pg ${CFLAGS} $*.c
30# ld -x -r $*.o
31# mv a.out profiled/$*.o
de56407f 32 ${CC} -c ${CFLAGS} $*.c
33 ld -x -r $*.o
34 mv a.out $*.o
35
36all: ${ALL}
37
38libsms.a: ${LIBOBJ}
8cd236af 39 ar cruv $@ `lorder ${LIBOBJ} | tsort`
de56407f 40 ranlib $@
c2876490 41# (cd profiled; ar cruv ../libsms_p.a ${LIBOBJ}; ranlib ../libsms_p.a)
de56407f 42
43smslib.dvi: smslib.tex
44 latex smslib.tex
45
c2876490 46krb_et.c krb_et.h: krb_et.et
a7b33216 47 ../et/compile_et krb_et.et
de56407f 48
c2876490 49sms_et.c sms_et.h: sms_et.et
a7b33216 50 ../et/compile_et sms_et.et
de56407f 51
c2876490 52ureg_err.c ureg_err.h: ureg_err.et
a7b33216 53 ../et/compile_et ureg_err.et
fd99bc0b 54
de56407f 55../include/sms_et.h: sms_et.h
56
57clean:
58 rm -f ${ALL}
d31481e2 59 rm -f *.o *~ sms_et.h krb_et.h ureg_err.h profiled/*.o \#*
60 rm -f krb_et.c sms_et.c ureg_err.c
de56407f 61 rm -f *.PS *.aux *.dvi *.log
62 rm -f *.bak
63
64
65install:
66 install -m 644 libsms.a ${DESTDIR}/usr/athena/lib/libsms.a
67 ranlib ${DESTDIR}/usr/athena/lib/libsms.a
c2876490 68# install -m 644 libsms_p.a ${DESTDIR}/usr/athena/lib/libsms_p.a
69# ranlib ${DESTDIR}/usr/athena/lib/libsms_p.a
de56407f 70 -mkdir ${DESTDIR}/usr/athena/lib/lint
71 install -m 644 llib-lsms.ln ${DESTDIR}/usr/athena/lib/lint/llib-lsms.ln
72
73TAGS: $(CFILES)
74 -etags $(CFILES)
75
76lint: ${CFILES} llib-lsms.ln
77 lint ${LINTFLAGS} ${INCDIRS} sms_main.c llib-lsms.ln
78
79llib-lsms.ln: ${LIBSRC}
80 lint -Csms $(LINTFLAGS) $(INCDIRS) ${LIBSRC}
81
d31481e2 82depend: $(CFILES) sms_et.h ureg_err.h krb_et.h
de56407f 83 $(CC) -M $(CFLAGS) $(CFILES) | \
84 sed -e 's; ./; ;' \
85 -e ':loop' \
86 -e 's/\.\.\/[^ /]*\/\.\./../' \
87 -e 't loop' | \
88 awk ' { if ($$1 != prev) { print rec; rec = $$0; prev = $$1; } \
89 else { if (length(rec $$2) > 78) { print rec; rec = $$0; } \
90 else rec = rec " " $$2 } } \
91 END { print rec } ' > makedep
92 echo '/^# DO NOT DELETE THIS LINE/+1,$$d' >eddep
93 echo '$$r makedep' >>eddep
94 echo 'w' >>eddep
95 cp Makefile Makefile.bak
96 ed - Makefile < eddep
97 rm eddep makedep
98#
99# the last constant line in the makefile should be...
100# DO NOT DELETE THIS LINE
101
c2876490 102sms_auth.o: sms_auth.c ../include/mit-copyright.h sms_private.h
103sms_auth.o: ../include/sms_proto.h /usr/include/stdio.h ../include/gdb.h
104sms_auth.o: /usr/include/sys/types.h /usr/include/sys/time.h
105sms_auth.o: /usr/include/time.h ../include/sms.h ../include/sms_et.h
106sms_auth.o: /usr/include/krb.h ../include/mit-copyright.h /usr/include/des.h
107sms_auth.o: ../include/mit-copyright.h /usr/include/des_conf.h
a52681c6 108sms_auth.o: ../include/mit-copyright.h krb_et.h
c2876490 109sms_call.o: sms_call.c ../include/mit-copyright.h sms_private.h
110sms_call.o: ../include/sms_proto.h /usr/include/stdio.h ../include/gdb.h
111sms_call.o: /usr/include/sys/types.h /usr/include/sys/time.h
112sms_call.o: /usr/include/time.h ../include/sms.h ../include/sms_et.h
4556f559 113sms_connect.o: sms_connect.c ../include/mit-copyright.h sms_private.h
c2876490 114sms_connect.o: ../include/sms_proto.h /usr/include/stdio.h ../include/gdb.h
4556f559 115sms_connect.o: /usr/include/sys/types.h /usr/include/sys/time.h
116sms_connect.o: /usr/include/time.h ../include/sms.h ../include/sms_et.h
c2876490 117sms_data.o: sms_data.c ../include/mit-copyright.h sms_private.h
118sms_data.o: ../include/sms_proto.h /usr/include/stdio.h ../include/gdb.h
119sms_data.o: /usr/include/sys/types.h /usr/include/sys/time.h
120sms_data.o: /usr/include/time.h ../include/sms.h ../include/sms_et.h
121sms_init.o: sms_init.c ../include/mit-copyright.h sms_private.h
122sms_init.o: ../include/sms_proto.h /usr/include/stdio.h ../include/gdb.h
123sms_init.o: /usr/include/sys/types.h /usr/include/sys/time.h
124sms_init.o: /usr/include/time.h ../include/sms.h ../include/sms_et.h
125sms_query.o: sms_query.c ../include/mit-copyright.h sms_private.h
126sms_query.o: ../include/sms_proto.h /usr/include/stdio.h ../include/gdb.h
127sms_query.o: /usr/include/sys/types.h /usr/include/sys/time.h
128sms_query.o: /usr/include/time.h ../include/sms.h ../include/sms_et.h
129sms_param.o: sms_param.c ../include/mit-copyright.h /usr/include/sys/types.h
130sms_param.o: /usr/include/netinet/in.h sms_private.h ../include/sms_proto.h
4556f559 131sms_param.o: /usr/include/stdio.h ../include/gdb.h /usr/include/sys/types.h
132sms_param.o: /usr/include/sys/time.h /usr/include/time.h ../include/sms.h
c2876490 133sms_param.o: ../include/sms_et.h
134sms_access.o: sms_access.c ../include/mit-copyright.h sms_private.h
135sms_access.o: ../include/sms_proto.h /usr/include/stdio.h ../include/gdb.h
136sms_access.o: /usr/include/sys/types.h /usr/include/sys/time.h
137sms_access.o: /usr/include/time.h ../include/sms.h ../include/sms_et.h
4556f559 138menu.o: menu.c ../include/mit-copyright.h /usr/include/sys/types.h
139menu.o: /usr/include/stdio.h /usr/include/signal.h /usr/include/curses.h
140menu.o: /usr/include/stdio.h /usr/include/sgtty.h /usr/include/sys/ioctl.h
de56407f 141menu.o: /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h
8cd236af 142menu.o: /usr/include/ctype.h /usr/include/strings.h /usr/include/varargs.h
c2876490 143menu.o: ../include/com_err.h ../include/menu.h
c2876490 144sms_ops.o: sms_ops.c ../include/mit-copyright.h sms_private.h
145sms_ops.o: ../include/sms_proto.h /usr/include/stdio.h ../include/gdb.h
146sms_ops.o: /usr/include/sys/types.h /usr/include/sys/time.h /usr/include/time.h
147sms_ops.o: ../include/sms.h ../include/sms_et.h
4556f559 148fixname.o: fixname.c ../include/mit-copyright.h /usr/include/strings.h
149fixname.o: /usr/include/ctype.h
150strs.o: strs.c ../include/mit-copyright.h /usr/include/sys/types.h
151strs.o: /usr/include/strings.h /usr/include/ctype.h
152fixhost.o: fixhost.c ../include/mit-copyright.h /usr/include/sys/types.h
153fixhost.o: /usr/include/sys/socket.h /usr/include/netinet/in.h
154fixhost.o: /usr/include/arpa/nameser.h /usr/include/arpa/resolv.h
155fixhost.o: /usr/include/netdb.h /usr/include/stdio.h /usr/include/strings.h
156fixhost.o: /usr/include/ctype.h
157nfsparttype.o: nfsparttype.c ../include/mit-copyright.h ../include/sms.h
158nfsparttype.o: ../include/sms_et.h /usr/include/stdio.h /usr/include/strings.h
159nfsparttype.o: /usr/include/ctype.h
160sq.o: sq.c ../include/mit-copyright.h ../include/sms.h ../include/sms_et.h
161hash.o: hash.c ../include/mit-copyright.h /usr/include/ctype.h ../include/sms.h
162hash.o: ../include/sms_et.h
163idno.o: idno.c ../include/mit-copyright.h /usr/include/strings.h
164idno.o: /usr/include/ctype.h
165critical.o: critical.c ../include/mit-copyright.h /usr/include/stdio.h
166critical.o: /usr/include/sys/file.h /usr/include/zephyr/zephyr.h
167critical.o: /usr/include/zephyr/mit-copyright.h
168critical.o: /usr/include/zephyr/zephyr_err.h /usr/include/zephyr/zephyr_conf.h
169critical.o: /usr/include/zephyr/mit-copyright.h /usr/include/errno.h
170critical.o: /usr/include/sys/types.h /usr/include/netinet/in.h
171critical.o: /usr/include/sys/time.h /usr/include/time.h /usr/include/stdio.h
c2876490 172critical.o: /usr/include/krb.h ../include/mit-copyright.h /usr/include/des.h
173critical.o: ../include/mit-copyright.h /usr/include/des_conf.h
174critical.o: ../include/mit-copyright.h
This page took 0.496992 seconds and 5 git commands to generate.