⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 makefile

📁 The RT2500 device driver for linux system
💻
字号:
# Comment/uncomment the following line to enable/disable debugging

CC := cc

include ./config.mk

WFLAGS := -Wall -Wstrict-prototypes -Wno-trigraphs
CFLAGS := -D__KERNEL__ -I$(LINUX_SRC)/include -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=i686 -DMODULE -DMODVERSIONS -include $(LINUX_SRC)/include/linux/modversions.h $(WFLAGS)

OBJ = rt2500.o

all: $(OBJ)
	@touch config.mk

rt2500.o: rtmp_main.o mlme.o connect.o sync.o assoc.o auth.o auth_rsp.o rtmp_data.o rtmp_init.o sanity.o rtmp_wep.o rtmp_info.o eeprom.o rtmp_tkip.o wpa.o md5.o
	$(LD) -r $^ -o $@
		
clean:
	rm -f *.o *~ core

install:
	@touch config.mk
	#mkdir -p $(TARGET_MODDIR)
	echo $(TARGET_MODDIR)
	install $(OBJ) $(TARGET_MODDIR)
	
	@if [ ! -f /etc/sysconfig/network-scripts/ifcfg-ra0 ]; then \
		echo "Create 'ifcfg-ra0' in /etc/sysconfig/network-scripts/"; \
		cp ifcfg-ra0 /etc/sysconfig/network-scripts/ ; \
	fi
	@if ! grep 'ra0' /etc/modules.conf ; then \
		echo "append 'alias ra0 rt2500' to /etc/modules.conf"; \
		echo "alias ra0 rt2500" >> /etc/modules.conf ; \
	fi
	
config:
	@touch config.mk
	@./Configure

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -