Nyanix

Bootloader
Log | Files | Refs | LICENSE

Makefile (445B)


      1 as=nasm
      2 asflags=-fbin -O0
      3 
      4 target=bin/Nyanix
      5 entry=src/boot_early/boot.s
      6 
      7 .PHONY: all clean debug qemu install
      8 
      9 all: check clean install
     10 
     11 check:
     12 	@command -v nasm >/dev/null 2>&1 || { \
     13 		echo "nasm assembler not found"; \
     14 		echo "Abort"; \
     15 		exit 1; \
     16 	}
     17 
     18 clean:
     19 	rm -rf bin/*
     20 
     21 debug:
     22 	$(as) $(asflags) -g -o $(target) $(entry)
     23 
     24 qemu:
     25 	qemu-system-i386 -d guest_errors $(target)
     26 
     27 install:
     28 	mkdir -p bin
     29 	$(as) $(asflags) -o $(target) $(entry)
     30