#
# Makefile for ALSA Sequencer
# Copyright (c) Jaroslav Kysela <perex@suse.cz>
#

TOPDIR  = ../../..

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

TARGETS = $(SNDVERSIONS)
SYMFILES=
ifeq (1,$(CONFIG_SND_AINSTR_IW))
TARGETS += $(TOPDIR)/modules/snd-ainstr-iw.o
SYMFILES += ainstr_iw_export.c
endif
AINSTR_IW = ainstr_iw.o

include $(TOPDIR)/Rules.make

all: $(TARGETS)
	@echo
	@echo "ALSA instrument modules were sucessfully compiled."
	@echo

include $(TOPDIR)/Rules1.make

$(TOPDIR)/modules/snd-ainstr-iw.o: .depend $(SNDVERSIONS) $(AINSTR_IW)
	$(LINKER) -o $@ $(AINSTR_IW)

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
