Subversion Repositories HelenOS-historic

Rev

Rev 642 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 642 Rev 643
Line 1... Line 1...
1
.PHONY=build clean
1
.PHONY=build clean
2
 
2
 
3
ROOT=distroot
3
ROOT=distroot
4
BASE=$(shell cd ../../..; pwd)
4
BASE=$(shell cd ../../..; pwd)
5
KERNELDIR=$(BASE)/kernel
5
KERNELDIR=$(BASE)/kernel
-
 
6
USPACEDIR=$(BASE)/uspace
6
 
7
 
7
build: $(KERNELDIR)/kernel.bin
8
build: $(KERNELDIR)/kernel.bin $(USPACEDIR)/init/init
8
	gunzip -c grub/grub.img.gz > image.bin
9
	gunzip -c grub/grub.img.gz > image.bin
9
	e2cp $(KERNELDIR)/kernel.bin image.bin:/kernel/kernel.bin
10
	e2cp $(KERNELDIR)/kernel.bin image.bin:/boot/kernel.bin
-
 
11
	e2cp $(USPACEDIR)/init/init image.bin:/init
10
	e2cp grub/README grub/COPYING image.bin:/boot
12
	e2cp grub/README grub/COPYING image.bin:/boot
11
 
13
 
12
$(KERNELDIR)/kernel.bin:
14
$(KERNELDIR)/kernel.bin:
13
	$(MAKE) -C $(KERNELDIR)
15
	$(MAKE) -C $(KERNELDIR)
14
 
16
 
-
 
17
$(USPACEDIR)/init/init:
-
 
18
	$(MAKE) -C $(USPACEDIR)
-
 
19
 
15
clean:
20
clean:
16
	-rm image.bin
21
	-rm image.bin