Skip to content
This repository has been archived by the owner on Dec 30, 2022. It is now read-only.

Commit

Permalink
Hotfix: Add missing target
Browse files Browse the repository at this point in the history
recipe for making main.o was missing
  • Loading branch information
noriyotcp committed Jan 7, 2017
1 parent 229a5f5 commit b07e5fa
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ test:
@crystal spec -v

clean:
@rm -r build
@rm -r build/ target/

run: $(iso)
@qemu-system-x86_64 -cdrom $(iso)
Expand All @@ -53,11 +53,13 @@ $(iso): $(kernel) $(grub_cfg)

$(kernel): $(assembly_object_files) $(crystal_os) $(linker_script) $(crystal_files) $(libcr)
@echo Creating $@...
@ld -n -nostdlib -melf_x86_64 --gc-sections --build-id=none -T $(linker_script) -o $@ $(assembly_object_files) $(crystal_os) $(libcr)

$(crystal_os): $(crystal_files)
@mkdir -p $(shell dirname $(crystal_os))
@crystal build src/main.cr --target=$(target) --prelude=empty --emit=obj --verbose
@rm main
@mv -f main.o target/$(target)/debug/
@ld -n -nostdlib -melf_x86_64 --gc-sections --build-id=none -T $(linker_script) -o $@ $(assembly_object_files) $(crystal_os) $(libcr)

build/arch/$(arch)/%.o: src/arch/$(arch)/%.asm
@mkdir -p $(shell dirname $@)
Expand Down

0 comments on commit b07e5fa

Please sign in to comment.