Skip to content

Commit

Permalink
Restructued project
Browse files Browse the repository at this point in the history
  • Loading branch information
IPlayZed committed Aug 29, 2021
1 parent 91ac49d commit 2d4ab8f
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
*.o
*.bin

*.kate-swp
1 change: 1 addition & 0 deletions out/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
!./.gitignore
7 changes: 5 additions & 2 deletions Makefile → src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,14 @@ objectfiles = loader.o kernel.o
# The rule to compile object files from kernel files.
%.o: %.cpp
g++ ${GPP_PARAMS} -o $@ -c $<
mv $@ ../out
%.o: %.s
as ${AS_PARAMS} -o $@ $<

mv $o ../out

mykernel.bin: linker.ld ${objectfiles}
ld ${LD_PARAMS} -T $< -o $@ ${objectfiles}

mv $o ../out

install: mykernel.bin
sudo cp $< /boot/mykernel.bin
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 2d4ab8f

Please sign in to comment.