# Extended Module Player src/drivers/Makefile
# $Id: Makefile,v 1.9 2001/01/20 01:06:44 claudio Exp $

XCFLAGS	= -I../include
OBJS	= file.o
DFILES	= Makefile file.c oss_mix.c hpux.c bsd.c solaris.c oss_seq.c \
	  alsa_mix.c esd.c sgi.c os2_dart.c netbsd.c openbsd.c aix.c nas.c
DDIRS	=
LIB	= ../../lib/libxmp.a
CFILES	=
DCFILES	=
DRVDIR	= ../../lib/drivers

all: $(LIB) library

include ../../Makefile.rules

ifeq ($(strip $(DYNDRV)),)
library: $(LIB)($(DRIVERS))
else
library: $(DRIVERS:.o=.so)
	[ -d $(DRVDIR) ] || mkdir -p $(DRVDIR)
	$(INSTALL) -m644 $+ $(DRVDIR)
endif

esd.so: esd.o
	ld -shared -o $@ $+ -lesd
	
include depend
