Commit | Line | Data |
---|---|---|
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 |
14 | CFLAGS= -O |
15 | LIBC= /lib/libc.a | |
16 | SRCS= main.c tftp.c tftpsubs.c | |
17 | OBJS= main.o tftp.o tftpsubs.o | |
3f38d406 | 18 | |
51a16129 | 19 | all: tftp |
3f38d406 | 20 | |
51a16129 KB |
21 | tftp: ${OBJS} ${LIBC} |
22 | ${CC} -o $@ ${CFLAGS} ${OBJS} | |
3f38d406 | 23 | |
51a16129 KB |
24 | clean: FRC |
25 | rm -f ${OBJS} core tftp | |
3f38d406 | 26 | |
51a16129 KB |
27 | depend: FRC |
28 | mkdep ${CFLAGS} ${SRCS} | |
300a5f74 | 29 | |
51a16129 KB |
30 | install: FRC |
31 | install -s -o bin -g bin -m 755 tftp ${DESTDIR}/usr/ucb/tftp | |
32 | ||
33 | lint: FRC | |
34 | lint ${CFLAGS} ${SRCS} | |
35 | ||
36 | tags: FRC | |
37 | ctags ${SRCS} | |
38 | ||
39 | FRC: | |
40 | ||
41 | # DO NOT DELETE THIS LINE -- mkdep uses it. | |
42 | # DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY. | |
43 | ||
44 | main.o: main.c /usr/include/sys/types.h /usr/include/sys/socket.h | |
45 | main.o: /usr/include/sys/file.h /usr/include/netinet/in.h /usr/include/signal.h | |
46 | main.o: /usr/include/stdio.h /usr/include/errno.h /usr/include/setjmp.h | |
47 | main.o: /usr/include/ctype.h /usr/include/netdb.h | |
48 | tftp.o: tftp.c /usr/include/sys/types.h /usr/include/sys/socket.h | |
49 | tftp.o: /usr/include/sys/time.h /usr/include/time.h /usr/include/netinet/in.h | |
50 | tftp.o: /usr/include/arpa/tftp.h /usr/include/signal.h /usr/include/stdio.h | |
51 | tftp.o: /usr/include/errno.h /usr/include/setjmp.h | |
52 | tftpsubs.o: tftpsubs.c /usr/include/sys/types.h /usr/include/sys/socket.h | |
53 | tftpsubs.o: /usr/include/sys/ioctl.h /usr/include/sys/ttychars.h | |
54 | tftpsubs.o: /usr/include/sys/ttydev.h /usr/include/netinet/in.h | |
55 | tftpsubs.o: /usr/include/arpa/tftp.h /usr/include/stdio.h | |
56 | ||
57 | # IF YOU PUT ANYTHING HERE IT WILL GO AWAY |