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