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

📄 makefile

📁 操作系统试验!通过这个试验
💻
字号:
# This Makefile builds Project 1MAKE = makeCC = gccCFLAGS = -nostdinc -fno-strict-aliasing -fno-builtin -gstabs+ -Wall -WerrorLD = ldLDFLAGS = -static -Ttext 100000LIBS = ./libINCLUDES = -I./inc -I./lib/inc## List object files that will be linked into the kernel binary here.#OBJS = console.o kernel_init.o%.o: Makefile %.s	$(CC) -c -g2 -o $(*F).o $(CFLAGS) $(INCLUDES) $(*F).s%.o: Makefile %.S	$(CC) -c -g2 -o $(*F).o $(CFLAGS) $(INCLUDES) $(*F).S%.o: Makefile %.c	$(CC) -c -g2 -o $(*F).o $(CFLAGS) $(INCLUDES) $(*F).c.PHONY:dualall: 	cd lib; $(MAKE)	$(MAKE) kernel	$(MAKE) test	$(MAKE) mytestkernel: Makefile kernel.o $(OBJS)	$(LD) $(LDFLAGS) -L$(LIBS) -o kernel  \	$(LIBS)/Multi_Boot.o kernel.o $(OBJS)   \	-llmm -lstdio -lstdlib -lstring -lx86 -ldebug	echo "drive k: file=\"$(PWD)/bootfd.img\" " > $(HOME)/.mtoolsrc	mcopy -o kernel K:/boot/test: Makefile _test.o $(OBJS)	$(LD) $(LDFLAGS) -L$(LIBS) -o _test  \	$(LIBS)/Multi_Boot.o _test.o $(OBJS)   \	-llmm -lstdio -lstdlib -lstring -lx86 -ldebug	echo "drive k: file=\"$(PWD)/bootfd.img\" " > $(HOME)/.mtoolsrc	mcopy -o _test K:/boot/_test	echo "drive k: file=\"$(PWD)/bootfd.img\" " > $(HOME)/.mtoolsrc	mcopy -o debug K:/boot/debug    mytest: Makefile mytest.o $(OBJS)	$(LD) $(LDFLAGS) -L$(LIBS) -o mytest  \	$(LIBS)/Multi_Boot.o mytest.o $(OBJS)   \	-llmm -lstdio -lstdlib -lstring -lx86 -ldebug	echo "drive k: file=\"$(PWD)/bootfd.img\" " > $(HOME)/.mtoolsrc	mcopy -o mytest K:/boot/mytestdeepclean:	rm -f *.o *.d *.gdb _test kernel mytest kernel.log ints.log	cd lib; $(MAKE) cleanclean:	rm -f *.o *.d *.gdb kernel _test mytest kernel.log ints.log

⌨️ 快捷键说明

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