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

Commit

Permalink
Refactoring
Browse files Browse the repository at this point in the history
Change file names, directory structure and Makefile
  • Loading branch information
noriyotcp committed Jan 7, 2017
1 parent 2ab63aa commit 229a5f5
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ $(kernel): $(assembly_object_files) $(crystal_os) $(linker_script) $(crystal_fil
@echo Creating $@...
@mkdir -p $(shell dirname $(crystal_os))
@crystal build src/main.cr --target=$(target) --prelude=empty --emit=obj --verbose
@mv -f main.o main target/$(target)/debug/
@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
Expand Down
4 changes: 2 additions & 2 deletions spec/libcr_spec.cr → spec/lib_cr/string_spec.cr
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
# option. This file may not be copied, modified, or distributed
# except according to those terms.

require "./spec_helper"
require "../src/lib_cr/libcr"
require "../spec_helper"
require "../../src/lib_cr/string"

describe "LibCR" do
context "memcmp" do
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion src/main.cr
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
# except according to those terms.

require "./arch/x86_64/scrn"
require "./lib_cr/libcr"
require "./lib_cr/string"

puts
puts "Hello World from Crystal!!!"
Expand Down

0 comments on commit 229a5f5

Please sign in to comment.