Subversion Repositories HelenOS-historic

Rev

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

Rev 130 Rev 306
Line 7... Line 7...
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
AS=$(MIPS_BINUTILS_DIR)/$(MIPS_TARGET)-as
11
AS=$(MIPS_BINUTILS_DIR)/$(MIPS_TARGET)-as
-
 
12
CC=$(MIPS_BINUTILS_DIR)/$(MIPS_TARGET)-gcc
12
LD=$(MIPS_BINUTILS_DIR)/$(MIPS_TARGET)-ld
13
LD=$(MIPS_BINUTILS_DIR)/$(MIPS_TARGET)-ld
13
 
14
 
14
ASFLAGS=-mips2
15
ASFLAGS=-mips2 -I../../../include
15
LFLAGS=--oformat=binary -mips2 -e start
16
LFLAGS=--oformat=binary -mips2 -e start
16
 
17
 
-
 
18
.S.o:
-
 
19
	$(CC) $(ASFLAGS) -c -o $@ $<
-
 
20
 
17
boot.bin: boot.o
21
boot.bin: boot.o
18
	$(LD) $(LFLAGS) boot.o -o $@
22
	$(LD) $(LFLAGS) $< -o $@
19
 
23
 
20
boot.o:
-
 
21
	$(AS) boot.s -o $@
-
 
22
 
24
 
23
clean:
25
clean:
24
	-rm *.o *.bin
26
	-rm *.o *.bin