Purge warnings from prism2 drivers
[gpxe.git] / contrib / tftp / Makefile
blobbd427cd044a2e06f7cb841fc3b1ed7a6c8020a93
2 # Copyright (c) 1987 Regents of the University of California.
3 # All rights reserved.
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
26 CC= gcc
27 LIBS= # -linet
29 all: tftp tftpd
31 tftp: ${OBJS}
32 ${CC} -o $@ ${CFLAGS} ${OBJS} # -linet
34 tftpd: ${DOBJS}
35 ${CC} -o $@ ${CFLAGS} ${DOBJS} ${LIBS}
37 clean:
38 rm -f ${OBJS} ${DOBJS} core tftp tftpd
40 cleandir: clean
41 rm -f tags .depend
43 depend: ${SRCS}
44 mkdep ${CFLAGS} ${SRCS}
46 install:
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
52 lint: ${SRCS}
53 lint ${CFLAGS} ${SRCS}
55 tags: ${SRCS}
56 ctags ${SRCS}