rink.nu / projects / ananas / loader/compile/powerpc/Makefile@293c3cf8652c
loader/compile/powerpc/Makefile
author Rink Springer <rink@rink.nu>
Mon Nov 08 10:27:55 2010 +0100 (2010-11-08 ago)
changeset 628 293c3cf8652c
parent 547 500fdeba0928
child 797 d1259b7aef92
permissions -rw-r--r--
loader/powerpc: Fix compiling the loader
     1 TARGET:		machine loader
     2 S=		../..
     4 CFLAGS=		-mcpu=G4 -DISO9660 -DELF -DELF32
     5 OBJS=
     6 include		$S/compile/Makefile.common
     7 include		$S/compile/Makefile.ofw
     9 stub.o:		$S/powerpc/stub.S
    10 		$(CC) $(CFLAGS) -c -o stub.o $S/powerpc/stub.S
    12 platform.o:	$S/powerpc/platform.c
    13 		$(CC) $(CFLAGS) -c -o platform.o $S/powerpc/platform.c
    15 loader:		$(OBJS) $S/conf/ld.powerpc
    16 		$(LD) -b elf32-powerpc -T $S/conf/ld.powerpc -o loader $(OBJS)
    17 		cp loader /srv/tftpd/loader.ppc
    19 ananasppc.iso:	loader boot.tbxi hfs.map ../../../kernel/arch/powerpc/compile/LINT/kernel
    20 		mkdir -p tmp
    21 		mkdir -p tmp/boot
    22 		cp ../../../kernel/arch/powerpc/compile/LINT/kernel tmp
    23 		cp loader tmp/boot
    24 		cp boot.tbxi tmp/boot
    25 		mkisofs -hfs -o ananasppc.iso -no-desktop -r -hfs-volid "ANA" -part -hfs-bless tmp/boot -l -J -L -map hfs.map tmp
    26 		rm -rf tmp
    28 machine:
    29 		ln -sf ../../../include/ananas/powerpc machine
    31 clean:
    32 		rm -f loader machine $(OBJS)
Powered by FreeBSD, PostgreSQL and Perl
© 2001 - 2014 Rink Springer