CFLAGS	= -include /usr/include/bsd/bsd.h -I/usr/include/bsd \
	-O2 -m486 -fomit-frame-pointer -I .
LDFLAGS	= -s
LDLIBS = -lbsd

OBJECTS = af.o if.o inet.o input.o main.o output.o startup.o tables.o \
		timer.o trace.o

routed: $(OBJECTS)
	$(CC) $(LDFLAGS) -o routed $(OBJECTS) $(LDLIBS)

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

clean:
	rm -f *.o routed

