
CFLAGS= -Wall -O
CXXFLAGS= -Wall -O -fno-exceptions
CCFLAGS = ${CXXFLAGS}

LDFLAGS= 

DVDFORMAT	= dvd+rw-format
DVDRECORD	= growisofs

EXECS =${DVDFORMAT} ${DVDRECORD}

CC_FORMAT_SRCS = dvd+rw-format.C
CC_FORMAT_OBJS = ${CC_FORMAT_SRCS:.C=.o}

C_RECORD_SRCS =	growisofs.c
C_RECORD_OBJS = ${C_RECORD_SRCS:.c=.o}

CC_RECORD_SRCS = growisofs_mmc.C
CC_RECORD_OBJS = ${CC_RECORD_SRCS:.C=.o}

LLIBS=

all:            ${EXECS}

MKDEPEND_CSRCS =${CC_FORMAT_SRCS} ${C_WRITE_SRCS} ${CC_WRITE_SRCS}
depend:; ${MKDEPEND}

${DVDFORMAT}:	${CC_FORMAT_OBJS}
		${CXX} ${CC_FORMAT_OBJS} -o ${DVDFORMAT}
		@strip ${DVDFORMAT} 
		@rootchown operator ${DVDFORMAT}
		@rootchmod 775 ${DVDFORMAT}

${DVDRECORD}:	${C_RECORD_OBJS} ${CC_RECORD_OBJS}
		${CXX} ${C_RECORD_OBJS} ${CC_RECORD_OBJS} -o ${DVDRECORD}
		@strip ${DVDRECORD}
		@rootchown operator ${DVDRECORD}
		@rootchmod 775 ${DVDRECORD}

install:	${EXECS}
		rootcp -p ${DVDFORMAT} ${IRIS_BIN}sigdvdformat
		rootcp -p ${DVDRECORD} ${IRIS_BIN}sigdvdrecord

cleanexe:;	rm -f ${EXECS} core
clean:		cleanexe
		rm -f *.o *.usg *.cat
# DO NOT DELETE

dvd+rw-format.o: transport.hxx
