1# 2# Copyright (c) 1987 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.3 (Berkeley) 06/02/87 7# 8CFLAGS= -O 9LIBC= /lib/libc.a 10SRCS= main.c init.c subr.c gettytab.c get_date.c 11OBJS= main.o init.o subr.o gettytab.o get_date.o 12 13all: getty 14 15getty: ${OBJS} ${LIBC} 16 ${CC} -o $@ ${CFLAGS} ${OBJS} 17 18clean: FRC 19 rm -f ${OBJS} core getty 20 21depend: FRC 22 mkdep ${CFLAGS} ${SRCS} 23 24install: FRC 25 install -s -o bin -g bin -m 755 getty ${DESTDIR}/etc/getty 26 install -c -o bin -g bin -m 444 gettytab ${DESTDIR}/etc/gettytab 27 28lint: FRC 29 lint ${CFLAGS} ${SRCS} 30 31tags: FRC 32 ctags ${SRCS} 33 34FRC: 35 36# DO NOT DELETE THIS LINE -- mkdep uses it. 37# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY. 38 39main.o: main.c /usr/include/sgtty.h /usr/include/sys/ioctl.h 40main.o: /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h 41main.o: /usr/include/signal.h /usr/include/ctype.h /usr/include/setjmp.h 42main.o: /usr/include/syslog.h /usr/include/sys/file.h gettytab.h 43init.o: init.c /usr/include/sgtty.h /usr/include/sys/ioctl.h 44init.o: /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h gettytab.h 45subr.o: subr.c /usr/include/sgtty.h /usr/include/sys/ioctl.h 46subr.o: /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h gettytab.h 47subr.o: /usr/include/sys/time.h /usr/include/time.h 48gettytab.o: gettytab.c /usr/include/ctype.h 49get_date.o: get_date.c /usr/include/stdio.h /usr/include/sys/time.h 50get_date.o: /usr/include/time.h 51 52# IF YOU PUT ANYTHING HERE IT WILL GO AWAY 53