diff --git a/_posts/2015-07-22-rust-os-boot.md b/_posts/2015-07-22-rust-os-boot.md index 92363576..4f842755 100644 --- a/_posts/2015-07-22-rust-os-boot.md +++ b/_posts/2015-07-22-rust-os-boot.md @@ -264,6 +264,7 @@ build/arch/$(arch)/%.o: src/arch/$(arch)/%.asm @nasm -felf64 $< -o $@ ``` Some comments (see the [Makefile tutorial] if you don't know `make`): + - the `$(wildcard src/arch/$(arch)/*.asm)` chooses all assembly files in the src/arch/$(arch)` directory, so you don't have to update the Makefile when you add a file - the `patsubst` operation for `assembly_object_files` just translates `src/arch/$(arch)/XYZ.asm` to `build/arch/$(arch)/XYZ.o` - the `$<` and `$@` in the assembly target are [automatic variables]