]> andersk Git - moira.git/blame - lib/Makefile
make the install's -c
[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 \
4047a29b 8 sms_query.c sms_param.c sms_access.c sms_ops.c \
d31481e2 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 \
4047a29b 15 sms_query.o sms_param.o sms_access.o sms_ops.o \
d31481e2 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:
a7ef7615 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 $@
a7ef7615 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:
a7ef7615 66 install -c -m 644 libsms.a ${DESTDIR}/usr/athena/lib/libsms.a
de56407f 67 ranlib ${DESTDIR}/usr/athena/lib/libsms.a
a7ef7615 68 install -c -m 644 libsms_p.a ${DESTDIR}/usr/athena/lib/libsms_p.a
69 ranlib ${DESTDIR}/usr/athena/lib/libsms_p.a
70 install -c -m 644 llib-lsms.ln ${DESTDIR}/usr/lib/lint/llib-lsms.ln
de56407f 71
72TAGS: $(CFILES)
73 -etags $(CFILES)
74
75lint: ${CFILES} llib-lsms.ln
76 lint ${LINTFLAGS} ${INCDIRS} sms_main.c llib-lsms.ln
77
78llib-lsms.ln: ${LIBSRC}
79 lint -Csms $(LINTFLAGS) $(INCDIRS) ${LIBSRC}
80
d31481e2 81depend: $(CFILES) sms_et.h ureg_err.h krb_et.h
a26c7955 82 mkdep ${CFLAGS} ${CFILES}
83
84# DO NOT DELETE THIS LINE -- mkdep uses it.
de56407f 85
c2876490 86sms_auth.o: sms_auth.c ../include/mit-copyright.h sms_private.h
87sms_auth.o: ../include/sms_proto.h /usr/include/stdio.h ../include/gdb.h
88sms_auth.o: /usr/include/sys/types.h /usr/include/sys/time.h
a26c7955 89sms_auth.o: /usr/include/sys/time.h ../include/sms.h sms_et.h
90sms_auth.o: ../include/krb.h ../include/des.h krb_et.h
c2876490 91sms_call.o: sms_call.c ../include/mit-copyright.h sms_private.h
92sms_call.o: ../include/sms_proto.h /usr/include/stdio.h ../include/gdb.h
93sms_call.o: /usr/include/sys/types.h /usr/include/sys/time.h
a26c7955 94sms_call.o: /usr/include/sys/time.h ../include/sms.h sms_et.h
4556f559 95sms_connect.o: sms_connect.c ../include/mit-copyright.h sms_private.h
c2876490 96sms_connect.o: ../include/sms_proto.h /usr/include/stdio.h ../include/gdb.h
4556f559 97sms_connect.o: /usr/include/sys/types.h /usr/include/sys/time.h
a26c7955 98sms_connect.o: /usr/include/sys/time.h ../include/sms.h sms_et.h
99sms_connect.o: ../include/sms_app.h /usr/include/strings.h
c2876490 100sms_data.o: sms_data.c ../include/mit-copyright.h sms_private.h
101sms_data.o: ../include/sms_proto.h /usr/include/stdio.h ../include/gdb.h
102sms_data.o: /usr/include/sys/types.h /usr/include/sys/time.h
a26c7955 103sms_data.o: /usr/include/sys/time.h ../include/sms.h sms_et.h
c2876490 104sms_init.o: sms_init.c ../include/mit-copyright.h sms_private.h
105sms_init.o: ../include/sms_proto.h /usr/include/stdio.h ../include/gdb.h
106sms_init.o: /usr/include/sys/types.h /usr/include/sys/time.h
a26c7955 107sms_init.o: /usr/include/sys/time.h ../include/sms.h sms_et.h
c2876490 108sms_query.o: sms_query.c ../include/mit-copyright.h sms_private.h
109sms_query.o: ../include/sms_proto.h /usr/include/stdio.h ../include/gdb.h
110sms_query.o: /usr/include/sys/types.h /usr/include/sys/time.h
a26c7955 111sms_query.o: /usr/include/sys/time.h ../include/sms.h sms_et.h
c2876490 112sms_param.o: sms_param.c ../include/mit-copyright.h /usr/include/sys/types.h
113sms_param.o: /usr/include/netinet/in.h sms_private.h ../include/sms_proto.h
a26c7955 114sms_param.o: /usr/include/stdio.h ../include/gdb.h /usr/include/sys/time.h
115sms_param.o: /usr/include/sys/time.h ../include/sms.h sms_et.h
c2876490 116sms_access.o: sms_access.c ../include/mit-copyright.h sms_private.h
117sms_access.o: ../include/sms_proto.h /usr/include/stdio.h ../include/gdb.h
118sms_access.o: /usr/include/sys/types.h /usr/include/sys/time.h
a26c7955 119sms_access.o: /usr/include/sys/time.h ../include/sms.h sms_et.h
c2876490 120sms_ops.o: sms_ops.c ../include/mit-copyright.h sms_private.h
121sms_ops.o: ../include/sms_proto.h /usr/include/stdio.h ../include/gdb.h
a26c7955 122sms_ops.o: /usr/include/sys/types.h /usr/include/sys/time.h
123sms_ops.o: /usr/include/sys/time.h ../include/sms.h sms_et.h
4556f559 124fixname.o: fixname.c ../include/mit-copyright.h /usr/include/strings.h
125fixname.o: /usr/include/ctype.h
126strs.o: strs.c ../include/mit-copyright.h /usr/include/sys/types.h
127strs.o: /usr/include/strings.h /usr/include/ctype.h
128fixhost.o: fixhost.c ../include/mit-copyright.h /usr/include/sys/types.h
129fixhost.o: /usr/include/sys/socket.h /usr/include/netinet/in.h
130fixhost.o: /usr/include/arpa/nameser.h /usr/include/arpa/resolv.h
131fixhost.o: /usr/include/netdb.h /usr/include/stdio.h /usr/include/strings.h
132fixhost.o: /usr/include/ctype.h
133nfsparttype.o: nfsparttype.c ../include/mit-copyright.h ../include/sms.h
a26c7955 134nfsparttype.o: sms_et.h /usr/include/stdio.h /usr/include/strings.h
4556f559 135nfsparttype.o: /usr/include/ctype.h
a26c7955 136sq.o: sq.c ../include/mit-copyright.h ../include/sms.h sms_et.h
137hash.o: hash.c ../include/mit-copyright.h /usr/include/ctype.h
138hash.o: ../include/sms.h sms_et.h
4556f559 139idno.o: idno.c ../include/mit-copyright.h /usr/include/strings.h
140idno.o: /usr/include/ctype.h
141critical.o: critical.c ../include/mit-copyright.h /usr/include/stdio.h
142critical.o: /usr/include/sys/file.h /usr/include/zephyr/zephyr.h
143critical.o: /usr/include/zephyr/mit-copyright.h
a26c7955 144critical.o: /usr/include/zephyr/zephyr_err.h
145critical.o: /usr/include/zephyr/zephyr_conf.h /usr/include/errno.h
4556f559 146critical.o: /usr/include/sys/types.h /usr/include/netinet/in.h
a26c7955 147critical.o: /usr/include/sys/time.h /usr/include/sys/time.h ../include/krb.h
148critical.o: ../include/des.h ../include/sms_app.h
This page took 0.077342 seconds and 5 git commands to generate.