CC = gcc
OBJS = tftpd.o ../tftp/tftpsubs.o
CFLAGS = -O2 -fomit-frame-pointer -m486 -include /usr/include/bsd/bsd.h \
	-I/usr/include/bsd -Dsin=x_sin
LDFLAGS = -s
LDLIBS = -lbsd

tftpd: tftpd.o ../tftp/tftpsubs.o

install: tftpd
	install -o root -g root -m 0755 tftpd ${DEBDIR}/usr/sbin/in.tftpd
	install -o root -g root -m 0644 tftpd.8 ${DEBDIR}/usr/man/man8
	install -o root -g root -m 0644 in.tftpd.8 ${DEBDIR}/usr/man/man8

clean:
	rm -f *.o tftpd

