Rev 641 | Rev 708 | Go to most recent revision | Only display areas with differences | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 641 | Rev 645 | ||
---|---|---|---|
1 | .PHONY=build clean |
1 | .PHONY=build kernel 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 | 6 | ||
7 | build: $(KERNELDIR)/kernel.bin |
7 | build: kernel |
8 | mkdir -p $(ROOT)/boot |
8 | mkdir -p $(ROOT)/boot |
9 | mkdir -p $(ROOT)/kernel |
9 | mkdir -p $(ROOT)/kernel |
10 | cat silo/silo.tar.gz | (cd $(ROOT)/boot; tar xvfz -) |
10 | cat silo/silo.tar.gz | (cd $(ROOT)/boot; tar xvfz -) |
11 | cp silo/README silo/COPYING silo/silo.conf $(ROOT)/boot |
11 | cp silo/README silo/COPYING silo/silo.conf $(ROOT)/boot |
12 | ln -s $(KERNELDIR)/kernel.bin $(ROOT)/kernel |
12 | ln -s $(KERNELDIR)/kernel.bin $(ROOT)/kernel |
13 | mkisofs -f -G distroot/boot/isofs.b -B ... -r -o image.iso $(ROOT)/ |
13 | mkisofs -f -G distroot/boot/isofs.b -B ... -r -o image.iso $(ROOT)/ |
14 | 14 | ||
15 | $(KERNELDIR)/kernel.bin: |
15 | kernel: |
16 | $(MAKE) -C $(KERNELDIR) |
16 | $(MAKE) -C $(KERNELDIR) |
17 | 17 | ||
18 | clean: |
18 | clean: |
19 | -rm -r $(ROOT)/ |
19 | -rm -r $(ROOT)/ |
20 | -rm image.iso |
20 | -rm image.iso |
21 | 21 |