Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 10 Apr 2006 03:42:42 GMT
From:      Warner Losh <imp@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 94892 for review
Message-ID:  <200604100342.k3A3ggNY099517@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=94892

Change 94892 by imp@imp_hammer on 2006/04/10 03:41:49

	Fix the makefile

Affected files ...

.. //depot/projects/arm/src/sys/boot/arm/kb920x/boot0/Makefile#2 edit

Differences ...

==== //depot/projects/arm/src/sys/boot/arm/kb920x/boot0/Makefile#2 (text+ko) ====

@@ -27,10 +27,12 @@
 OBJCOPY=objcopy
 LD=ld
 CFLAGS=-O2 -mcpu=arm9 -ffreestanding
+PROG=boot0
 
-bootloader: ${CFILES} ${ASFILES}
-	${LD} -e 0 -o bootloader.out -T linker.cfg ${ASFILES} ${CFILES}
-	${OBJCOPY} -O binary bootloader.out bootloader.bin
+${PROG}.bin: ${PROG}.out
+	${OBJCOPY} -O binary ${PROG}.out ${PROG}.bin
+${PROG}.out: ${CFILES} ${ASFILES}
+	${LD} -e 0 -o ${PROG}.out -T linker.cfg ${ASFILES} ${CFILES}
 
 clean:
-	rm -f *.o
+	rm -f ${CFILES} ${ASFILES} ${PROG}.out ${PROG}.bin



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200604100342.k3A3ggNY099517>