| 1 | # |
| 2 | # Copyright (c) 1988 Regents of the University of California. |
| 3 | # All rights reserved. |
| 4 | # |
| 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% |
| 13 | # |
| 14 | CFLAGS= -O |
| 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} |
| 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 | 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 |
| 56 | |
| 57 | # IF YOU PUT ANYTHING HERE IT WILL GO AWAY |