# Set this variable to the ultimate location of the software.
BINAREA=/usr/local/bin

CFLAGS = -O

OBJS = ivd2dvi.o auxiliary.o io.o
SRCS = ivd2dvi.c auxiliary.c io.c
INCLUDES = global.h commands.h

all: ivd2dvi

ivd2dvi: ${OBJS}
	cc ${CFLAGS} -o ivd2dvi ${OBJS}

${OBJS}: ${INCLUDES}

install: all
	install -s -m 755 ivd2dvi ${BINAREA}

bugs:   ${SRCS} ${INCLUDES}
	rm -f bugs
	lint -hbxac ${SRCS} > bugs