📄 makefile
字号:
################################################################################## This file is subject to the terms and conditions of the GNU General Public# License. See the file "COPYING" in the main directory of this archive# for more details.## Copyright © 2004 Atheros Communications, Inc., All Rights Reserved.## Makefile for Atheros ar531x ethernet driver## Note! Dependencies are done automagically by 'make dep', which also# removes any old dependencies. DON'T put your own dependencies here# unless it's something special (ie not a .c file).################################################################################### Makefile for the Atheros ar531x ethernet driver#obj= .obj-m += ae531x.oae531x-objs := ae531xlnx.o ae531xmac.oexport-objs := ae531xlnx.olist-multi := ae531x.oifeq ($(CONFIG_KENDIN_ENET_PHY),y) ae531x-objs += rtPhy.oendififeq ($(CONFIG_KENDIN_KS8995XA_ENET_PHY),y) ae531x-objs += kendSwitchPhy.oendififeq ($(CONFIG_MARVELL_ENET_PHY),y) ae531x-objs += mvPhy.oendififeq ($(CONFIG_ICPLUS_ENET_PHY),y) ae531x-objs += ipPhy.oendififeq ($(CONFIG_ADMTEK_ENET_PHY),y) ae531x-objs += admPhy.oendif## If building directly into kernel#ifneq ($(MAKING_MODULES),1)obj-$(CONFIG_NET_ATHEROS_ETHER) := ae531x.o $(ae531x-objs)O_TARGET := ae531x.oendifINCS += -I.EXTRA_CFLAGS+=$(INCS) ${COPTS} -gifeq ($(DEBUG_BUILD),1)EXTRA_CFLAGS+=-DDEBUGendififeq ($(CONFIG_VLAN_ROUTER),y)EXTRA_CFLAGS+=-DCONFIG_VLAN_ROUTEREXTRA_CFLAGS+=-DCONFIG_VENETDEV_ATHendif# release tag versioning-include $(KERNELPATH)/ath_version.mk-include $(TOPDIR)/Rules.makeSTRIP= ${TOOLPREFIX}stripifndef MODPATHMODPATH = ${KERNELPATH}/arch/mips/ar531x/ROOTDISK/rootdir/lib/modules/${KERNELRELEASE}/endifall: $(MAKE) -C ${KERNELPATH} SUBDIRS=$(shell pwd) modulesinstall: all $(STRIP) -S ae531x.o# cp ae531x.o ${KERNELPATH}/arch/mips/ar531x/ROOTDISK/rootdir/lib/modules/$(strip $(shell head -n 1 $(KERNELPATH)/Makefile | cut -f 2 -d'=')).$(strip $(shell head -n 2 $(KERNELPATH)/Makefile | tail -1 | cut -f 2 -d'=')).$(strip $(shell head -n 3 $(KERNELPATH)/Makefile | tail -1 | cut -f 2 -d'='))${EXTRAVERSION}/net/. cp ae531x.o ${FS_PATH}/lib/modules/$(strip $(shell head -n 1 $(KERNELPATH)/Makefile | cut -f 2 -d'=')).$(strip $(shell head -n 2 $(KERNELPATH)/Makefile | tail -1 | cut -f 2 -d'=')).$(strip $(shell head -n 3 $(KERNELPATH)/Makefile | tail -1 | cut -f 2 -d'='))${EXTRAVERSION}/net/.clean: -rm -f *~ *.o *.ko *.mod.c -rm -f .version .*.o.flags .*.o.d .*.o.cmd .*.ko.cmdae531x.o : $(ae531x-objs) $(LD) -o ae531x.o -r $(ae531x-objs)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -