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