#
# Makefile for the A4 Tech AC4096 
#      and for the A4 Tech AS-8000P scanner driver
#


CFLAGS	= -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -pipe
CC	= gcc -D__KERNEL__ -DKERNEL_VERSION=\"$(shell uname -r)\"

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

OBJS	= ac4096.o as8000p.o

all:	$(OBJS)

config:
	@./configure

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

indent:
	for n in *.c;do echo indent $$n;indent $$n;done

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

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