CC = gcc
PROG = ruptime
OBJS = ruptime.o
CFLAGS = -DLINUX -O2 -include /usr/include/bsd/bsd.h -I. -I/usr/include/bsd
LDFLAGS = -N -s
LDLIBS = -lbsd

all: $(PROG)

$(PROG): $(OBJS)

install: all
	install -o root -g root -m 0755 ruptime ${DEBDIR}/usr/bin
	install -o root -g root -m 0644 ruptime.1 ${DEBDIR}/usr/man/man1

clean:
	rm -f *.o *~ core ruptime

clobber: clean
	rm -f $(PROG)
