greetings,
i have been trying to get the imm driver for the Zip plus drive to compile
the error message I get after I unpack it (no matter where) is

Makefile:15:/usr/src/linux/.config:No such file or directory
Makefile:16:/usr/src/linux/arch/i386:No such file or directory
Makefile:17:/usr/src/linux/Rules.make:No such file or directory
Makefile:39:***missing separator.  Stop.

I am running RedHat 5.2, I can't seem to find what the makefile wants in my
/usr/src dir, i tried changing the makefile to fit, and copying the seemingly
correct dirs to what the makefile asked for, but to no avail
any suggestions?

following is a copy of the makefile

thanks
andrew

TOPDIR       := /usr/src/linux
HPATH        := $(TOPDIR)/include
ARCH         := $(shell uname -m | sed s/i.86/i386/)
MAJOR        := $(shell uname -r | cut -d'.' -f1)
MINOR        := $(shell uname -r | cut -d'.' -f2)
IMM_DIR       := $(shell echo -n 'imm_' ; pwd | cut -d '_' --fields="2,3")
IMM_VER       := $(shell echo -n 'imm0' ; pwd | cut -d '_' --fields="2,3" |sed s,_,,g)

ifdef WINBOND
all:    imm_w.o
else
all:    imm.o
endif

include $(TOPDIR)/.config
include $(TOPDIR)/arch/$(ARCH)/Makefile
include $(TOPDIR)/Rules.make

MODFLAGS = -DMODULE
ifdef CONFIG_MODULES
ifdef CONFIG_MODVERSIONS
MODFLAGS += -DMODVERSIONS -include $(HPATH)/linux/modversions.h
endif
ifdef WINBOND
EXTRA_CFLAGS := $(MODFLAGS)\
                -Wall -O2\
                -D__KERNEL__=1 -DIMM_WINBOND=1\
                -I/usr/src/linux/include\
                -I/usr/src/linux/drivers/scsi
else
EXTRA_CFLAGS := $(MODFLAGS)\
                -Wall -O2\
                -D__KERNEL__=1\
                -I/usr/src/linux/include\
                -I/usr/src/linux/drivers/scsi
endif
else
imm.o:
        @echo "You need to specify MODULES in your kernel configuration"
endif

imm_w.c:
        ln -sf imm.c imm_w.c

dist:
        make clean
        cd .. && tar cvzf $(IMM_VER).tgz $(IMM_DIR)
 
clean:
        rm -f *.o *~ *log* .*flag* imm_w.c

Reply via email to