# Makefile for the Linux sound card driver
#
# Note 2! The CFLAGS definitions are now inherited from the
# parent makes. (hopefully)
#
#

VERSION		= 2.4
TARGET_OS	= linux

.c.s:
	$(CC) $(CFLAGS) -S $<
.s.o:
	$(AS) -c -o $*.o $<
.c.o:
	$(CC) $(CFLAGS) -c $<

OBJS   = pcmcia.o
SRCS   = pcmcia.c

ifdef CONFIG_I82365
OBJS := $(OBJS) i82365.o
SRCS := $(SRCS) i82365.c
endif

all:	pcmcia.a

pcmcia.a: $(OBJS) 
	$(AR) rcs pcmcia.a $(OBJS)
	sync

dep:
	$(CPP) -M $(SRCS) > .depend

clean:
	rm -f core core.* *.o *.a tmp_make *~
	for i in *.c;do rm -f `basename $$i .c`.s;done

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

