]> andersk Git - moira.git/blobdiff - update/Makefile
Used /bin/sh format instead of /bin/csh format, by accident.
[moira.git] / update / Makefile
index 00c8b989d70312ddc8246ecf7b1d4ff1dd0654e0..477376fc07e088b96669a9f84760771b8514be03 100644 (file)
@@ -6,6 +6,9 @@
 #
 # Makefile for 'update' directory.
 #
+# (c) Copyright 1988 by the Massachusetts Institute of Technology.
+# For copying and distribution information, please see the file
+# <mit-copyright.h>.
 
 CC=    cc
 INCS=  -I../include
@@ -15,167 +18,108 @@ LINTFLAGS= ${INCS}
 LDFLAGS= -x
 
 # server object files
-SOBJS= dispatch.o initialize_server.o \
-       quit.o xfer_001.o misc.o inst_001.o sync.o auth_001.o \
-       exec_001.o get_file.o xfer_002.o exec_002.o
+SOBJS= update_server.o auth_001.o inst_001.o xfer_002.o exec_002.o \
+       hostname.o log.o get_file.o checksum.o
 
 # client object files
-COBJS= client2.o ticket.o send_file.o
+COBJS= client.o ticket.o send_file.o checksum.o hostname.o
 
-# common object files
-COMOBJS= log_error.o hostname.o smsu_int.o log.o checksum.o
+SSRCS= update_server.c auth_001.c inst_001.c xfer_002.c exec_002.c \
+       hostname.c log.c get_file.c checksum.c
 
-SSRCS= dispatch.c initialize_server.c \
-       quit.c xfer_001.c misc.c inst_001.c sync.c auth_001.c \
-       exec_001.c get_file.c xfer_002.c exec_002.c
+CSRCS= client.c ticket.c send_file.c checksum.c hostname.c
 
-CSRCS= client.c ticket.c send_file.c client2.c
+LIBS=  -L../lib -lmoira -lgdb -lkrb -ldes -lcom_err
 
-COMSRCS= log_error.c hostname.c log.c checksum.c
+all:   moira_update.o update_server
 
-LIBS=  -L../lib -lgdb -lkrb -ldes -lcom_err
+update_server: ${SOBJS}
+       cc ${CFLAGS} -o update_server ${SOBJS} ${LIBS}
+
+moira_update.o: ${COBJS}
+       ld -r -o moira_update.o ${COBJS}
 
-all:   server sms_update.o test smskey
 
 clean: 
-       -rm -f ${COBJS} ${SOBJS} ${COMOBJS} client.o
-       -rm -f server sms_update.o test test.o smsu_int.h
+       -rm -f ${COBJS} ${SOBJS}
+       -rm -f update_server moira_update.o
        -rm -f core a.out *~ \#*
 
-install:
-# This is probably wrong..
-       install server ../bin/update_server
-       install test ../bin/update_test
-       install smskey ../bin/smskey
+install: update_server
+       install -c -s update_server ${DESTDIR}/usr/etc/update_server
 
 lint:
-       lint ${LINTFLAGS} ${SSRCS} ${COMSRCS}
-       lint ${LINTFLAGS} ${CSRCS} ${COMSRCS}
-       lint ${LINTFLAGS} smskey.c
-
-server:        ${SOBJS} ${COMOBJS}
-       rm -f server
-       ${CC} ${CFLAGS} -o server ${SOBJS} ${COMOBJS} ${LIBS}
+       lint ${LINTFLAGS} ${SSRCS}
+       lint ${LINTFLAGS} ${CSRCS}
 
 smskey:        smskey.c
        ${CC} ${CFLAGS} -o smskey smskey.c -ldes
 
-sms_update.o:  ${COBJS} ${COMOBJS}
-       ld ${LDFLAGS} -r -o sms_update.o ${COBJS} ${COMOBJS}
-       -chmod -x sms_update.o
-
-smsu_int.o smsu_int.h: smsu_int.et
-       compile_et smsu_int
-
-test.o: test.c
-       -rm -f test.o
-       ${CC} ${CFLAGS} -c test.c
-
-test:  test.o sms_update.o
-       rm -f test
-       ${CC} ${CFLAGS} -o test test.o sms_update.o ${LIBS}
-
-SRCS=  ${SSRCS} ${CSRCS} ${COMSRCS} smskey.c
-depend:        smsu_int.h
-       -rm -f eddep makedep
-       ${CC} -M ${CFLAGS} ${SRCS} | \
-       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
-       -rm -f Makefile.bak
-       cp Makefile Makefile.bak
-       ed - Makefile < eddep
-       rm -f eddep makedep
-#
-# the last line in the makefile should be...
-# DO NOT DELETE THIS LINE
-
-dispatch.o: dispatch.c /usr/include/stdio.h ../include/gdb.h
-dispatch.o: /usr/include/sys/types.h /usr/include/sys/time.h
-dispatch.o: /usr/include/time.h /usr/include/errno.h /usr/include/strings.h
-dispatch.o: ../include/update.h sms_update_int.h smsu_int.h kludge.h
-initialize_server.o: initialize_server.c /usr/include/stdio.h ../include/gdb.h
-initialize_server.o: /usr/include/sys/types.h /usr/include/sys/time.h
-initialize_server.o: /usr/include/time.h
-quit.o: quit.c /usr/include/stdio.h ../include/gdb.h /usr/include/sys/types.h
-quit.o: /usr/include/sys/time.h /usr/include/time.h
-xfer_001.o: xfer_001.c /usr/include/stdio.h /usr/include/strings.h
-xfer_001.o: ../include/gdb.h /usr/include/sys/types.h /usr/include/sys/time.h
-xfer_001.o: /usr/include/time.h /usr/include/ctype.h /usr/include/sys/param.h
-xfer_001.o: /usr/include/machine/machparam.h /usr/include/signal.h
-xfer_001.o: /usr/include/sys/types.h /usr/include/sys/file.h smsu_int.h
-xfer_001.o: kludge.h
-misc.o: misc.c /usr/include/stdio.h ../include/gdb.h /usr/include/sys/types.h
-misc.o: /usr/include/sys/time.h /usr/include/time.h sms_update_int.h kludge.h
-misc.o: /usr/include/sys/param.h /usr/include/machine/machparam.h
-misc.o: /usr/include/signal.h /usr/include/sys/types.h smsu_int.h
-inst_001.o: inst_001.c /usr/include/stdio.h ../include/gdb.h
-inst_001.o: /usr/include/sys/types.h /usr/include/sys/time.h
-inst_001.o: /usr/include/time.h kludge.h sms_update_int.h
-sync.o: sync.c /usr/include/stdio.h ../include/gdb.h /usr/include/sys/types.h
-sync.o: /usr/include/sys/time.h /usr/include/time.h kludge.h smsu_int.h
-auth_001.o: auth_001.c /usr/include/stdio.h /usr/include/strings.h
-auth_001.o: ../include/gdb.h /usr/include/sys/types.h /usr/include/sys/time.h
-auth_001.o: /usr/include/time.h smsu_int.h kludge.h /usr/include/krb.h
-auth_001.o: /usr/include/des.h /usr/include/netinet/in.h /usr/include/errno.h
-exec_001.o: exec_001.c /usr/include/stdio.h ../include/gdb.h
-exec_001.o: /usr/include/sys/types.h /usr/include/sys/time.h
-exec_001.o: /usr/include/time.h sms_update_int.h kludge.h smsu_int.h
-get_file.o: get_file.c /usr/include/stdio.h ../include/gdb.h
-get_file.o: /usr/include/sys/types.h /usr/include/sys/time.h
-get_file.o: /usr/include/time.h /usr/include/ctype.h /usr/include/sys/param.h
-get_file.o: /usr/include/machine/machparam.h /usr/include/signal.h
-get_file.o: /usr/include/sys/types.h /usr/include/sys/file.h
-get_file.o: ../include/update.h smsu_int.h kludge.h
-xfer_002.o: xfer_002.c /usr/include/stdio.h ../include/gdb.h
-xfer_002.o: /usr/include/sys/types.h /usr/include/sys/time.h
-xfer_002.o: /usr/include/time.h /usr/include/ctype.h /usr/include/sys/param.h
-xfer_002.o: /usr/include/machine/machparam.h /usr/include/signal.h
-xfer_002.o: /usr/include/sys/types.h /usr/include/sys/file.h smsu_int.h
-xfer_002.o: kludge.h /usr/include/strings.h
-exec_002.o: exec_002.c /usr/include/stdio.h /usr/include/sys/wait.h
+depend:
+       mkdep ${CFLAGS} ${SSRCS} ${CSRCS}
+
+# DO NOT DELETE THIS LINE -- mkdep uses it.
+
+update_server.o: update_server.c ../include/mit-copyright.h
+update_server.o: /usr/include/stdio.h ../include/gdb.h
+update_server.o: /usr/include/sys/types.h /usr/include/sys/time.h
+update_server.o: /usr/include/sys/time.h /usr/include/errno.h
+update_server.o: /usr/include/strings.h ../include/moira.h ../include/mr_et.h
+update_server.o: /usr/include/sys/file.h /usr/include/sys/ioctl.h
+update_server.o: /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h
+update_server.o: ../include/update.h
+auth_001.o: auth_001.c ../include/mit-copyright.h /usr/include/stdio.h
+auth_001.o: /usr/include/strings.h ../include/gdb.h /usr/include/sys/types.h
+auth_001.o: /usr/include/sys/time.h /usr/include/sys/time.h ../include/krb.h
+auth_001.o: ../include/des.h ../include/krb_et.h /usr/include/netinet/in.h
+auth_001.o: /usr/include/errno.h
+inst_001.o: inst_001.c ../include/mit-copyright.h /usr/include/stdio.h
+inst_001.o: ../include/gdb.h /usr/include/sys/types.h /usr/include/sys/time.h
+inst_001.o: /usr/include/sys/time.h
+xfer_002.o: xfer_002.c ../include/mit-copyright.h /usr/include/stdio.h
+xfer_002.o: ../include/gdb.h /usr/include/sys/types.h /usr/include/sys/time.h
+xfer_002.o: /usr/include/sys/time.h /usr/include/ctype.h
+xfer_002.o: /usr/include/sys/param.h /usr/include/machine/machparam.h
+xfer_002.o: /usr/include/sys/signal.h /usr/include/sys/file.h
+xfer_002.o: /usr/include/strings.h ../include/moira.h ../include/mr_et.h
+exec_002.o: exec_002.c ../include/mit-copyright.h /usr/include/stdio.h
+exec_002.o: /usr/include/sys/wait.h /usr/include/sys/signal.h
 exec_002.o: ../include/gdb.h /usr/include/sys/types.h /usr/include/sys/time.h
-exec_002.o: /usr/include/time.h ../include/update.h sms_update_int.h kludge.h
-exec_002.o: smsu_int.h
-client.o: client.c /usr/include/stdio.h ../include/gdb.h
-client.o: /usr/include/sys/types.h /usr/include/sys/time.h /usr/include/time.h
-client.o: /usr/include/sys/stat.h /usr/include/sys/file.h
+exec_002.o: /usr/include/sys/time.h ../include/moira.h ../include/mr_et.h
+exec_002.o: ../include/update.h
+hostname.o: hostname.c ../include/mit-copyright.h /usr/include/stdio.h
+hostname.o: /usr/include/sys/types.h /usr/include/netinet/in.h
+hostname.o: /usr/include/netdb.h /usr/include/ctype.h /usr/include/strings.h
+log.o: log.c ../include/mit-copyright.h /usr/include/stdio.h
+log.o: ../include/com_err.h /usr/include/varargs.h ../include/update.h
+log.o: ../include/krb.h ../include/des.h
+get_file.o: get_file.c ../include/mit-copyright.h /usr/include/stdio.h
+get_file.o: ../include/gdb.h /usr/include/sys/types.h /usr/include/sys/time.h
+get_file.o: /usr/include/sys/time.h /usr/include/ctype.h
+get_file.o: /usr/include/sys/param.h /usr/include/machine/machparam.h
+get_file.o: /usr/include/sys/signal.h /usr/include/sys/file.h
+get_file.o: ../include/moira.h ../include/mr_et.h ../include/update.h
+checksum.o: checksum.c ../include/mit-copyright.h /usr/include/stdio.h
+checksum.o: /usr/include/sys/file.h
+client.o: client.c ../include/mit-copyright.h /usr/include/stdio.h
+client.o: /usr/include/strings.h ../include/gdb.h /usr/include/sys/types.h
+client.o: /usr/include/sys/time.h /usr/include/sys/time.h
 client.o: /usr/include/sys/param.h /usr/include/machine/machparam.h
-client.o: /usr/include/signal.h /usr/include/sys/types.h ../include/update.h
-client.o: /usr/include/errno.h sms_update_int.h smsu_int.h /usr/include/krb.h
-client.o: /usr/include/des.h kludge.h
-ticket.o: ticket.c /usr/include/stdio.h /usr/include/krb.h /usr/include/des.h
-ticket.o: /usr/include/sys/types.h /usr/include/sys/stat.h
-ticket.o: /usr/include/strings.h sms_update_int.h ../include/com_err.h
-ticket.o: ../include/mit-sipb-copyright.h kludge.h
-send_file.o: send_file.c /usr/include/stdio.h ../include/com_err.h
-send_file.o: ../include/mit-sipb-copyright.h ../include/gdb.h
-send_file.o: /usr/include/sys/types.h /usr/include/sys/time.h
-send_file.o: /usr/include/time.h smsu_int.h /usr/include/sys/file.h
-send_file.o: ../include/update.h sms_update_int.h kludge.h
-client2.o: client2.c /usr/include/stdio.h /usr/include/strings.h
-client2.o: ../include/gdb.h /usr/include/sys/types.h /usr/include/sys/time.h
-client2.o: /usr/include/time.h /usr/include/sys/stat.h /usr/include/sys/file.h
-client2.o: /usr/include/sys/param.h /usr/include/machine/machparam.h
-client2.o: /usr/include/signal.h /usr/include/sys/types.h ../include/update.h
-client2.o: /usr/include/errno.h sms_update_int.h smsu_int.h /usr/include/krb.h
-client2.o: /usr/include/des.h kludge.h
-log_error.o: log_error.c /usr/include/stdio.h /usr/include/syslog.h
-hostname.o: hostname.c /usr/include/stdio.h /usr/include/sys/types.h
-hostname.o: /usr/include/netinet/in.h /usr/include/netdb.h /usr/include/ctype.h
-hostname.o: /usr/include/strings.h
-log.o: log.c /usr/include/stdio.h ../include/com_err.h
-log.o: ../include/mit-sipb-copyright.h /usr/include/varargs.h
-log.o: ../include/update.h /usr/include/krb.h /usr/include/des.h
-log.o: /usr/include/syslog.h
-checksum.o: checksum.c /usr/include/stdio.h /usr/include/sys/file.h
-smskey.o: smskey.c /usr/include/stdio.h /usr/include/sys/file.h
-smskey.o: /usr/include/des.h
+client.o: /usr/include/sys/signal.h /usr/include/sys/wait.h
+client.o: /usr/include/sys/socket.h ../include/update.h /usr/include/errno.h
+client.o: ../include/dcm.h ../include/moira.h ../include/mr_et.h
+client.o: ../include/moira_site.h ../include/krb.h ../include/des.h
+ticket.o: ticket.c ../include/mit-copyright.h /usr/include/stdio.h
+ticket.o: ../include/krb.h ../include/des.h /usr/include/sys/types.h
+ticket.o: /usr/include/sys/stat.h /usr/include/strings.h ../include/update.h
+ticket.o: ../include/com_err.h ../include/krb_et.h
+send_file.o: send_file.c ../include/mit-copyright.h /usr/include/stdio.h
+send_file.o: ../include/com_err.h ../include/gdb.h /usr/include/sys/types.h
+send_file.o: /usr/include/sys/time.h /usr/include/sys/time.h ../include/dcm.h
+send_file.o: ../include/moira.h ../include/mr_et.h /usr/include/sys/file.h
+send_file.o: /usr/include/sys/stat.h ../include/update.h
+checksum.o: checksum.c ../include/mit-copyright.h /usr/include/stdio.h
+checksum.o: /usr/include/sys/file.h
+hostname.o: hostname.c ../include/mit-copyright.h /usr/include/stdio.h
+hostname.o: /usr/include/sys/types.h /usr/include/netinet/in.h
+hostname.o: /usr/include/netdb.h /usr/include/ctype.h /usr/include/strings.h
This page took 0.768232 seconds and 4 git commands to generate.