Subversion Repositories HelenOS-historic

Rev

Rev 195 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
130 decky 1
MIPS_TARGET=mipsel-linux-gnu
1 jermar 2
 
130 decky 3
MIPS_CC_DIR=/usr/local/mipsel/bin
4
MIPS_BINUTILS_DIR=/usr/local/mipsel/bin
1 jermar 5
 
6
CC=$(MIPS_CC_DIR)/$(MIPS_TARGET)-gcc
7
AS=$(MIPS_BINUTILS_DIR)/$(MIPS_TARGET)-as
8
LD=$(MIPS_BINUTILS_DIR)/$(MIPS_TARGET)-ld
9
 
130 decky 10
ASFLAGS=-mips3
1 jermar 11
 
12
DEFS=-DARCH=$(ARCH)
148 jermar 13
CPPFLAGS=$(DEFS) -mno-abicalls -nostdinc -I../include
195 vana 14
CFLAGS=$(CPPFLAGS) -mips2 -G 0 -nostdlib -fno-builtin -Werror-implicit-function-declaration -Wmissing-prototypes -Werror -O2
130 decky 15
LFLAGS=-mips2 -M -no-check-sections -T ../arch/mips/_link.ld
1 jermar 16
 
17
arch_sources= \
18
	arch/start.S \
19
	arch/context.S \
20
	arch/panic.s \
21
	arch/mips.c \
161 jermar 22
	arch/dummy.s \
1 jermar 23
	arch/putchar.c \
24
	arch/asm.s \
25
	arch/exception.c \
26
	arch/interrupt.c \
27
	arch/cache.c \
28
	arch/cpu/cpu.c \
29
	arch/mm/frame.c \
30
	arch/mm/page.c \
52 vana 31
	arch/mm/tlb.c \
230 cejka 32
	arch/fpu_context.c \
33
	arch/fmath.c