date and time created 90/05/11 12:34:52 by bostic
[unix-history] / usr / src / libexec / tftpd / Makefile
CommitLineData
45d7ce84 1#
b8c620d6 2# Copyright (c) 1987 Regents of the University of California.
f6e43951 3# All rights reserved.
45d7ce84 4#
f6e43951 5# Redistribution and use in source and binary forms are permitted
b8c620d6
KB
6# provided that the above copyright notice and this paragraph are
7# duplicated in all such forms and that any documentation,
8# advertising materials, and other materials related to such
9# distribution and use acknowledge that the software was developed
10# by the University of California, Berkeley. The name of the
11# University may not be used to endorse or promote products derived
12# from this software without specific prior written permission.
13# THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
14# IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
15# WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
f6e43951 16#
7abf8d65 17# @(#)Makefile 5.9 (Berkeley) %G%
45d7ce84 18#
7abf8d65 19VPATH= ../../usr.bin/tftp
45d7ce84 20CFLAGS= -O
d2748719
KB
21LIBC= /lib/libc.a
22SRCS= tftpd.c tftpsubs.c
23OBJS= tftpd.o tftpsubs.o
fbdd5daa 24MAN= tftpd.0
d2748719
KB
25
26all: tftpd
27
fbdd5daa 28tftpd: ${OBJS} ${LIBC}
d2748719
KB
29 ${CC} -o $@ ${CFLAGS} ${OBJS}
30
fbdd5daa 31clean:
d2748719
KB
32 rm -f ${OBJS} core tftpd
33
fbdd5daa
KB
34cleandir: clean
35 rm -f ${MAN} tags .depend
36
37depend: ${SRCS}
d2748719
KB
38 mkdep ${CFLAGS} ${SRCS}
39
fbdd5daa 40install: ${MAN}
7abf8d65 41 install -s -o bin -g bin -m 755 tftpd ${DESTDIR}/usr/libexec
fbdd5daa 42 install -c -o bin -g bin -m 444 tftpd.0 ${DESTDIR}/usr/man/cat8
d2748719 43
fbdd5daa 44lint: ${SRCS}
d2748719
KB
45 lint ${CFLAGS} ${SRCS}
46
fbdd5daa 47tags: ${SRCS}
d2748719 48 ctags ${SRCS}