Permalink
Browse files

Add image building and running to makefile

  • Loading branch information...
1 parent 748a2da commit 2cea1ba290114dd646364284b808854600be721a @ilkka committed Jan 13, 2012
Showing with 8 additions and 2 deletions.
  1. +8 −2 Makefile
View
@@ -14,15 +14,21 @@ CFLAGS=-m32 -nostdlib -nostdinc -fno-builtin -fno-stack-protector
LDFLAGS=-melf_i386 -Tlink.ld
ASFLAGS=-felf
-all: obj $(OBJS) link
+all: link image run
+
+image: link
+ ./update_image.sh
+
+run: image
+ ./run_bochs.sh
obj:
-mkdir obj
clean:
-rm *.o $(KERNEL)
-link: bin
+link: obj $(OBJS) bin
ld $(LDFLAGS) -o $(KERNEL) $(OBJS)
bin:

0 comments on commit 2cea1ba

Please sign in to comment.