# $Author$
# $Header$
#
-# Makefile for SMS library.
+# Makefile for Moira library.
#
-LIBSRC=sms_auth.c sms_call.c sms_connect.c sms_data.c sms_init.c \
- sms_query.c sms_param.c sms_access.c sms_ops.c \
+LIBSRC=mr_auth.c mr_call.c mr_connect.c mr_data.c mr_init.c \
+ mr_query.c mr_param.c mr_access.c mr_ops.c \
fixname.c strs.c fixhost.c nfsparttype.c sq.c hash.c \
idno.c critical.c
CFILES=${LIBSRC}
-LIBOBJ=sms_auth.o sms_call.o sms_connect.o sms_data.o sms_init.o \
- sms_query.o sms_param.o sms_access.o sms_ops.o \
+LIBOBJ=mr_auth.o mr_call.o mr_connect.o mr_data.o mr_init.o \
+ mr_query.o mr_param.o mr_access.o mr_ops.o \
fixname.o strs.o fixhost.o nfsparttype.o sq.o hash.o \
- idno.o critical.o sms_et.o ureg_err.o krb_et.o
+ idno.o critical.o mr_et.o ureg_err.o krb_et.o
COPTS= -O
CFLAGS= ${INCDIRS} ${COPTS}
LINTFLAGS= -uhv
-ALL=libsms.a llib-lsms.ln # libsms_p.a
+ALL=libmoira.a llib-lmoira.ln # libmoira_p.a
.c.o:
-# ${CC} -c -pg ${CFLAGS} $*.c
-# ld -x -r $*.o
-# mv a.out profiled/$*.o
+ ${CC} -c -pg ${CFLAGS} $*.c
+ ld -x -r $*.o
+ mv a.out profiled/$*.o
${CC} -c ${CFLAGS} $*.c
ld -x -r $*.o
mv a.out $*.o
all: ${ALL}
-libsms.a: ${LIBOBJ}
+libmoira.a: ${LIBOBJ}
ar cruv $@ `lorder ${LIBOBJ} | tsort`
ranlib $@
-# (cd profiled; ar cruv ../libsms_p.a ${LIBOBJ}; ranlib ../libsms_p.a)
+ (cd profiled; ar cruv ../libmoira_p.a ${LIBOBJ}; ranlib ../libmoira_p.a)
-smslib.dvi: smslib.tex
- latex smslib.tex
+mrlib.dvi: mrlib.tex
+ latex mrlib.tex
-krb_et.c krb_et.h: krb_et.et
+krb_et.c krb_et.h: krb_et.et ../et/compile_et
../et/compile_et krb_et.et
-sms_et.c sms_et.h: sms_et.et
- ../et/compile_et sms_et.et
+mr_et.c mr_et.h: mr_et.et ../et/compile_et
+ ../et/compile_et mr_et.et
-ureg_err.c ureg_err.h: ureg_err.et
+ureg_err.c ureg_err.h: ureg_err.et ../et/compile_et
../et/compile_et ureg_err.et
-../include/sms_et.h: sms_et.h
+../et/compile_et:
+ cd ../et; make compile_et
+
+../include/mr_et.h: mr_et.h
clean:
rm -f ${ALL}
- rm -f *.o *~ sms_et.h krb_et.h ureg_err.h profiled/*.o \#*
- rm -f krb_et.c sms_et.c ureg_err.c
+ rm -f *.o *~ mr_et.h krb_et.h ureg_err.h profiled/*.o \#*
+ rm -f krb_et.c mr_et.c ureg_err.c
rm -f *.PS *.aux *.dvi *.log
rm -f *.bak
install:
- install -m 644 libsms.a ${DESTDIR}/usr/athena/lib/libsms.a
- ranlib ${DESTDIR}/usr/athena/lib/libsms.a
-# install -m 644 libsms_p.a ${DESTDIR}/usr/athena/lib/libsms_p.a
-# ranlib ${DESTDIR}/usr/athena/lib/libsms_p.a
- -mkdir ${DESTDIR}/usr/athena/lib/lint
- install -m 644 llib-lsms.ln ${DESTDIR}/usr/athena/lib/lint/llib-lsms.ln
+ install -c -m 644 libmoira.a ${DESTDIR}/usr/athena/lib/libmoira.a
+ ranlib ${DESTDIR}/usr/athena/lib/libmoira.a
+ install -c -m 644 libmoira_p.a ${DESTDIR}/usr/athena/lib/libmoira_p.a
+ ranlib ${DESTDIR}/usr/athena/lib/libmoira_p.a
+ install -c -m 644 llib-lmoira.ln ${DESTDIR}/usr/lib/lint/llib-lmoira.ln
TAGS: $(CFILES)
-etags $(CFILES)
-lint: ${CFILES} llib-lsms.ln
- lint ${LINTFLAGS} ${INCDIRS} sms_main.c llib-lsms.ln
-
-llib-lsms.ln: ${LIBSRC}
- lint -Csms $(LINTFLAGS) $(INCDIRS) ${LIBSRC}
-
-depend: $(CFILES) sms_et.h ureg_err.h krb_et.h
- $(CC) -M $(CFLAGS) $(CFILES) | \
- sed -e 's; ./; ;' \
- -e ':loop' \
- -e 's/\.\.\/[^ /]*\/\.\./../' \
- -e 't loop' | \
- awk ' { if ($$1 != prev) { print rec; rec = $$0; prev = $$1; } \
- else { if (length(rec $$2) > 78) { print rec; rec = $$0; } \
- else rec = rec " " $$2 } } \
- END { print rec } ' > makedep
- echo '/^# DO NOT DELETE THIS LINE/+1,$$d' >eddep
- echo '$$r makedep' >>eddep
- echo 'w' >>eddep
- cp Makefile Makefile.bak
- ed - Makefile < eddep
- rm eddep makedep
-#
-# the last constant line in the makefile should be...
-# DO NOT DELETE THIS LINE
-
-sms_auth.o: sms_auth.c ../include/mit-copyright.h sms_private.h
-sms_auth.o: ../include/sms_proto.h /usr/include/stdio.h ../include/gdb.h
-sms_auth.o: /usr/include/sys/types.h /usr/include/sys/time.h
-sms_auth.o: /usr/include/time.h ../include/sms.h ../include/sms_et.h
-sms_auth.o: /usr/include/krb.h ../include/mit-copyright.h /usr/include/des.h
-sms_auth.o: ../include/mit-copyright.h /usr/include/des_conf.h
-sms_auth.o: ../include/mit-copyright.h krb_et.h
-sms_call.o: sms_call.c ../include/mit-copyright.h sms_private.h
-sms_call.o: ../include/sms_proto.h /usr/include/stdio.h ../include/gdb.h
-sms_call.o: /usr/include/sys/types.h /usr/include/sys/time.h
-sms_call.o: /usr/include/time.h ../include/sms.h ../include/sms_et.h
-sms_connect.o: sms_connect.c ../include/mit-copyright.h sms_private.h
-sms_connect.o: ../include/sms_proto.h /usr/include/stdio.h ../include/gdb.h
-sms_connect.o: /usr/include/sys/types.h /usr/include/sys/time.h
-sms_connect.o: /usr/include/time.h ../include/sms.h ../include/sms_et.h
-sms_data.o: sms_data.c ../include/mit-copyright.h sms_private.h
-sms_data.o: ../include/sms_proto.h /usr/include/stdio.h ../include/gdb.h
-sms_data.o: /usr/include/sys/types.h /usr/include/sys/time.h
-sms_data.o: /usr/include/time.h ../include/sms.h ../include/sms_et.h
-sms_init.o: sms_init.c ../include/mit-copyright.h sms_private.h
-sms_init.o: ../include/sms_proto.h /usr/include/stdio.h ../include/gdb.h
-sms_init.o: /usr/include/sys/types.h /usr/include/sys/time.h
-sms_init.o: /usr/include/time.h ../include/sms.h ../include/sms_et.h
-sms_query.o: sms_query.c ../include/mit-copyright.h sms_private.h
-sms_query.o: ../include/sms_proto.h /usr/include/stdio.h ../include/gdb.h
-sms_query.o: /usr/include/sys/types.h /usr/include/sys/time.h
-sms_query.o: /usr/include/time.h ../include/sms.h ../include/sms_et.h
-sms_param.o: sms_param.c ../include/mit-copyright.h /usr/include/sys/types.h
-sms_param.o: /usr/include/netinet/in.h sms_private.h ../include/sms_proto.h
-sms_param.o: /usr/include/stdio.h ../include/gdb.h /usr/include/sys/types.h
-sms_param.o: /usr/include/sys/time.h /usr/include/time.h ../include/sms.h
-sms_param.o: ../include/sms_et.h
-sms_access.o: sms_access.c ../include/mit-copyright.h sms_private.h
-sms_access.o: ../include/sms_proto.h /usr/include/stdio.h ../include/gdb.h
-sms_access.o: /usr/include/sys/types.h /usr/include/sys/time.h
-sms_access.o: /usr/include/time.h ../include/sms.h ../include/sms_et.h
-sms_ops.o: sms_ops.c ../include/mit-copyright.h sms_private.h
-sms_ops.o: ../include/sms_proto.h /usr/include/stdio.h ../include/gdb.h
-sms_ops.o: /usr/include/sys/types.h /usr/include/sys/time.h /usr/include/time.h
-sms_ops.o: ../include/sms.h ../include/sms_et.h
+lint: ${CFILES} llib-lmoira.ln
+ lint ${LINTFLAGS} ${INCDIRS} mr_main.c llib-lmoira.ln
+
+llib-lmoira.ln: ${LIBSRC}
+ lint -Cmr $(LINTFLAGS) $(INCDIRS) ${LIBSRC}
+
+depend: $(CFILES) mr_et.h ureg_err.h krb_et.h
+ mkdep ${CFLAGS} ${CFILES}
+
+# DO NOT DELETE THIS LINE -- mkdep uses it.
+
+mr_auth.o: mr_auth.c ../include/mit-copyright.h mr_private.h
+mr_auth.o: ../include/mr_proto.h /usr/include/stdio.h ../include/gdb.h
+mr_auth.o: /usr/include/sys/types.h /usr/include/sys/time.h
+mr_auth.o: /usr/include/sys/time.h ../include/moira.h mr_et.h
+mr_auth.o: /usr/include/ctype.h ../include/krb.h ../include/des.h krb_et.h
+mr_call.o: mr_call.c ../include/mit-copyright.h mr_private.h
+mr_call.o: ../include/mr_proto.h /usr/include/stdio.h ../include/gdb.h
+mr_call.o: /usr/include/sys/types.h /usr/include/sys/time.h
+mr_call.o: /usr/include/sys/time.h ../include/moira.h mr_et.h
+mr_connect.o: mr_connect.c ../include/mit-copyright.h mr_private.h
+mr_connect.o: ../include/mr_proto.h /usr/include/stdio.h ../include/gdb.h
+mr_connect.o: /usr/include/sys/types.h /usr/include/sys/time.h
+mr_connect.o: /usr/include/sys/time.h ../include/moira.h mr_et.h
+mr_connect.o: ../include/moira_site.h /usr/include/strings.h
+mr_data.o: mr_data.c ../include/mit-copyright.h mr_private.h
+mr_data.o: ../include/mr_proto.h /usr/include/stdio.h ../include/gdb.h
+mr_data.o: /usr/include/sys/types.h /usr/include/sys/time.h
+mr_data.o: /usr/include/sys/time.h ../include/moira.h mr_et.h
+mr_init.o: mr_init.c ../include/mit-copyright.h mr_private.h
+mr_init.o: ../include/mr_proto.h /usr/include/stdio.h ../include/gdb.h
+mr_init.o: /usr/include/sys/types.h /usr/include/sys/time.h
+mr_init.o: /usr/include/sys/time.h ../include/moira.h mr_et.h
+mr_query.o: mr_query.c ../include/mit-copyright.h mr_private.h
+mr_query.o: ../include/mr_proto.h /usr/include/stdio.h ../include/gdb.h
+mr_query.o: /usr/include/sys/types.h /usr/include/sys/time.h
+mr_query.o: /usr/include/sys/time.h ../include/moira.h mr_et.h
+mr_param.o: mr_param.c ../include/mit-copyright.h /usr/include/sys/types.h
+mr_param.o: /usr/include/netinet/in.h mr_private.h ../include/mr_proto.h
+mr_param.o: /usr/include/stdio.h ../include/gdb.h /usr/include/sys/time.h
+mr_param.o: /usr/include/sys/time.h ../include/moira.h mr_et.h
+mr_access.o: mr_access.c ../include/mit-copyright.h mr_private.h
+mr_access.o: ../include/mr_proto.h /usr/include/stdio.h ../include/gdb.h
+mr_access.o: /usr/include/sys/types.h /usr/include/sys/time.h
+mr_access.o: /usr/include/sys/time.h ../include/moira.h mr_et.h
+mr_ops.o: mr_ops.c ../include/mit-copyright.h mr_private.h
+mr_ops.o: ../include/mr_proto.h /usr/include/stdio.h ../include/gdb.h
+mr_ops.o: /usr/include/sys/types.h /usr/include/sys/time.h
+mr_ops.o: /usr/include/sys/time.h ../include/moira.h mr_et.h
fixname.o: fixname.c ../include/mit-copyright.h /usr/include/strings.h
fixname.o: /usr/include/ctype.h
strs.o: strs.c ../include/mit-copyright.h /usr/include/sys/types.h
fixhost.o: /usr/include/arpa/nameser.h /usr/include/arpa/resolv.h
fixhost.o: /usr/include/netdb.h /usr/include/stdio.h /usr/include/strings.h
fixhost.o: /usr/include/ctype.h
-nfsparttype.o: nfsparttype.c ../include/mit-copyright.h ../include/sms.h
-nfsparttype.o: ../include/sms_et.h /usr/include/stdio.h /usr/include/strings.h
+nfsparttype.o: nfsparttype.c ../include/mit-copyright.h ../include/moira.h
+nfsparttype.o: mr_et.h /usr/include/stdio.h /usr/include/strings.h
nfsparttype.o: /usr/include/ctype.h
-sq.o: sq.c ../include/mit-copyright.h ../include/sms.h ../include/sms_et.h
-hash.o: hash.c ../include/mit-copyright.h /usr/include/ctype.h ../include/sms.h
-hash.o: ../include/sms_et.h
+sq.o: sq.c ../include/mit-copyright.h ../include/moira.h mr_et.h
+hash.o: hash.c ../include/mit-copyright.h /usr/include/ctype.h
+hash.o: ../include/moira.h mr_et.h
idno.o: idno.c ../include/mit-copyright.h /usr/include/strings.h
idno.o: /usr/include/ctype.h
critical.o: critical.c ../include/mit-copyright.h /usr/include/stdio.h
-critical.o: /usr/include/sys/file.h /usr/include/zephyr/zephyr.h
-critical.o: /usr/include/zephyr/mit-copyright.h
-critical.o: /usr/include/zephyr/zephyr_err.h /usr/include/zephyr/zephyr_conf.h
-critical.o: /usr/include/zephyr/mit-copyright.h /usr/include/errno.h
+critical.o: /usr/include/sys/file.h ../include/moira_site.h
+critical.o: /usr/include/zephyr/zephyr.h /usr/include/zephyr/mit-copyright.h
+critical.o: /usr/include/zephyr/zephyr_err.h
+critical.o: /usr/include/zephyr/zephyr_conf.h /usr/include/errno.h
critical.o: /usr/include/sys/types.h /usr/include/netinet/in.h
-critical.o: /usr/include/sys/time.h /usr/include/time.h /usr/include/stdio.h
-critical.o: /usr/include/krb.h ../include/mit-copyright.h /usr/include/des.h
-critical.o: ../include/mit-copyright.h /usr/include/des_conf.h
-critical.o: ../include/mit-copyright.h
+critical.o: /usr/include/sys/time.h /usr/include/sys/time.h ../include/krb.h
+critical.o: ../include/des.h