head	1.2;
access;
symbols
	dev:1.1.1.1 start:1.1.1;
locks; strict;
comment	@# @;


1.2
date	2006.06.02.09.22.34;	author kaurikim;	state Exp;
branches;
next	1.1;

1.1
date	2006.05.30.11.44.30;	author kaurikim;	state Exp;
branches
	1.1.1.1;
next	;

1.1.1.1
date	2006.05.30.11.44.30;	author kaurikim;	state Exp;
branches;
next	;


desc
@@


1.2
log
@fixed a lot
@
text
@
# Optional: Enable driver debugging
DEFINES   += -DSPCA50X_ENABLE_DEBUG


###
# The following flags enable features that aren't yet implemented, and
# therefore are disabled by default.

# Optional: Enable compression
DEFINES   += -DSPCA50X_ENABLE_COMPRESSION

###
# Rest of Makefile follows here. You probably won't need to touch this.

# Setup defines
DEFINES   += -DCONFIG_USB_SPCA5XX_MODULE=1 -DMODULE -D__KERNEL__
DEFINES   += -DVID_HARDWARE_SPCA5XX=0xFF -DSPCA4ZC_VERSION=\"$(VERSION)\"

ifneq ($(shell uname -r | cut -d. -f1,2), 2.4)

ifneq ($(KERNELRELEASE),)   # We were called by kbuild
CFLAGS += $(DEFINES) 
obj-m += spca4zc.o
spca4zc-objs := spca5xx_main.o spcadecoder.o spca_isoc.o spca_mem.o spca_v4l.o spca_mode.o zc3xx_reg.o

else   # We were called from command line

KERNEL_VERSION = `uname -r`
KERNELDIR := /lib/modules/$(KERNEL_VERSION)/build
PWD  := $(shell pwd)
MODULE_INSTALLDIR = /lib/modules/$(KERNEL_VERSION)/kernel/drivers/usb/media/

# Targets, don't change!
default:
	@@echo '   Building SPCA5XX driver for 2.5/2.6 kernel.'
	@@echo '   Remember: you must have read/write access to your kernel source tree.'
	$(MAKE) -C $(KERNELDIR) SUBDIRS=$(PWD) CC=$(CC) modules

install:
	mkdir -p $(MODULE_INSTALLDIR)
	rm -f $(MODULE_INSTALLDIR)spca4zc.ko
	rm -f $(MODULE_INSTALLDIR)spca50x.ko
	rm -f $(MODULE_INSTALLDIR)spca5xx.ko
	rm -f $(MODULE_INSTALLDIR)zc030x.ko
	rm -f $(MODULE_INSTALLDIR)et61x.ko
	install -c -m 0644 spca4zc.ko $(MODULE_INSTALLDIR)
	/sbin/depmod -ae

uninstall:
	rm -f $(MODULE_INSTALLDIR)/spca4zc.ko
	/sbin/depmod -aq

endif

else   # kernel version test
endif  # End kernel version test


############################################################################## 
# OTHER TARGETS 
##############################################################################
clean:
	rm -r -f *.o .spca* .zc3xx*  *.o *.ko *.mod.* .[a-z]* core *.i
	
############################################################################## 
@


1.1
log
@Initial revision
@
text
@a1 5
###
# The following flags enable experimental features.
# By default, these are enabled for development versions of the driver, and
# disabled for release versions.

a4 8
# Optional: Enable some experimental brightness control on internal CCD
# DEFINES   += -DSPCA50X_ENABLE_EXP_BRIGHTNESS

# Optional: Enable some miscellaneous experimental code
# DEFINES   += -DSPCA50X_ENABLE_EXPERIMENTAL

# Optional: Enable direct register read/write for PAC207 development
#DEFINES   += -DSPCA5XX_ENABLE_REGISTERPLAY
d18 1
a18 1
DEFINES   += -DVID_HARDWARE_SPCA5XX=0xFF -DSPCA5XX_VERSION=\"$(VERSION)\"
d42 1
@


1.1.1.1
log
@linux usb webcam device driver for zc3xx
@
text
@@
