#
# 3rdparty/Makefile
#
# This file is part of webCDwriter - Network CD Writing.
#
# Copyright (C) 2002 Jrg P. M. Haeger
#
# webCDwriter is free software. See CDWserver.cpp for details.
#

include ../config

ROOT=$(RPM_BUILD_ROOT)/$(PREFIX)/
BINDIR=$(ROOT)/usr/bin/

all: dvd+rw-format growisofs

dvd+rw-format: dvd+rw-format.cpp transport.hxx
	$(CXX) $(CXXFLAGS) dvd+rw-format.cpp -o dvd+rw-format

growisofs: growisofs.o growisofs_mmc.cpp transport.hxx
	$(CXX) $(CXXFLAGS) growisofs.o growisofs_mmc.cpp -o growisofs

install: all
	install -d $(BINDIR)
	install -g $(GROUP) -m 4710 -o root dvd+rw-format \
		$(BINDIR) 2> /dev/null \
		|| install dvd+rw-format $(BINDIR)
	install -g $(GROUP) -m 4710 -o root growisofs \
		$(BINDIR) 2> /dev/null \
		|| install growisofs $(BINDIR)

clean:
	rm -f *.o core a.out

maintainer-clean:
	rm -f *.o core a.out dvd+rw-format growisofs
