|
|
1.1 ! root 1: # ! 2: # Copyright (c) 1983 Regents of the University of California. ! 3: # All rights reserved. The Berkeley software License Agreement ! 4: # specifies the terms and conditions for redistribution. ! 5: # ! 6: # @(#)Makefile 5.4 (Berkeley) 4/12/86 ! 7: # ! 8: DESTDIR= ! 9: OBJS= talk.o get_names.o display.o io.o ctl.o init_disp.o \ ! 10: msgs.o get_addrs.o ctl_transact.o invite.o look_up.o ! 11: SRCS= talk.c get_names.c display.c io.c ctl.c init_disp.c \ ! 12: msgs.c get_addrs.c ctl_transact.c invite.c look_up.c ! 13: INCLUDE=talk.h talk_ctl.h ! 14: CFLAGS= -O ! 15: ! 16: all: talk ! 17: ! 18: talk: ${OBJS} ! 19: cc -o talk ${OBJS} -lcurses -ltermlib ! 20: ! 21: ${OBJS}: talk.h talk_ctl.h ! 22: ! 23: install: talk ! 24: install -g tty -m 2755 -s talk ${DESTDIR}/usr/ucb/talk ! 25: ! 26: clean: ! 27: rm -f ${OBJS} a.out errs core talk ! 28: ! 29: tags: ${SRCS} ${INCLUDE} ! 30: ctags ${SRCS} ${INCLUDE} ! 31: ! 32: depend: ${SRCS} ! 33: for i in ${SRCS}; do \ ! 34: cc -M $$i | sed 's/\.o//' | \ ! 35: awk ' { if ($$1 != prev) \ ! 36: { if (rec != "") print rec; rec = $$0; prev = $$1; } \ ! 37: else { if (length(rec $$2) > 78) { print rec; rec = $$0; } \ ! 38: else rec = rec " " $$2 } } \ ! 39: END { print rec } ' >> makedep; done ! 40: echo '/^# DO NOT DELETE THIS LINE/+2,$$d' >eddep ! 41: echo '$$r makedep' >>eddep ! 42: echo 'w' >>eddep ! 43: cp Makefile Makefile.bak ! 44: ed - Makefile < eddep ! 45: rm eddep makedep ! 46: echo '# DEPENDENCIES MUST END AT END OF FILE' >> Makefile ! 47: echo '# IF YOU PUT STUFF HERE IT WILL GO AWAY' >> Makefile ! 48: echo '# see make depend above' >> Makefile ! 49: ! 50: # DO NOT DELETE THIS LINE -- make depend uses it ! 51: ! 52: talk: talk.c ./talk.h /usr/include/curses.h /usr/include/stdio.h ! 53: talk: /usr/include/sgtty.h /usr/include/sys/ioctl.h /usr/include/sys/ttychars.h ! 54: talk: /usr/include/sys/ttydev.h /usr/include/utmp.h ! 55: get_names: get_names.c ./talk.h /usr/include/curses.h /usr/include/stdio.h ! 56: get_names: /usr/include/sgtty.h /usr/include/sys/ioctl.h ! 57: get_names: /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h ! 58: get_names: /usr/include/utmp.h /usr/include/sys/param.h ! 59: get_names: /usr/include/machine/machparam.h /usr/include/signal.h ! 60: get_names: /usr/include/sys/types.h /usr/include/protocols/talkd.h ! 61: get_names: /usr/include/sys/types.h /usr/include/sys/socket.h ! 62: display: display.c ./talk.h /usr/include/curses.h /usr/include/stdio.h ! 63: display: /usr/include/sgtty.h /usr/include/sys/ioctl.h ! 64: display: /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h ! 65: display: /usr/include/utmp.h ! 66: io: io.c ./talk.h /usr/include/curses.h /usr/include/stdio.h ! 67: io: /usr/include/sgtty.h /usr/include/sys/ioctl.h /usr/include/sys/ttychars.h ! 68: io: /usr/include/sys/ttydev.h /usr/include/utmp.h /usr/include/stdio.h ! 69: io: /usr/include/errno.h /usr/include/sys/time.h /usr/include/time.h ! 70: ctl: ctl.c ./talk_ctl.h /usr/include/sys/types.h /usr/include/protocols/talkd.h ! 71: ctl: /usr/include/sys/types.h /usr/include/sys/socket.h ! 72: ctl: /usr/include/netinet/in.h ./talk.h /usr/include/curses.h ! 73: ctl: /usr/include/stdio.h /usr/include/sgtty.h /usr/include/sys/ioctl.h ! 74: ctl: /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h /usr/include/utmp.h ! 75: ctl: /usr/include/errno.h ! 76: init_disp: init_disp.c ./talk.h /usr/include/curses.h /usr/include/stdio.h ! 77: init_disp: /usr/include/sgtty.h /usr/include/sys/ioctl.h ! 78: init_disp: /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h ! 79: init_disp: /usr/include/utmp.h /usr/include/signal.h ! 80: msgs: msgs.c /usr/include/signal.h /usr/include/stdio.h /usr/include/sys/time.h ! 81: msgs: /usr/include/time.h ./talk.h /usr/include/curses.h /usr/include/stdio.h ! 82: msgs: /usr/include/sgtty.h /usr/include/sys/ioctl.h /usr/include/sys/ttychars.h ! 83: msgs: /usr/include/sys/ttydev.h /usr/include/utmp.h ! 84: get_addrs: get_addrs.c ./talk_ctl.h /usr/include/sys/types.h ! 85: get_addrs: /usr/include/protocols/talkd.h /usr/include/sys/types.h ! 86: get_addrs: /usr/include/sys/socket.h /usr/include/netinet/in.h ./talk.h ! 87: get_addrs: /usr/include/curses.h /usr/include/stdio.h /usr/include/sgtty.h ! 88: get_addrs: /usr/include/sys/ioctl.h /usr/include/sys/ttychars.h ! 89: get_addrs: /usr/include/sys/ttydev.h /usr/include/utmp.h /usr/include/errno.h ! 90: get_addrs: /usr/include/netdb.h ! 91: ctl_transact: ctl_transact.c ./talk_ctl.h /usr/include/sys/types.h ! 92: ctl_transact: /usr/include/protocols/talkd.h /usr/include/sys/types.h ! 93: ctl_transact: /usr/include/sys/socket.h /usr/include/netinet/in.h ./talk.h ! 94: ctl_transact: /usr/include/curses.h /usr/include/stdio.h /usr/include/sgtty.h ! 95: ctl_transact: /usr/include/sys/ioctl.h /usr/include/sys/ttychars.h ! 96: ctl_transact: /usr/include/sys/ttydev.h /usr/include/utmp.h ! 97: ctl_transact: /usr/include/errno.h /usr/include/sys/time.h /usr/include/time.h ! 98: invite: invite.c ./talk_ctl.h /usr/include/sys/types.h ! 99: invite: /usr/include/protocols/talkd.h /usr/include/sys/types.h ! 100: invite: /usr/include/sys/socket.h /usr/include/netinet/in.h ./talk.h ! 101: invite: /usr/include/curses.h /usr/include/stdio.h /usr/include/sgtty.h ! 102: invite: /usr/include/sys/ioctl.h /usr/include/sys/ttychars.h ! 103: invite: /usr/include/sys/ttydev.h /usr/include/utmp.h /usr/include/errno.h ! 104: invite: /usr/include/sys/time.h /usr/include/time.h /usr/include/signal.h ! 105: invite: /usr/include/setjmp.h ! 106: look_up: look_up.c ./talk_ctl.h /usr/include/sys/types.h ! 107: look_up: /usr/include/protocols/talkd.h /usr/include/sys/types.h ! 108: look_up: /usr/include/sys/socket.h /usr/include/netinet/in.h ./talk.h ! 109: look_up: /usr/include/curses.h /usr/include/stdio.h /usr/include/sgtty.h ! 110: look_up: /usr/include/sys/ioctl.h /usr/include/sys/ttychars.h ! 111: look_up: /usr/include/sys/ttydev.h /usr/include/utmp.h /usr/include/errno.h ! 112: # DEPENDENCIES MUST END AT END OF FILE ! 113: # IF YOU PUT STUFF HERE IT WILL GO AWAY ! 114: # see make depend above
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.