makefile

来自「atheros ar531x watchdog driver」· 代码 · 共 42 行

TXT
42
字号
## Makefile for Atheros AR531X watchdog.## 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).## Note 2! The CFLAGS definitions are now in the main makefile...obj= .obj-m			 += ar531x-wdt.oar531xwdt-objs		 := ar531x-wdt.oexport-objs		 := ar531x-wdt.olist-multi		 := ar531x-wdt.oINCS += -I.EXTRA_CFLAGS+=$(INCS) ${COPTS}# release tag versioning-include $(KERNELPATH)/ath_version.mk-include $(TOPDIR)/Rules.makeSTRIP=	${TOOLPREFIX}stripifndef MODPATHMODPATH = ${KERNELPATH}/arch/mips/ar531x/RAMDISK/rootdir/lib/modules/${KERNELRELEASE}/endifall:	$(MAKE)	-C ${KERNELPATH} SUBDIRS=$(shell pwd) modulesinstall: all	$(STRIP) -S ar531x-wdt.o#	cp ar531x-wdt.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}/misc/.	cp ar531x-wdt.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}/misc/.clean:	-rm -f *~ *.o *.ko *.mod.c	-rm -f .version .*.o.flags .*.o.d .*.o.cmd .*.ko.cmd

⌨️ 快捷键说明

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