Linux/MakeFile.txt Driver File Contents (SP128AR_linux.zip)

Driver Package File Name: SP128AR_linux.zip
File Size: 7.4 KB

new vid/pid for Micronet SP128AR
------------------------------------------------------------------------

CC	= gcc
LD	= ld

KERN_VER= `uname -r`
LNX_SRC = /lib/modules/$(KERN_VER)/build

CFLAGS	= -Wp,-MD,.$(*F).d -D__KERNEL__ -I$(LNX_SRC)/include -Wall	\
	-Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing	\
	-fno-common -pipe -mpreferred-stack-boundary=2 -march=pentium3	\
	-I$(LNX_SRC)/include/asm-i386/mach-default -fomit-frame-pointer	\
	-nostdinc -iwithprefix include -DMODULE   -DKBUILD_BASENAME=$(*F)\
	-DKBUILD_MODNAME=$(*F)

LDFLAGS	= -r

all: rtl8150.ko

rtl8150.ko: rtl8150.o
	$(LD) $(LDFLAGS) -o $@ $<

dep_files := $(wildcard .*.d)
ifneq ($(dep_files), )
	include $(dep_files)
endif

rtl8150.o:	rtl8150.c
	$(CC) $(CFLAGS) -c $<

zap: clean
	rm -f `find . -name '*.[o]'`
	rm -f `find . -name .*.d`

clean:
	rm -f *.o *.s *.ko

server: web1, load: 0.99