Supply UEFI module path as environment variable
[rrq/jonasforth.git] / Makefile
index ff474b0b073405bea8aa8a32171a7cdda2fbd61a..362c429255dcef90992572cfe584f70047864f6c 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -14,9 +14,9 @@ OVMF_CODE.fd: /usr/share/ovmf/x64/OVMF_CODE.fd
 OVMF_VARS.fd: /usr/share/ovmf/x64/OVMF_VARS.fd
        cp $< $@
 
-out/main: main.asm impl.asm bootstrap.asm sys.f uefi.asm
+out/main: main.asm impl.asm bootstrap.asm sys.f os/uefi.asm
        mkdir -p out
-       fasm $< out/main
+       OS_INCLUDE=os/uefi.asm fasm $< $@
 
 .PHONY: clean
 clean: