makefile.4

来自「台湾RALink公司的 rt2570无线 802.11g 网卡的 驱动的源代码 」· 4 代码 · 共 30 行

4
30
字号
# Comment/uncomment the following line to enable/disable debugging

CC := cc

include ./config.mk

WFLAGS := -Wall -Wstrict-prototypes -Wno-trigraphs
CFLAGS := -DRT2500_DBG -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 = rt2570.o
 
all: $(OBJ)
	@touch config.mk

rt2570.o: rtusb_main.o mlme.o connect.o rtusb_bulk.o rtusb_io.o sync.o assoc.o auth.o auth_rsp.o rtusb_data.o rtusb_init.o sanity.o rtmp_wep.o rtusb_info.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)
	
config:
	@touch config.mk
	@./Configure

⌨️ 快捷键说明

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