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

tftpd: tftpd.o ../tftp-8.1/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

