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

include ../../Makefile.conf

TARGET=libpcm.a
OBJECTS=pcm.o

.c.o:
	$(CC) $(COPTS) $(INCLUDE) -c -o $*.o $<

all: $(TARGET)	

$(TARGET): .depend $(OBJECTS)
	$(LINKER) -r -o $@ $(OBJECTS)

clean:
	rm -f core .depend *.o *.a *.orig *~

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

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