All pastes #276402 Raw Edit

Untitled

public text v1 · immutable
·published 2006-12-12 08:44 UTC
rendered paste body
dean@subspace:~/stuff/sqcam26$ ./Makefile 
./Makefile: line 4: MODULE_NAME: command not found
./Makefile: line 7: KERNEL_DIR: command not found
./Makefile: line 9: sqcam-objs: command not found
./Makefile: line 11: obj-m: command not found
./Makefile: line 17: EXTRA_CFLAGS: command not found
./Makefile: line 19: EXTRA_LDFLAGS: command not found
./Makefile: line 21: module:: command not found
./Makefile: line 22: KERNEL_DIR: command not found
./Makefile: line 22: PWD: command not found
make: *** SUBDIRS=: No such file or directory.  Stop.
./Makefile: line 24: sq905.o: command not found
./Makefile: line 26: gamma.h: command not found
./Makefile: line 29: makegamma: command not found
./Makefile: line 32: install:: command not found
cp: cannot stat `sqcam.ko': No such file or directory

# makefile for sq905 for 2.6 kernels
#

MODULE_NAME := sqcam

#KERNEL_DIR := /usr/src/linux/
KERNEL_DIR := /usr/src/linux-headers-2.6.17-10-386

sqcam-objs := sq905.o

obj-m += sqcam.o

# The function remap_page_range has been replaced with remap_pfn_range in
# kernel versions >=2.6.10, define HAS_REMAP_PAGE_RANGE if you need the
# driver to use the old function.
#EXTRA_CFLAGS += -Wall -DSQCAM_DEBUG -DHAS_REMAP_PAGE_RANGE
EXTRA_CFLAGS += -Wall -Dremap_pfn_range

EXTRA_LDFLAGS := -d

module:
        make -C $(KERNEL_DIR) SUBDIRS=$(PWD) modules

sq905.o : gamma.h

gamma.h : makegamma
        ./makegamma

makegamma : makegamma.c
        gcc -std=c99 -o makegamma -lm makegamma.c

install:
        cp sqcam.ko /lib/modules/`uname -r`/kernel/drivers/usb/media

clean:
        rm -f sqcam.o sq905.o sqcam.ko sqcam.mod.* .sq*.cmd