makefrag

来自「jos lab3代码」· 代码 · 共 33 行

TXT
33
字号
## Makefile fragment for the JOS kernel.# This is NOT a complete makefile;# you must run GNU make in the top-level directory# where the GNUmakefile is located.#OBJDIRS += bootBOOT_OBJS := $(OBJDIR)/boot/boot.o $(OBJDIR)/boot/main.o$(OBJDIR)/boot/%.o: boot/%.c	@echo + cc -Os $<	@mkdir -p $(@D)	$(V)$(CC) -nostdinc $(KERN_CFLAGS) -Os -c -o $@ $<$(OBJDIR)/boot/%.o: boot/%.S	@echo + as $<	@mkdir -p $(@D)	$(V)$(CC) -nostdinc $(KERN_CFLAGS) -c -o $@ $<$(OBJDIR)/boot/main.o: boot/main.c	@echo + cc -Os $<	$(V)$(CC) -nostdinc $(KERN_CFLAGS) -Os -c -o $(OBJDIR)/boot/main.o boot/main.c$(OBJDIR)/boot/boot: $(BOOT_OBJS)	@echo + ld boot/boot	$(V)$(LD) $(LDFLAGS) -N -e start -Ttext 0x7C00 -o $@.out $^	$(V)$(OBJDUMP) -S $@.out >$@.asm	$(V)$(OBJCOPY) -S -O binary $@.out $@	$(V)perl boot/sign.pl $(OBJDIR)/boot/boot

⌨️ 快捷键说明

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