makefile.4

来自「D-link 无线usb网卡的Linux无线网卡驱动程序」· 4 代码 · 共 47 行

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

CC := cc

include ./config.mk

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

rt73.o: 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
	   	
	$(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 + -
显示快捷键?