# Makefile for the dmx4linux
# (C)1997-2001 by Michael Stickel
#
# author: Michael Stickel
# email : michael@cubic.org

DMXROOT=	.
#DMXROOT:=$(shell /bin/pwd)

include config.mk

ifndef ARCH
$(error No ARCH environment defined. Please run './configure')
endif

.phony:	all install postinstall clean distclean postclean devinodes

all install clean distclean:
	cd libs    ; $(MAKE) $@
	cd tools   ; $(MAKE) $@
	cd drivers ; $(MAKE) $@
	cd examples; $(MAKE) $@
	cd doc     ; $(MAKE) $@
ifdef CONFIG_QT_CONFDLG
	cd qt      ; $(MAKE) $@
endif
ifdef CONFIG_HAVE_X
	cd X       ; $(MAKE) $@
endif
ifdef CONFIG_HAVE_XMMS
	cd xmms    ; $(MAKE) $@
endif

clean:	postclean

postclean:
	find . -name "*~" -exec rm -f {} ';'

config:
	./configure

install: all


DMXDIR=	dmx4linux-$(VERSION)

devinodes:	
	cd drivers ; $(MAKE) $@

cvsclean:	
	find . -name "CVS" -exec rm -rf {} ';'
