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

📄 makefile

📁 marvell cf wifi driver source code CF-8385-linux-x86-5.0.4.p0-132-src.rar
💻
字号:
#	File	: Makefile

PROJECT=	mcf25
KERNELDIR=	/usr/src/linux
BACKUP=		/root/backup
YMD=		`date +%Y%m%d%H%M`

# Start of user configuration
CONFIG_DEBUG=n
# More debug?
CONFIG_DEBUGALL=n

# End of user configuration

include	$(KERNELDIR)/.config

CFLAGS += -DMFG_TOOLS
CFLAGS +=  -D__KERNEL__ -DMODULE

ifeq ($(CONFIG_DEBUG),y)
   CFLAGS += -DDEBUG
endif


ifeq ($(CONFIG_DEBUGALL),y)
   CFLAGS += -DDEBUG_ALL
endif

ifdef CONFIG_SMP
 CFLAGS += -D__SMP__ -DSMP
endif

CFLAGS		+= -I$(KERNELDIR)/include -I$(shell pwd)/../../io/mcf \
			-I$(shell pwd)/../../wlan \
			-I$(shell pwd)/../../os/linux -I. \
			-O2 -Wall -Wstrict-prototypes

ALL=		if_cf83xx.o

CFOBJS=		if_cf.o

all:		$(ALL)
		@echo "Finished making mcf25 driver..."

build:		$(ALL)
		@if [ ! -d ../../build ]; then \
			mkdir ../../build; \
		fi

if_cf83xx.o:	$(CFOBJS)	
		$(LD) -r $^ -o $@

newlogs:
		killall -9 syslogd klogd
		rm -f /var/log/messages /var/log/debug /var/log/syslog
		sleep 1
		/etc/rc.d/rc.syslog start

tags:		removetags
		ctags -R *.[ch] ../mspio/*.[ch] $(KERNELDIR)/include

removetags:
		rm -f tags

backup:		clean
		tar cfz $(BACKUP)/$(PROJECT)-0.0-$(YMD).tgz *.[ch] Makefile 

clean:
		rm -f *.o *~ core

⌨️ 快捷键说明

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