prefix=${PREFIX}
BINDIR=${prefix}/bin
MANDIR=${prefix}/man

CFLAGS+=${CPPFLAGS}
LD=${CC}

PROGRAM=dvdtape
OBJECTS=dvdtape.o isosize.o

all: $(PROGRAM)

$(PROGRAM): $(OBJECTS)
	$(LD) $(LDFLAGS) -o ${PROGRAM} $(OBJECTS) $(LIBS)

install: all
	${BSD_INSTALL_PROGRAM} $(PROGRAM) $(BINDIR)
	${BSD_INSTALL_MAN} $(PROGRAM).1 $(MANDIR)/man1/

clean:
	-rm -f $(PROGRAM) *.o *~


syntax highlighted by Code2HTML, v. 0.9.1