From bc67731f82cd6cebaf51529e9610bacb1a7c07ef Mon Sep 17 00:00:00 2001 From: Andreas Bauman Date: Thu, 5 Apr 2018 16:00:25 +0200 Subject: tested on old OS X 10.8 with Macports --- src/Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/Makefile b/src/Makefile index 0817887..96acb38 100644 --- a/src/Makefile +++ b/src/Makefile @@ -9,6 +9,7 @@ NASMFLAGS := -f elf32 NASM := nasm OBJCOPY := objcopy MAGIC := $(shell printf '%x' `date +%s`) +TRUNCATE := truncate all: image.bin kernel.sym @@ -23,9 +24,9 @@ all: image.bin kernel.sym # on the size of the image) image.bin: boot.bin kernel.bin magic.bin cat boot.bin kernel.bin > image.tmp - truncate -s 89088 image.tmp + $(TRUNCATE) -s 89088 image.tmp cat image.tmp magic.bin > image.bin - truncate -s 1474560 image.bin + $(TRUNATE) -s 1474560 image.bin boot.bin: boot/boot.asm boot/boot_gdt.asm boot/stage1_functions.asm boot/stage2_real_functions.asm boot/stage2_pm_functions.asm boot/stage2_switch_mode.asm boot/stage2_a20.asm $(NASM) boot/boot.asm -DMAGIC='"$(MAGIC)"' -f bin -o boot.bin -- cgit v1.2.3-54-g00ecf