📄 makefile
字号:
#### Filename: makefile##############################################################################include ../../../../../prolog.makinclude $(MAKEINC)/config.makAPP_OBJS= \$(BUILDBASE)/common/$(APPLICATION)/$(APPLICATION)all.oOSAL_OBJS = \$(BUILDBASE)/os/$(OS)/osal.o BSP_OBJS = \ ../bsp/bsp.o \ ../../hal/oshal.o ################################################################################ Links the final output binary. Note we ignore object dependencies,## linking regardless. This saves fooling around identifying## component object files- the link phase is fast anyway. The object## module dependencies work like they should.F_RELOC = example-rtemsF_BIN = rtemsF_BOOT = rtems-bootmakeexecimage: $(RTEMSLINK) -o $(F_RELOC) -Wl,-Map -Wl,$(F_RELOC).map $(APP_OBJS) $(OSAL_OBJS) $(BSP_OBJS) $(LIBS) $(OBJCOPY) -S -g -R .bss_os_global_data_noclear -R .bss -R .sbss -R .stack_heap -O srec $(F_RELOC) $(F_RELOC).s3r $(NM) -g -n $(F_RELOC) > $(F_RELOC).num $(SIZE) $(F_RELOC) > $(F_RELOC).size $(OBJDUMP) --syms $(F_RELOC) | sort > $(F_RELOC).symbols $(CHMOD) 664 $(F_RELOC) $(OBJCOPY) $(F_RELOC) $(F_BIN) -O binary -R .comment -S $(GZIP) -vf9 $(F_BIN) $(LINKER) -o $(F_BOOT) $(BSP_LIBDIR)/bootloader.o --just-symbols=$(F_RELOC) -b binary $(F_BIN).gz -T $(BSP_LIBDIR)/ppcboot.lds -Map $(F_BOOT).map $(CHMOD) 664 $(F_BOOT)# $(CP) $(F_BOOT) /var/tftp/rtems-boot.$(PROC)clean: rm -f $(F_RELOC).* rm -f $(F_RELOC) rm -f $(F_BIN).gz rm -f $(F_BOOT) rm -f $(F_BOOT).map
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -