add Berkeley specific header
[unix-history] / usr / src / usr.bin / tftp / Makefile
CommitLineData
d0aeaf5a 1#
51a16129 2# Copyright (c) 1987 Regents of the University of California.
f6e43951 3# All rights reserved.
d0aeaf5a 4#
f6e43951
KB
5# Redistribution and use in source and binary forms are permitted
6# provided that this notice is preserved and that due credit is given
7# to the University of California at Berkeley. The name of the University
8# may not be used to endorse or promote products derived from this
9# software without specific prior written permission. This software
10# is provided ``as is'' without express or implied warranty.
11#
12# @(#)Makefile 5.5 (Berkeley) %G%
d0aeaf5a 13#
51a16129
KB
14CFLAGS= -O
15LIBC= /lib/libc.a
16SRCS= main.c tftp.c tftpsubs.c
17OBJS= main.o tftp.o tftpsubs.o
3f38d406 18
51a16129 19all: tftp
3f38d406 20
51a16129
KB
21tftp: ${OBJS} ${LIBC}
22 ${CC} -o $@ ${CFLAGS} ${OBJS}
3f38d406 23
51a16129
KB
24clean: FRC
25 rm -f ${OBJS} core tftp
3f38d406 26
51a16129
KB
27depend: FRC
28 mkdep ${CFLAGS} ${SRCS}
300a5f74 29
51a16129
KB
30install: FRC
31 install -s -o bin -g bin -m 755 tftp ${DESTDIR}/usr/ucb/tftp
32
33lint: FRC
34 lint ${CFLAGS} ${SRCS}
35
36tags: FRC
37 ctags ${SRCS}
38
39FRC:
40
41# DO NOT DELETE THIS LINE -- mkdep uses it.
42# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
43
44main.o: main.c /usr/include/sys/types.h /usr/include/sys/socket.h
45main.o: /usr/include/sys/file.h /usr/include/netinet/in.h /usr/include/signal.h
46main.o: /usr/include/stdio.h /usr/include/errno.h /usr/include/setjmp.h
47main.o: /usr/include/ctype.h /usr/include/netdb.h
48tftp.o: tftp.c /usr/include/sys/types.h /usr/include/sys/socket.h
49tftp.o: /usr/include/sys/time.h /usr/include/time.h /usr/include/netinet/in.h
50tftp.o: /usr/include/arpa/tftp.h /usr/include/signal.h /usr/include/stdio.h
51tftp.o: /usr/include/errno.h /usr/include/setjmp.h
52tftpsubs.o: tftpsubs.c /usr/include/sys/types.h /usr/include/sys/socket.h
53tftpsubs.o: /usr/include/sys/ioctl.h /usr/include/sys/ttychars.h
54tftpsubs.o: /usr/include/sys/ttydev.h /usr/include/netinet/in.h
55tftpsubs.o: /usr/include/arpa/tftp.h /usr/include/stdio.h
56
57# IF YOU PUT ANYTHING HERE IT WILL GO AWAY