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