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

📄 makefile

📁 Linux下操作Bios的驱动
💻
字号:
CC	=	gccLD	=	ldKERNEL	=	/usr/src/linux#KERNEL  =	/lib/modules/`uname -r`/buildCFLAGS	=	-D__KERNEL__ -I${KERNEL}/include  \		-Wall -Wstrict-prototypes -Wno-trigraphs -O2 \		-fomit-frame-pointer -fno-common -DMODULE \		-DDEBUGARCH	=	$(shell uname -m | sed -e s/i.86/i386/ -e s/sun4u/sparc64/)ifeq ($(ARCH),alpha)CFLAGS	+=	-pipe -mno-fp-regs -ffixed-8 -Wno-uninitialized -mcpu=ev5 -Wa,-mev6LDFLAGS =	-m elf64alphaendififeq ($(ARCH),sparc64)CFLAGS	+=	-pipe -mno-fpu -mtune=ultrasparc -mmedlow \		-ffixed-g4 -fcall-used-g5 -fcall-used-g7 -Wno-sign-compareLDFLAGS	=	-m elf_sparc endififeq ($(ARCH),i386)CFLAGS	+=	-pipe -mpreferred-stack-boundary=2 -march=i686 LDFLAGS +=	-m elf_i386endififeq ($(ARCH),ia64)LDFLAGS +=      -m elf64_ia64endif.SUFFIXES: .o .c .h# INCLUDES	+=	-I./includeTARGET	=	bios.oOBJS	=	bios_core.o flashchips.o pcisets.o filesystem.o procfs.o programming.oall: $(TARGET) comp$(TARGET): $(OBJS)	$(LD) $(LDFLAGS) -r -o $(TARGET) $(OBJS)clean:	-rm -f $(TARGET) $(OBJS) comp *.o.c.o:	$(CC) $(INCLUDES) -c $(INCDIRS) $(CFLAGS) $(X_CFLAGS) $(DEBUGFLAGS) $*.c -o $@comp:	comp.c	$(CC) comp.c -O2 -o comp	strip comp

⌨️ 快捷键说明

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