Commit | Line | Data |
---|---|---|
d0aeaf5a | 1 | # |
51a16129 | 2 | # Copyright (c) 1987 Regents of the University of California. |
d0aeaf5a DF |
3 | # All rights reserved. The Berkeley software License Agreement |
4 | # specifies the terms and conditions for redistribution. | |
5 | # | |
51a16129 | 6 | # @(#)Makefile 5.4 (Berkeley) %G% |
d0aeaf5a | 7 | # |
51a16129 KB |
8 | CFLAGS= -O |
9 | LIBC= /lib/libc.a | |
10 | SRCS= main.c tftp.c tftpsubs.c | |
11 | OBJS= main.o tftp.o tftpsubs.o | |
3f38d406 | 12 | |
51a16129 | 13 | all: tftp |
3f38d406 | 14 | |
51a16129 KB |
15 | tftp: ${OBJS} ${LIBC} |
16 | ${CC} -o $@ ${CFLAGS} ${OBJS} | |
3f38d406 | 17 | |
51a16129 KB |
18 | clean: FRC |
19 | rm -f ${OBJS} core tftp | |
3f38d406 | 20 | |
51a16129 KB |
21 | depend: FRC |
22 | mkdep ${CFLAGS} ${SRCS} | |
300a5f74 | 23 | |
51a16129 KB |
24 | install: FRC |
25 | install -s -o bin -g bin -m 755 tftp ${DESTDIR}/usr/ucb/tftp | |
26 | ||
27 | lint: FRC | |
28 | lint ${CFLAGS} ${SRCS} | |
29 | ||
30 | tags: FRC | |
31 | ctags ${SRCS} | |
32 | ||
33 | FRC: | |
34 | ||
35 | # DO NOT DELETE THIS LINE -- mkdep uses it. | |
36 | # DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY. | |
37 | ||
38 | main.o: main.c /usr/include/sys/types.h /usr/include/sys/socket.h | |
39 | main.o: /usr/include/sys/file.h /usr/include/netinet/in.h /usr/include/signal.h | |
40 | main.o: /usr/include/stdio.h /usr/include/errno.h /usr/include/setjmp.h | |
41 | main.o: /usr/include/ctype.h /usr/include/netdb.h | |
42 | tftp.o: tftp.c /usr/include/sys/types.h /usr/include/sys/socket.h | |
43 | tftp.o: /usr/include/sys/time.h /usr/include/time.h /usr/include/netinet/in.h | |
44 | tftp.o: /usr/include/arpa/tftp.h /usr/include/signal.h /usr/include/stdio.h | |
45 | tftp.o: /usr/include/errno.h /usr/include/setjmp.h | |
46 | tftpsubs.o: tftpsubs.c /usr/include/sys/types.h /usr/include/sys/socket.h | |
47 | tftpsubs.o: /usr/include/sys/ioctl.h /usr/include/sys/ttychars.h | |
48 | tftpsubs.o: /usr/include/sys/ttydev.h /usr/include/netinet/in.h | |
49 | tftpsubs.o: /usr/include/arpa/tftp.h /usr/include/stdio.h | |
50 | ||
51 | # IF YOU PUT ANYTHING HERE IT WILL GO AWAY |