#
# Makefile for ALSA Sequencer
# Copyright (c) 1998 by Frank van de Pol <F.K.W.van.de.Pol@inter.nl.net>
#

# let this point to the directory you ALSA driver source 
TOPDIR  = ../..

include $(TOPDIR)/Makefile.conf

TARGETS = $(SNDVERSIONS) \
	snd-seq.o snd-seq-systimer.o
SYMFILES= seq_export.c 
OBJECTS = seq.o seq_clientmgr.o seq_memory.o seq_queue.o \
	seq_fifo.o seq_prioq.o seq_router.o seq_scheduler.o \
	seq_timer.o seq_system.o seq_ports.o seq_export.o \
	seq_info.o
SYSTIMER  = seq_systimer.o

include $(TOPDIR)/Rules.make

all: $(TARGETS)
	@echo
	@echo "ALSA sequencer was sucessfully compiled."
	@echo

include $(TOPDIR)/Rules1.make

snd-seq.o: .depend $(SNDVERSIONS) $(OBJECTS)
	$(LINKER) -o $@ $(OBJECTS)

snd-seq-systimer.o: .depend $(SNDVERSIONS) $(SYSTIMER)
	$(LINKER) -o $@ $(SYSTIMER)

gcompile: $(TARGETS)

ARCH_SOURCES = \
	Makefile README Changes \
	*.c *.h *.sym\

snapshot: 
	rm $(SYMFILES)
	tar czvf ../../../archive/snapshot-kernel-`date +%d%b%Y`.tar.gz $(ARCH_SOURCES)
	ls -l  ../../../archive/snapshot-*-`date +%d%b%Y`.tar.gz

ci:
	ci -l $(ARCH_SOURCES)

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
