#
# Makefile for ALSA driver
# Copyright (c) 1994-98 by Jaroslav Kysela <perex@suse.cz>
#

TOPDIR  = ..

include $(TOPDIR)/Makefile.conf
include $(TOPDIR)/cards.config

SUBDIRS = generic isa i2c
ifeq (1,$(CONFIG_SND_GUS))
SUBDIRS += gus
endif
ifeq (1,$(CONFIG_SND_SB8_DSP))
SUBDIRS += sb
else
ifeq (1,$(CONFIG_SND_SB16_DSP))
SUBDIRS += sb
endif
endif
ifeq (1,$(CONFIG_SND_PCI))
SUBDIRS += pci
endif
ifeq (1,$(CONFIG_SND_SGI))
SUBDIRS += hal2
endif

all:
	@for d in $(SUBDIRS); do if ! $(MAKE) -C $$d; then exit 1; fi; done
	@echo
	@echo "ALSA lowlevel drivers were sucessfully compiled."
	@echo

clean:
	@for d in $(SUBDIRS); do if ! $(MAKE) -C $$d clean; then exit 1; fi; done
	rm -f core .depend *.o *.orig snd.map snd.map? *~
