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