Improve build transparency (documentation and inline version number)

This commit is contained in:
Nero 2020-09-17 08:59:22 +00:00
parent e1bfaa5d88
commit 1d64c2364d
3 changed files with 27 additions and 4 deletions

View file

@ -2,12 +2,13 @@ PROGRAMS = hello.com
DISTFILES = $(PROGRAMS)
ROMS =
QEMU_ARCH = $(shell uname -m)
QEMU = qemu-system-$(QEMU_ARCH)
QEMU = qemu-system-i386
QEMU_ARGS = $(addprefix --option-rom ,$(ROMS))
VERSION = $(shell git log -1 --format=%cd --date=format:%Y%m%d)
NASM = nasm
NASM_ARGS = -s -Ilib
NASM_ARGS = -s -Ilib -DVERSION=$(VERSION)
KVM = $(shell test -w /dev/kvm && echo 1)