#
# 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.c
	gcc dvd+rw-format.c -o dvd+rw-format

growisofs: growisofs.c
	gcc growisofs.c -o growisofs

install: all
	install -d $(ROOT)/usr/bin/
	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)

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