makefile

来自「marvell cf wifi driver source code CF-8」· 代码 · 共 71 行

TXT
71
字号
#	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 + =
减小字号Ctrl + -
显示快捷键?