Subversion Repositories HelenOS

Rev

Rev 642 | Rev 645 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

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