source:
mainline/arch/ppc32/boot/Makefile@
4457455
Last change on this file since 4457455 was 6bc4dbd, checked in by , 20 years ago | |
---|---|
|
|
File size: 436 bytes |
Rev | Line | |
---|---|---|
[6bc4dbd] | 1 | .PHONY: build clean |
[efa9b73] | 2 | |
[6bc4dbd] | 3 | CFLAGS = -nostdinc -nostdlib -fno-builtin -Werror-implicit-function-declaration -Wmissing-prototypes -Werror -O3 -I../include |
[f761f1eb] | 4 | |
5 | build: boot.bin | |
[c9ed176] | 6 | cp boot.bin ../../../load.bin |
[f761f1eb] | 7 | |
[393f631] | 8 | boot.bin: boot.o main.o |
[6bc4dbd] | 9 | $(LD) -no-check-sections -N -T _link.ld boot.o main.o -o $@ |
[f761f1eb] | 10 | |
[393f631] | 11 | boot.o: boot.S |
12 | $(CC) $(CFLAGS) -c boot.S -o $@ | |
13 | ||
14 | main.o: main.c | |
15 | $(CC) $(CFLAGS) -c main.c -o $@ | |
[f761f1eb] | 16 | |
17 | clean: | |
[6bc4dbd] | 18 | -rm -f boot.o main.o boot.bin ../../../load.bin |
Note:
See TracBrowser
for help on using the repository browser.