2 # Copyright (c) 1987 Regents of the University of California.
5 # Redistribution and use in source and binary forms are permitted
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.
17 # @(#)Makefile 5.8 (Berkeley) 9/20/88
19 # We override /usr/include/arpa/tftp.h with our own because
20 # we want tu_block to be unsigned short, not short as on most platforms
22 CFLAGS
= -I.
-O2
-Dsin
=sin_x
23 SRCS
= main.c tftp.c tftpsubs.c tftpd.c
24 OBJS
= main.o tftp.o tftpsubs.o
25 DOBJS
= tftpd.o tftpsubs.o
32 ${CC} -o
$@
${CFLAGS} ${OBJS} # -linet
35 ${CC} -o
$@
${CFLAGS} ${DOBJS} ${LIBS}
38 rm -f
${OBJS} ${DOBJS} core tftp tftpd
44 mkdep
${CFLAGS} ${SRCS}
47 install -s
-o root
-g root
-m
755 tftp
/usr
/bin
/tftp
48 install -c
-o root
-g root
-m
444 tftp
.1 /usr
/man
/man1
49 install -s
-o root
-g root
-m
755 tftpd
/usr
/sbin
/in.tftpd
50 install -c
-o root
-g root
-m
444 tftpd
.8 /usr
/man
/man8
53 lint
${CFLAGS} ${SRCS}