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

TOPDIR  = ../..

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

TARGETS += $(TOPDIR)/modules/snd-mixer-oss.o
EXPORTS += mixer_oss.o
MIXOSS = mixer_oss.o
TARGETS += $(TOPDIR)/modules/snd-pcm-oss.o
PCMOSS = pcm_oss.o pcm_plugin.o \
         io.o copy.o linear.o mulaw.o route.o rate.o

include $(TOPDIR)/Rules.make

all: $(TARGETS)

include $(TOPDIR)/Rules1.make

$(TOPDIR)/modules/snd-mixer-oss.o: .depend $(SNDVERSIONS) $(MIXOSS)
	$(LINKER) -o $@ $(MIXOSS)

$(TOPDIR)/modules/snd-pcm-oss.o: .depend $(SNDVERSIONS) $(PCMOSS)
	$(LINKER) -o $@ $(PCMOSS)

gcompile: $(TARGETS)

clean:
	rm -f .depend *.o *.orig snd.map snd.map? *.old *~
	rm -f core $(SNDVERSIONS) $(SYMFILES)

.depend: $(SYMFILES)
	$(CPP) $(COPTS) $(INCLUDE) *.c > .depend

dep:	.depend

dummy:

#
# include a dependency file if one exists
#
ifeq (.depend,$(wildcard .depend))
include .depend
endif
