makefile.64

来自「this is aes algorithm」· 64 代码 · 共 35 行

64
35
字号
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

⌨️ 快捷键说明

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