Subversion Repositories HelenOS-historic

Rev

Rev 162 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 162 Rev 210
Line 6... Line 6...
6
nothing:
6
nothing:
7
 
7
 
8
build: boot.bin
8
build: boot.bin
9
	cp boot.bin ../../../src/load.bin
9
	cp boot.bin ../../../src/load.bin
10
 
10
 
-
 
11
CC=$(PPC_BINUTILS_DIR)/$(PPC_TARGET)-gcc
11
AS=$(PPC_BINUTILS_DIR)/$(PPC_TARGET)-as
12
AS=$(PPC_BINUTILS_DIR)/$(PPC_TARGET)-as
12
LD=$(PPC_BINUTILS_DIR)/$(PPC_TARGET)-ld
13
LD=$(PPC_BINUTILS_DIR)/$(PPC_TARGET)-ld
13
 
14
 
14
ASFLAGS=
15
CPPFLAGS=$(DEFS) -nostdinc -I../include
-
 
16
CFLAGS=$(CPPFLAGS) -nostdlib -fno-builtin -Werror-implicit-function-declaration -Wmissing-prototypes -Werror -O2
15
LFLAGS=--oformat=binary -e start
17
LFLAGS=-no-check-sections -N -T _link.ld
16
 
18
 
17
boot.bin: boot.o
19
boot.bin: boot.o main.o
18
	$(LD) $(LFLAGS) boot.o -o $@
20
	$(LD) $(LFLAGS) boot.o main.o -o $@
19
 
21
 
20
boot.o:
22
boot.o: boot.S
21
	$(AS) boot.s -o $@
23
	$(CC) $(CFLAGS) -c boot.S -o $@
-
 
24
 
-
 
25
main.o: main.c
-
 
26
	$(CC) $(CFLAGS) -c main.c -o $@
22
 
27
 
23
clean:
28
clean:
24
	-rm *.o *.bin
29
	-rm *.o *.bin