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

📄 makefile.24

📁 open source bios with linux platform, very good and can be reused.
💻 24
字号:
CC	=	gccLD	=	ldKERNEL	=	/usr/src/linux#KERNEL	=	/lib/modules/`uname -r`/buildARCH	=	$(shell uname -m | sed -e s/i.86/i386/ -e s/sun4u/sparc64/)ifeq ($(KERNEL)/.config,$(wildcard $(KERNEL)/.config))include $(KERNEL)/.configendifCFLAGS	=	-D__KERNEL__ -I${KERNEL}/include  -Wall	\		-Wstrict-prototypes -Wno-trigraphs -O2	\		-fomit-frame-pointer -fno-common	\		-fno-strict-aliasing -pipe -DMODULE# comment this if you don't want debugging informationCFLAGS += -DDEBUG# see if we need module versionsifdef CONFIG_MODVERSIONSCFLAGS += -DMODVERSIONSendififeq ($(ARCH),alpha)CFLAGS	+=	-mno-fp-regs -ffixed-8 -mcpu=ev5 -Wa,-mev6LDFLAGS  =	-m elf64alphaendififeq ($(ARCH),sparc64)CFLAGS	+=	-mno-fpu -mtune=ultrasparc -mmedlow -ffixed-g4 \		-fcall-used-g5 -fcall-used-g7LDFLAGS	 =	-m elf_sparc64endififeq ($(ARCH),i386)CFLAGS	+=	-mpreferred-stack-boundary=2 -march=i586LDFLAGS  =	-m elf_i386endififeq ($(ARCH), x86_64)CFLAGS	+=	-mno-red-zone -mcmodel=kernel -fno-reorder-blocks \		-finline-limit=2000 -fno-strength-reduce LDFLAGS	 =	-m elf_x86_64endififeq ($(ARCH),ia64)CFLAGS  +=	-ffixed-r13 -mfixed-range=f10-f15,f32-f127 \		-falign-functions=32LDFLAGS  =      -m elf64_ia64endif.SUFFIXES: .o .c .hTARGET	=	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 compbios_core.o:	bios_core.c bios.h pcisets.h flashchips.h programming.hfilesystem.o:	filesystem.c bios.h pcisets.h flashchips.h programming.hflashchips.o:	flashchips.c bios.h flashchips.hpcisets.o:	pcisets.c bios.h pcisets.h flashchips.h programming.hprocfs.o:	procfs.c bios.h pcisets.h flashchips.h programming.hprogramming.o:	programming.c bios.h pcisets.h flashchips.h programming.h

⌨️ 快捷键说明

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