1# 2# Copyright (c) 1987 Regents of the University of California. 3# All rights reserved. 4# 5# Redistribution and use in source and binary forms are permitted 6# provided that the above copyright notice and this paragraph are 7# duplicated in all such forms and that any documentation, 8# advertising materials, and other materials related to such 9# distribution and use acknowledge that the software was developed 10# by the University of California, Berkeley. The name of the 11# University may not be used to endorse or promote products derived 12# from this software without specific prior written permission. 13# THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR 14# IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED 15# WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. 16# 17# @(#)Makefile 5.6 (Berkeley) 06/29/88 18# 19CFLAGS= -O 20LIBC= /lib/libc.a 21SRCS= main.c tftp.c tftpsubs.c 22OBJS= main.o tftp.o tftpsubs.o 23 24all: tftp 25 26tftp: ${OBJS} ${LIBC} 27 ${CC} -o $@ ${CFLAGS} ${OBJS} 28 29clean: FRC 30 rm -f ${OBJS} core tftp 31 32depend: FRC 33 mkdep ${CFLAGS} ${SRCS} 34 35install: FRC 36 install -s -o bin -g bin -m 755 tftp ${DESTDIR}/usr/ucb/tftp 37 38lint: FRC 39 lint ${CFLAGS} ${SRCS} 40 41tags: FRC 42 ctags ${SRCS} 43 44FRC: 45 46# DO NOT DELETE THIS LINE -- mkdep uses it. 47# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY. 48 49main.o: main.c /usr/include/sys/types.h /usr/include/sys/socket.h 50main.o: /usr/include/sys/file.h /usr/include/netinet/in.h /usr/include/signal.h 51main.o: /usr/include/stdio.h /usr/include/errno.h /usr/include/setjmp.h 52main.o: /usr/include/ctype.h /usr/include/netdb.h 53tftp.o: tftp.c /usr/include/sys/types.h /usr/include/sys/socket.h 54tftp.o: /usr/include/sys/time.h /usr/include/time.h /usr/include/netinet/in.h 55tftp.o: /usr/include/arpa/tftp.h /usr/include/signal.h /usr/include/stdio.h 56tftp.o: /usr/include/errno.h /usr/include/setjmp.h 57tftpsubs.o: tftpsubs.c /usr/include/sys/types.h /usr/include/sys/socket.h 58tftpsubs.o: /usr/include/sys/ioctl.h /usr/include/sys/ttychars.h 59tftpsubs.o: /usr/include/sys/ttydev.h /usr/include/netinet/in.h 60tftpsubs.o: /usr/include/arpa/tftp.h /usr/include/stdio.h 61 62# IF YOU PUT ANYTHING HERE IT WILL GO AWAY 63