?? makefile.64
字號:
OBJS= ../x86-64/start.o data.o disk.o main.oBOOTOBJS= boot.oCFLAGS= -ffreestanding -Os -Wall -I../include -march=x86-64LDFLAGS= -L../stand -lstand -L../x86-64 -lx86-64ASFLAGS= -I../includeinclude ../mk.64scraper.bin: boot.bin usb.bin /bin/rm -fr scraper.bin cat boot.bin >> scraper.bin cat usb.bin >> scraper.bin# We use dd(1) to write the scraper utility directly to a disk# device. Most disks must be written in multiples of their sector# size, which is typically 512. In order to make sure the last 512# bytes is written out, we want to append an extra 512 bytes just# in case our binary image is not exactly a multiple of 512 bytes# in size. We know that the boot block image is exactly 512 bytes,# so we stick an extra copy at the end as padding. cat boot.bin >> scraper.binboot.bin: $(BOOTOBJS) $(LD) -Bstatic -Tlink_boot.lds -o boot $(BOOTOBJS) $(OBJCOPY) -O binary boot boot.binusb.bin: $(OBJS) $(LD) -Bstatic -Tlink_usb.lds -o usb $(OBJS) $(LDFLAGS) $(OBJCOPY) -O binary usb usb.binclean: /bin/rm -f *.o usb usb.bin boot boot.bin scraper scraper.bin
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -