Subversion Repositories HelenOS

Rev

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

Rev 4055 Rev 4296
Line 24... Line 24...
24
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
25
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26
# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26
# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27
#
27
#
28
 
28
 
29
build: $(BASE)/image.boot
29
TMP = distroot
30
 
30
 
-
 
31
build: $(BASE)/image.iso
-
 
32
 
31
$(BASE)/image.boot: depend arch/$(BARCH)/loader/image.boot
33
$(BASE)/image.iso: depend arch/$(BARCH)/loader/image.boot
-
 
34
	mkdir -p $(TMP)/boot
32
	cp arch/$(BARCH)/loader/image.boot $(BASE)/image.boot
35
	cp arch/$(BARCH)/loader/image.boot $(TMP)/boot/image.boot
-
 
36
	cp arch/$(BARCH)/yaboot/ofboot.b $(TMP)/boot/ofboot.b
-
 
37
	cp arch/$(BARCH)/yaboot/yaboot $(TMP)/boot/yaboot
-
 
38
	cp arch/$(BARCH)/yaboot/yaboot.conf $(TMP)/boot/yaboot.conf
-
 
39
	mkisofs -hfs -part -map arch/$(BARCH)/yaboot/maps -no-desktop -hfs-volid "HelenOS" -hfs-bless $(TMP)/boot -r -o $@ $(TMP)/
33
 
40
 
34
depend:
41
depend:
35
	-rm arch/$(BARCH)/loader/image.boot
42
	-rm arch/$(BARCH)/loader/image.boot
36
 
43
 
37
arch/$(BARCH)/loader/image.boot:
44
arch/$(BARCH)/loader/image.boot:
38
	make -C arch/$(BARCH)/loader COMPILER=$(COMPILER) KERNELDIR=../../../$(KERNELDIR) USPACEDIR=../../../$(USPACEDIR)
45
	$(MAKE) -C arch/$(BARCH)/loader COMPILER=$(COMPILER) KERNELDIR=../../../$(KERNELDIR) USPACEDIR=../../../$(USPACEDIR)
39
 
46
 
40
clean: generic_clean
47
clean: generic_clean
41
	make -C arch/$(BARCH)/loader clean COMPILER=$(COMPILER) KERNELDIR=../../../$(KERNELDIR) USPACEDIR=../../../$(USPACEDIR)
48
	$(MAKE) -C arch/$(BARCH)/loader clean COMPILER=$(COMPILER) KERNELDIR=../../../$(KERNELDIR) USPACEDIR=../../../$(USPACEDIR)
-
 
49
	-rm -fr $(TMP)
42
	-rm -f $(BASE)/image.boot
50
	-rm -f $(BASE)/image.iso