xref: /original-bsd/libexec/tftpd/Makefile (revision 03a7be21)
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.6 (Berkeley) 05/21/88
13#
14VPATH=	../../ucb/tftp
15CFLAGS=	-O
16LIBC=	/lib/libc.a
17SRCS=	tftpd.c tftpsubs.c
18OBJS=	tftpd.o tftpsubs.o
19
20all: tftpd
21
22tftpd:	${OBJS} ${LIBC}
23	${CC} -o $@ ${CFLAGS} ${OBJS}
24
25clean: FRC
26	rm -f ${OBJS} core tftpd
27
28depend: FRC
29	mkdep ${CFLAGS} ${SRCS}
30
31install: FRC
32	install -s -o bin -g bin -m 755 tftpd ${DESTDIR}/etc/tftpd
33
34lint: FRC
35	lint ${CFLAGS} ${SRCS}
36
37tags: FRC
38	ctags ${SRCS}
39
40FRC:
41
42# DO NOT DELETE THIS LINE -- mkdep uses it.
43# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
44
45tftpd.o: tftpd.c /usr/include/sys/types.h /usr/include/sys/socket.h
46tftpd.o: /usr/include/sys/ioctl.h /usr/include/sys/ttychars.h
47tftpd.o: /usr/include/sys/ttydefaults.h /usr/include/sys/ttydev.h
48tftpd.o: /usr/include/sys/wait.h /usr/include/machine/endian.h
49tftpd.o: /usr/include/sys/stat.h /usr/include/netinet/in.h
50tftpd.o: /usr/include/arpa/tftp.h /usr/include/signal.h
51tftpd.o: /usr/include/machine/trap.h /usr/include/stdio.h /usr/include/errno.h
52tftpd.o: /usr/include/ctype.h /usr/include/netdb.h /usr/include/setjmp.h
53tftpd.o: /usr/include/syslog.h
54
55# IF YOU PUT ANYTHING HERE IT WILL GO AWAY
56