Subversion Repositories HelenOS-historic

Rev

Rev 1764 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1764 Rev 1771
Line 27... Line 27...
27
#
27
#
28
 
28
 
29
## Toolchain configuration
29
## Toolchain configuration
30
#
30
#
31
 
31
 
32
TARGET = mipsel-linux-gnu
32
TARGET = sparc64-linux-gnu
33
TOOLCHAIN_DIR = /usr/local/mipsel/bin
33
TOOLCHAIN_DIR = /usr/local/sparc64/bin
34
 
34
 
35
ifeq ($(COMPILER),native)
35
ifeq ($(COMPILER),native)
36
	CC = gcc
36
	CC = gcc
37
	AS = as
37
	AS = as
38
	LD = ld
38
	LD = ld
Line 44... Line 44...
44
	LD = $(TOOLCHAIN_DIR)/$(TARGET)-ld
44
	LD = $(TOOLCHAIN_DIR)/$(TARGET)-ld
45
	OBJCOPY = $(TOOLCHAIN_DIR)/$(TARGET)-objcopy
45
	OBJCOPY = $(TOOLCHAIN_DIR)/$(TARGET)-objcopy
46
	OBJDUMP = $(TOOLCHAIN_DIR)/$(TARGET)-objdump
46
	OBJDUMP = $(TOOLCHAIN_DIR)/$(TARGET)-objdump
47
endif
47
endif
48
 
48
 
49
CFLAGS = -I. -I../../../generic -nostdinc -nostdlib -fno-builtin -Werror-implicit-function-declaration -Wmissing-prototypes -Werror -O3 -mno-abicalls -G 0 -fno-zero-initialized-in-bss -mhard-float -mips3
49
CFLAGS = -I. -I../../../generic -I../../../genarch -nostdinc -nostdlib -fno-builtin -Werror-implicit-function-declaration -Wmissing-prototypes -Werror -O3 -mcpu=ultrasparc -m64
50
 
50
 
51
SOURCES = \
51
SOURCES = \
52
	main.c \
52
	main.c \
53
	msim.c \
-
 
54
	../../../generic/printf.c \
53
	../../../generic/printf.c \
-
 
54
	../../../genarch/ofw.c \
-
 
55
	ofw.c \
55
	asm.S \
56
	asm.S \
56
	boot.S
57
	boot.S
57
 
58
 
58
COMPONENTS = \
59
COMPONENTS = \
59
	$(KERNELDIR)/kernel.bin \
60
	$(KERNELDIR)/kernel.bin
60
	$(USPACEDIR)/ns/ns \
-
 
61
	$(USPACEDIR)/init/init \
-
 
62
	$(USPACEDIR)/fb/fb \
-
 
63
	$(USPACEDIR)/kbd/kbd \
-
 
64
	$(USPACEDIR)/console/console \
-
 
65
	$(USPACEDIR)/tetris/tetris \
-
 
66
	$(USPACEDIR)/ipcc/ipcc \
-
 
67
	$(USPACEDIR)/klog/klog
-
 
68
 
61
 
69
OBJECTS := $(addsuffix .o,$(basename $(SOURCES)))
62
OBJECTS := $(addsuffix .o,$(basename $(SOURCES)))
70
COMPONENT_OBJECTS := $(addsuffix .o,$(basename $(notdir $(COMPONENTS))))
63
COMPONENT_OBJECTS := $(addsuffix .o,$(basename $(notdir $(COMPONENTS))))
71
 
64
 
72
.PHONY: all clean depend
65
.PHONY: all clean depend