source: mainline/arch/ppc/boot/Makefile@ 393f631

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

many PPC stuff, platform dependent arch.h header files

  • Property mode set to 100644
File size: 646 bytes
Line 
1PPC_BINUTILS_DIR=/usr/local/ppc/bin
2PPC_TARGET=ppc-linux-gnu
3
4.PHONY: nothing build
5
6nothing:
7
8build: boot.bin
9 cp boot.bin ../../../src/load.bin
10
11CC=$(PPC_BINUTILS_DIR)/$(PPC_TARGET)-gcc
12AS=$(PPC_BINUTILS_DIR)/$(PPC_TARGET)-as
13LD=$(PPC_BINUTILS_DIR)/$(PPC_TARGET)-ld
14
15CPPFLAGS=$(DEFS) -nostdinc -I../include
16CFLAGS=$(CPPFLAGS) -nostdlib -fno-builtin -Werror-implicit-function-declaration -Wmissing-prototypes -Werror -O2
17LFLAGS=-no-check-sections -N -T _link.ld
18
19boot.bin: boot.o main.o
20 $(LD) $(LFLAGS) boot.o main.o -o $@
21
22boot.o: boot.S
23 $(CC) $(CFLAGS) -c boot.S -o $@
24
25main.o: main.c
26 $(CC) $(CFLAGS) -c main.c -o $@
27
28clean:
29 -rm *.o *.bin
Note: See TracBrowser for help on using the repository browser.