rink.nu / projects / ananas / loader/compile/powerpc/Makefile@293c3cf8652c (annotated)
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
rink@439
     1
TARGET:		machine loader
rink@439
     2
S=		../..
rink@439
     3
rink@628
     4
CFLAGS=		-mcpu=G4 -DISO9660 -DELF -DELF32
rink@439
     5
OBJS=
rink@439
     6
include		$S/compile/Makefile.common
rink@439
     7
include		$S/compile/Makefile.ofw
rink@439
     8
rink@439
     9
stub.o:		$S/powerpc/stub.S
rink@439
    10
		$(CC) $(CFLAGS) -c -o stub.o $S/powerpc/stub.S
rink@439
    11
rink@439
    12
platform.o:	$S/powerpc/platform.c
rink@439
    13
		$(CC) $(CFLAGS) -c -o platform.o $S/powerpc/platform.c
rink@439
    14
rink@439
    15
loader:		$(OBJS) $S/conf/ld.powerpc
rink@439
    16
		$(LD) -b elf32-powerpc -T $S/conf/ld.powerpc -o loader $(OBJS)
rink@439
    17
		cp loader /srv/tftpd/loader.ppc
rink@439
    18
rink@545
    19
ananasppc.iso:	loader boot.tbxi hfs.map ../../../kernel/arch/powerpc/compile/LINT/kernel
rink@439
    20
		mkdir -p tmp
rink@439
    21
		mkdir -p tmp/boot
rink@545
    22
		cp ../../../kernel/arch/powerpc/compile/LINT/kernel tmp
rink@439
    23
		cp loader tmp/boot
rink@439
    24
		cp boot.tbxi tmp/boot
rink@439
    25
		mkisofs -hfs -o ananasppc.iso -no-desktop -r -hfs-volid "ANA" -part -hfs-bless tmp/boot -l -J -L -map hfs.map tmp
rink@439
    26
		rm -rf tmp
rink@439
    27
rink@439
    28
machine:
rink@547
    29
		ln -sf ../../../include/ananas/powerpc machine
rink@439
    30
rink@439
    31
clean:
rink@439
    32
		rm -f loader machine $(OBJS)
Powered by FreeBSD, PostgreSQL and Perl
© 2001 - 2011 Rink Springer