Subversion Repositories HelenOS-historic

Rev

Rev 643 | Rev 648 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 643 Rev 645
1
.PHONY=build clean
1
.PHONY=build kernel uspace 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
USPACEDIR=$(BASE)/uspace
7
 
7
 
8
build: $(KERNELDIR)/kernel.bin $(USPACEDIR)/init/init
8
build: kernel uspace
9
	gunzip -c grub/grub.img.gz > image.bin
9
	gunzip -c grub/grub.img.gz > image.bin
10
	e2cp $(KERNELDIR)/kernel.bin image.bin:/boot/kernel.bin
10
	e2cp $(KERNELDIR)/kernel.bin image.bin:/boot/kernel.bin
11
	e2cp $(USPACEDIR)/init/init image.bin:/init
11
	e2cp $(USPACEDIR)/init/init image.bin:/init
12
	e2cp grub/README grub/COPYING image.bin:/boot
12
	e2cp grub/README grub/COPYING image.bin:/boot
13
 
13
 
14
$(KERNELDIR)/kernel.bin:
14
kernel:
15
	$(MAKE) -C $(KERNELDIR)
15
	$(MAKE) -C $(KERNELDIR)
16
 
16
 
17
$(USPACEDIR)/init/init:
17
uspace:
18
	$(MAKE) -C $(USPACEDIR)
18
	$(MAKE) -C $(USPACEDIR)
19
 
19
 
20
clean:
20
clean:
21
	-rm image.bin
21
	-rm image.bin
22
 
22