📄 makefile
字号:
####################################################################### Module Name: Makefile# Abstract: Makefile for rt73 linux driver on kernel series 2.6 ######################################################################WFLAGS := -Wall -Wstrict-prototypes -Wno-trigraphs## Comment/uncomment the following line to enable/disable debugging#CFLAGS += -DDBGCFLAGS += $(WFLAGS)obj-m := rt73.ort73-objs := rtmp_main.o mlme.o connect.o rtusb_bulk.o rtusb_io.o sync.o assoc.o auth.o auth_rsp.o rtusb_data.o rtmp_init.o sanity.o rtmp_wep.o rtmp_info.o rtmp_tkip.o wpa.o md5.o## Configuration files on SuSE#NDDIR=/etc/sysconfig/network#MOD_CONF=/etc/modprobe.d/module-renames## NDDIR/ifcfg-rausb0ND_CONF=/etc/sysconfig/network-scripts/ifcfg-rausb0ifdef NDDIR NDDIR := $(NDDIR)else NDDIR := /etc/sysconfig/network-scriptsendififdef MOD_CONF MOD_CONF := $(MOD_CONF) else MOD_CONF := /etc/modprobe.conf endifall: make -C /home/maji/cur_working/uClinux-dist/linux-2.6.x SUBDIRS=$(shell pwd) MODVERDIR=$(shell pwd)/${SYMBOLSDIR} modules## make -C /lib/modules/$(shell uname -r)/build SUBDIRS=$(shell pwd) modulesclean: rm -rf *.o *~ .*.cmd *.ko *.mod.c .tmp_versions built-in.o install: make -C /lib/modules/$(shell uname -r)/build \ INSTALL_MOD_DIR=extra SUBDIRS=$(shell pwd) \ modules_install @echo "Network device directory $(NDDIR)"; @echo "Module configuration file $(MOD_CONF)"; @if [ -d "$(NDDIR)" ] ; then \ if [ ! -f "$(ND_CONF)" ]; then \ echo "Create 'ifcfg-rausb0' in $(NDDIR)/"; \ cp ifcfg-rausb0 $(NDDIR)/ ; \ fi; \ fi @if ! grep -q 'rausb0' $(MOD_CONF) ; then \ echo "append 'alias rausb0 rt73' to $(MOD_CONF)"; \ echo "alias rausb0 rt73" >> $(MOD_CONF) ; \ fi /sbin/depmod -a
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -