source: mainline/arch/sparc64/boot/Makefile@ 61e6c39

lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
Last change on this file since 61e6c39 was 6bc4dbd, checked in by Martin Decky <martin@…>, 20 years ago

new build system upgrade
finished work for IA-32, IA-64, PPC-32, SPARC-64

  • Property mode set to 100644
File size: 494 bytes
Line 
1.PHONY: build clean
2
3CFLAGS = -nostdinc -nostdlib -fno-builtin -Werror-implicit-function-declaration -Wmissing-prototypes -Werror -O3 -I../include
4
5build: boot.bin
6 cp boot.bin ../../../load.bin
7
8boot.bin: boot.a.out
9 dd if=/dev/zero of=$@ bs=512 count=16
10 dd if=boot.a.out of=$@ bs=512 seek=1 conv=notrunc
11
12boot.a.out: boot.o
13 $(LD) -no-check-sections -N -T _link.ld -s boot.o -o $@
14
15boot.o: boot.S
16 $(CC) $(CFLAGS) -c boot.S -o $@
17
18clean:
19 -rm -f boot.o boot.a.out boot.bin ../../../load.bin
Note: See TracBrowser for help on using the repository browser.